[FFmpeg-user] Set target file size

Takashi ffmpeg-list at dubistmeinheld.de
Tue May 27 15:47:53 CEST 2014


On 05/27/2014 01:00 PM, Reindl Harald wrote:
> 
> Am 27.05.2014 12:49, schrieb Takashi:
>> I would like to convert a file to a given target file size (quality is
>> less important than file size in this case).
>>
>> As far as I understand, the best approach for this is to use two pass
>> encoding. I followed the instructions here:
>> http://trac.ffmpeg.org/wiki/x264EncodingGuide (Two-pass Example)
>>
>> The problem is that my converted file is always smaller than intended.
>>
>> How can I fix that?
> 
> "quality is less important than file size in this case" but "converted
> file is always smaller than intended" - uhm what exactly is your
> problem? i would say be happy

Happy indeed, I get a file that has about the size I tried to get. Being
a perfectionist sometimes, I try to use all available space I have
calculated to the video.

Let's say I have burnt a CD and there is some space left, like 400Mib. I
decide to add a large homevideo. So I do my calculations as explained
above and see that for example 5% of the space has not been used that
could have been used to increase the video quality. No big deal, maybe
not even possible, but if possible, I want to to that.


More information about the ffmpeg-user mailing list