[FFmpeg-user] Pictures in video

Cecil Westerhof Cecil at decebal.nl
Wed May 25 00:35:15 EEST 2022


Moritz Barsnick <barsnick at gmx.net> writes:

> On Tue, May 24, 2022 at 21:55:20 +0200, FFmpeg user discussions wrote:
>> What I find strange is that the input video is 23 MB and the picture
>> is 302 KB, but the generated video is 42 MB.
>> Am I doing something wrong?
>
> No, that's not strange at all. You are reencoding a video. That process
> will likely use different parameters than the original encoding.
> (Approximately the same would happen without the overlay.) You can
> control the encoding parameters, e.g. by the bitrate option "-b:v", or
> with "-crf" (if using libx264 or libx265). There is a lot of
> information about that available.

Of-course, should have thought about that. :'-(
Changed the last but one line to:
    -pix_fmt yuv420p -c:a copy -vcodec libx265 -preset veryfast -crf 30 \

And now the output file is 16 MB.

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


More information about the ffmpeg-user mailing list