FORUMS: list search recent posts

Bit rate in video rendering and converting softwares

COW Forums : Compression Techniques

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Levan Katsadze
Bit rate in video rendering and converting softwares
on Nov 14, 2011 at 12:04:25 pm

Hello, I want to find out more about bit rate-size of a video.

Well, concretely, I want to convert (from mkv to H.264/MPEG4-AVC) a video or a movie from 720p to 320x240. But I have one big problem: I want the output video to be maximum (highest) quality, and also I want it to be smallest by size.

exactly, I mean, for example a video in 320x240 and H.264/MPEG4-AVC, has highest quality at 800kbps and I don't know about it, then I convert the video at 1000 kbps, so the distinction of the bit rates: 1000-800=200 just increases size of the video, and quality is the same as in 800kbps. So, I mean that I want to know what is the maximum bitrate of a 320x240 video quality (in H.264/MPEG4-AVC) to vindicate smaller size. Or, is there any formula or something like that to calculate maximum quality bitrates of different kinds of resolutions of videos, for example 1280x720 or 1920x1080.
so please, please, help me
Thanks a lot.....


Return to posts index


Craig Seeman
Re: Bit rate in video rendering and converting softwares
on Nov 14, 2011 at 3:35:40 pm

Quality is subjective. Compression is lossy. General you can use Bits Per Pixel as the closest to an objective measure of quality.

Here's a short read
http://www.streaminglearningcenter.com/blogs/h264-encoding-parameters-of-th...

Read this as well
http://www.streaminglearningcenter.com/blogs/the-essential-key-to-producing...

and this might help in the above article
Using the old "power of 0.75" rule, content that looks good with 500 Kbps at 640x360 would need (1280x720)/(640x360)^0.75*500=1414 Kbps at 1280x720 to achieve roughly the same quality.



Return to posts index


William Caulfield
Re: Bit rate in video rendering and converting softwares
on Nov 15, 2011 at 6:22:38 pm

I wrote on this years ago (very simplistic and meant for beginners):

http://www.polymathsunited.com/2009/11/video-bitrate-what-bitrate-should-i-...

...but the real answer is test, test, test. 720p should look great at 2.5Mbs. If your content does then try it again at 2.2Mbs and 1.8Mbs. If you're worried about speed vs. quality, see how low you can go with single pass, then double pass, change the variability percentage, key frame sensitivity, etc.

Bitrate is becoming less and less an issue, almost a settled question.

William Caulfield
Video Encoding Manager
http://metroencoding.com


Return to posts index


Eric Lanouette
Re: Bit rate in video rendering and converting softwares
on Nov 18, 2011 at 3:22:12 am

Here some thoughts about your example :

01. There is a quality gain but it's imperceptible to the eye. You don't see it but the noise, sharp edges and others picture details are reproduced more accurately. That's why the file is bigger.

02. Never, never, never use bitrate as a quality measure, it's not. At the same resolution, some content will need more bitrate than others to achieve the same quality level. The best example is a sport game vs a news interview. If the static news interviews is okay at 500Kbps, the sport game with lots of action, fast moving camera and scenes cuts will be horrible.


What I understand is that you want to encode each of your files, whatever the content or resolution, to the maximum perceptible quality. Instead using an average bitrate for video encoding, you should use a constant quality index.

01. Download the last nightly build of handbrake for your system at https://build.handbrake.fr/

02. In the video panel, encode it using "Constant Quality" with an RF value around 19 to begin with.

03. In the advanced panel, max out all the options and disable mb-tree.

04. Review the encoded video and lower the RF value to 18 to increase quality or increase it to 20 to lower the quality until you find the right spot that please you.

05. Don't look at the bitrate, ignore it.


You don't need to go insane with the encoding options because at a point you will get about no quality increase or file size decrease. Some good options to use are :

b-adapt=2:rc-lookahead=50:ref=6:bframes=6:direct=spatial:me=umh:subq=10:merange=32:psy-rd=1.0,0.10:analyse=all:trellis=2:no-mb-tree=1

In the advanced panel, paste them in the x264 advanced option string and adjust the quality slider in the video panel. The video might not play on mobile devices as I don't see it as a requirement in your post.

As the video is scaled down there will be less noise and artefacts in it so an RF value of 19 can be low (too much quality). Note that I mainly use RF 16 for a 1920x1080 video to retain more grain and quality but some will always tell you that it's too high or too low...

Eric


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]