[FFmpeg-user] Question about rendering and photo dimensions.

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Oct 31 13:50:55 EET 2018


2018-10-30 3:41 GMT+01:00, Hwaen Ch'uqi <hwaenchuqi at gmail.com>:

> I am a newbie to ffmpeg and am quite impressed at the program's
> capabilities. For the moment, I am simply combining an audio file with
> a single still image to create an mp4 file. I am using this command:
>
> ffmpeg -loop 1 -i FILE.jpg -i FILE.mp3 -c:v libx264 -c:a aac -strict
> experimental -b:a 192k -shortest FILE.mp4

-strict experimental is not needed for a long time and both aac and
x264 are the default for mp4.

> From what I can tell, it appears that picture files with smaller
> dimensions - 2960x2640, for example - render quite easily, whereas
> something like 4910x6054 causes the rendering to slow tremendously,

> even to the point of hanging/crashing my computer!

This can indicate broken hardware, the alternative is oom which
would likely happen in x264, not in FFmpeg (for the given command
line): Reducing the thread count reduces memory consumption.

Carl Eugen


More information about the ffmpeg-user mailing list