[FFmpeg-user] Generating bloated videos

Cecil Westerhof Cecil at decebal.nl
Sun Jun 4 13:52:06 EEST 2023


DEF <shaker.doc at gmail.com> writes:

> On Sat, 3 Jun 2023 at 11:54, Bouke / edit 'B <bouke at editb.nl> wrote:
>>
>>
>>
>> > On 3 Jun 2023, at 12:37, Cecil Westerhof via ffmpeg-user <ffmpeg-user at ffmpeg.org> wrote:
>> >
>> > I am not knowledgeable in the fine points of video processing, so it
>> > is possible that I ask for something that is not realistic.
>> >
>> > Sometimes the output stream becomes bigger as the input stream and I
>> > find this strange.
>> > In the past I used:
>> >    -vcodec libx264 -crf 26
>>
>> 26 is bad quality, 23 is default, stick to that. (Good quality / small size)
>>
>>
>> > and this gave videos that I saw no difference in and where often
>> > 1/14th of the original size.
>> >
>> > But sometimes they become bigger.
>> >
>> > For example I have an input file of 117.5 MB.
>> > If I use:
>> >    ffmpeg -i ${inputfile}           \
>> >           -vcodec libx264           \
>> >           -crf 28                   \
>> >           -af "volume=${volumeCmd}" \
>> >           -y ${outputfile}
>>
>> Perhaps input file has compressed audio and output file uncompressed?
>
> A complete uncut console output of the command  would have given us a
> change to comment on the video type and easily give directions.

Just copying the video stream.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dimAudioCopy.log
Type: application/octet-stream
Size: 2604 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230604/e58e258e/attachment.obj>
-------------- next part --------------

By the way I see in the log:
    [Parsed_volume_0 @ 0x565218125ec0] Invalid value NaN for volume, setting to 0

Is that something to be worried about?


Using '-preset slower':
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dimAudioSlower.log
Type: application/octet-stream
Size: 65268 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230604/e58e258e/attachment-0001.obj>
-------------- next part --------------


Using '-preset veryfast':
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dimAudioVeryfast.log
Type: application/octet-stream
Size: 15703 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230604/e58e258e/attachment-0002.obj>
-------------- next part --------------


-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list