[FFmpeg-user] Optimization

Paul B Mahol onemda at gmail.com
Thu Nov 1 22:36:15 EET 2018


On 11/1/18, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2018-11-01 3:31 GMT+01:00, Marcus Lim <drakeskywing at gmail.com>:
>> Hey all,
>> New to the list and trying to get my head around ffmpeg a bit still.
>> So I am using ffmpeg to create slideshows out of individual images, with
>> an
>> audio backing track (usually mp3), and then encoding as MP4 (video is h264
>> and audio is acc), but for some reason the process is taking up to 1.4Gb
>> of
>> memory which is blowing me away.
>> Now I am using a complex filter to achieve this, with multiple inputs, and
>> example of my command is below:
>>
>> ffmpeg \
>> -loop 1 -t 4 -i
>> test/ed141148-9b79-494b-a26d-f5c84535eeaf8912937006552540487.tmp \
>> -loop 1 -t 4 -i
>> test/ed141148-9b79-494b-a26d-f5c84535eeaf5351513282402727883.tmp \
>
> I suggest you put the files names in a text file and use the concat demuxer.
>
> An alternative is to rename the files as tmp-01 to tmp-15 and use:
> ffmpeg -i tmp-02%d
>
> Both solutions will not have the increased memory usage and will
> significantly simplify your command line.

How it is supposed to loop for 4 seconds with above solutions?


More information about the ffmpeg-user mailing list