Starting with this file
Input #0, flac, from 'bar.flac': Duration: 00:02:52.48, bitrate: 503 kb/s Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
running this command yields similar output duration, however slow to encode.
$ time ffmpeg -loop 1 -i foo.jpg -i bar.flac -shortest slow.mp4 frame= 4371 fps= 46 q=-1.0 Lsize= 4497kB time=00:02:54.76 bitrate= 210.8kbits/s real 1m34.318s user 0m0.000s sys 0m0.015s
I can lower the input framerate which speeds up the encode significantly, but now the duration is quite off
$ time ffmpeg -loop 1 -r 1 -i foo.jpg -i bar.flac -shortest fast.mp4 frame= 232 fps= 31 q=-1.0 Lsize= 2860kB time=00:03:50.00 bitrate= 101.9kbits/s real 0m7.566s user 0m0.000s sys 0m0.015s
Can I change my command so that encode speed is decent without messing the duration?