VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Is there a way to let Handbrake encode to a certain % of input file size?

    Iam trying to batch convert large number of flv files into mp4's, but due to huge bitrate variation in files, quality factor "RF" is not working out for me. Some files with bitrate around 500Kbps (using constant quality 15) result in 400 - 650Kbps, others with bitrate over 1000Kbps result in anywhere between 600 and 800Kbps. Basically, some files get oversized, others get compressed to around 50%.

    I cant seem to find a trade off using constant quality factor. Setting bitrate manually is too time consuming due to the amount of files iam converting.
    Quote Quote  
  2. Member
    Join Date
    Sep 2012
    Location
    Australia
    Search Comp PM
    I'm afraid MediaInfo/FFProbe + CMD Batch File + HandbrakeCLI.exe is the closest you'll ever get to that.
    Quote Quote  
  3. Banned
    Join Date
    Oct 2004
    Location
    Freedonia
    Search Comp PM
    I'm not claiming to be an expert as I don't use Handbrake so if I'm wrong then others can correct me, but I think if you set constant quality it overrides your bit rate setting and uses whatever it needs to reach the quality setting, which will be different for every film. So basically by setting constant quality it's not using your bit rate target at all.
    Quote Quote  
  4. Originally Posted by jman98 View Post
    So basically by setting constant quality it's not using your bit rate target at all.
    In a nutshell. It's one or the other, no?
    Now, I don't use Handbrake either, but I don't see how you can combine bitrate target (or target file size) and quality-based encoding.
    Seems to me that Handbrake is working properly. Each file is allocated the bits needed to get the quality specified.
    Pull! Bang! Darn!
    Quote Quote  
  5. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    Encoding with a rather equal quality distribution and a target file size means to run two passes. The first pass will gather required information to run a second pass to match a target bitrate while controlling the bitrate to have a rather equal quality loss over the whole playtime.

    If you are going to use x264 as encoder, it will in fact calculate the CRF value in the first pass which is required in the second pass to approach the target filesize.

    But of course, two-pass encoding will be more time consuming than single-pass CRF encoding. And every movie will have a different degree of quality loss, despite a similar target size.
    Quote Quote  
  6. Ive used handbrake before and I don't think there is a way to do what you want to do.
    What I can recommend though is raising the crf value to 18 to help the compression and retain good quality.
    Quote Quote  
  7. Member
    Join Date
    Sep 2012
    Location
    Australia
    Search Comp PM
    Originally Posted by iceblitzed View Post
    What I can recommend though is raising the crf value to 18 to help the compression and retain good quality.
    That's a point.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!