Jump to content

Lower movie bitrate has changed my media watching life!


chef

Recommended Posts

chef

In order to correct what I think is one major issue with my Emby Server setup, I need to ask some questions about ffmpeg.

 

There is quite a bit on line regarding commandlines, but I need to make sure I have it right.

 

 

I could understand why some trancoded movie files would play flawlessly and other would stagger along making them un-watchable.

 

It's gotta be the Bitrate of the movies!!

 

For instance this movie plays perfectly:

Video
CodecH264
ProfileHigh
Level41
Resolution1920x1040
Aspect ratio1.85:1
AnamorphicNo
InterlacedNo
Framerate23.97602
Bitrate6513 kbps
Bit depth8 bit
Pixel formatyuv420p
Ref frames4
CABACYes


Audio
Languageeng
CodecDCA
ProfileDTS
Layout5.1
Channels6 ch
Bitrate1500 kbps
Sample rate48000 khz
DefaultYes
Subtitle
Languageeng
CodecSRT
DefaultNo
ForcedNo
ExternalNo
Containermkv
PathG:\Movies\Home\Home.2015.1080p.BluRay.x264-SECTOR7.mkv

But this movie sucks the big one!!:
Video
CodecH264
ProfileHigh
Level41
Resolution1920x1040
Aspect ratio1.85:1
AnamorphicNo
InterlacedNo
Framerate23.97604
Bitrate13796 kbps
Bit depth8 bit
Pixel formatyuv420p
Ref frames4
CABACYes
Audio
Languageeng
CodecDCA
ProfileDTS
Layout5.1
Channels6 ch
Bitrate1500 kbps
Sample rate48000 khz
DefaultYes
Subtitle
CodecSRT
DefaultNo
ForcedNo
ExternalYes
Containermkv
PathG:\Movies\A Good Day to Die Hard\A Good Day to Die Hard.mkv
The only difference is the bitrate. Die Hard has a huge bitrate in compasion to the movie Home.

 

using FFMPEG what is the proper command line to limit the bitrate of a video file during an encoding?

 

 

I have this so far:

ffmpeg -i "G:\Movies\A Good Day to Die Hard\A Good Day to Die Hard.mkv" -b:v 6513k -b:a 1500k "G:\Movies\A Good Day to Die Hard\A Good Day to Die Hard(1).mkv"
But ffmpeg doesn't like it.

 

 

Thanks to anyone who can shed light on this.

Edited by chef
Link to comment
Share on other sites

chef

It would seem that ffmpeg does like the "M" for Megabytes and "k" for kilobytes.

 

So, if the bitrate is 6578kbps, then you can use "7M" in the command line, and ffmpeg will start encoding.

Link to comment
Share on other sites

Happy2Play

Looking here it looks like you want something like this.

ffmpeg -i "G:\Movies\A Good Day to Die Hard\A Good Day to Die Hard.mkv" -c:v libx264 -b 6513k -c:a copy "G:\Movies\A Good Day to Die Hard\A Good Day to Die Hard(1).mkv"
Edited by Happy2Play
  • Like 1
Link to comment
Share on other sites

chef

 

Looking here it looks like you want something like this.

ffmpeg -i "G:\Movies\A Good Day to Die Hard\A Good Day to Die Hard.mkv" -c:v libx264 -b 6513k -c:a copy "G:\Movies\A Good Day to Die Hard\A Good Day to Die Hard(1).mkv"

An excellent link. Thanks very much. I am going to run tests using the libx264 component.

 

This just might be the answer to my choppy playback problems.

 

I'll report back to this thread later after the encoding has finished and I enjoy a lovely evening of John McClane destroying everything in his path !

 

@@Happy2Play again with the top notch info!

Link to comment
Share on other sites

chef

@@Happy2Play

 

Yes! The lower bitrate has changed EVERYTHING!!

 

I am able to watch John McClean terrorize Russia with perfect playback!

 

I am going to write an encoding program which will locate all my movies with a certain range in bitrate and then encode them lower.

 

And my program is only going to search for movies and re-encode them at night when I am asleep/or at work!

 

It will fix all my movies and I'll have it scan for new movies which don't fit the criteria, and fix them too.

 

I feel as though I am No longer taking crazy pills when it comes to watch my movie collection!

  • Like 1
Link to comment
Share on other sites

chef

@@CBers

 

Xbox one.

 

I think it is more about my network then client capabilities or emby transcoding.

 

My server doesn't have the greatest CPU, but it is good enough.

 

Once I stated to lower the bitrate oft movies, down to under 10000, everything has started to play absolutely flawlessly.

 

I have almost finished my app.

So far, it recursively searches my emby library for movies.

 

Now I need to code the part where it gets the bitrate of all the movies and puts them in a list.

 

I have encoded three movies so far with a. Lower bitrate and they play perfectly.

 

These movies wouldn't play before without buffering every 30 seconds.

 

The image quality is just as good, I am only losing about 2000 off the bitrate. Just enough for emby to transcode and stream without any issue.

Edited by chef
Link to comment
Share on other sites

chef

So it's still transcoding though?

 

That's all via DLNA?

Yeah, DLNA, transcoding.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...