Trying to crank out a video which is:
- YouTube compatible
- Small-ish
- Preserves lossless audio
- Doesn't crash VLC, etc. (this happened embedding a FLAC direct in a WMV)
- Encodes as quickly as possible
So far, the best I've come up with is as follows:
ffmpeg -r 1 \
-hwaccel cuda \
-hwaccel_output_format cuda \
-loop 1 \
-i image.png \
-i audio.wav \
-c:v libx264 \
-tune stillimage \
-c:a copy \
-shortest \
out.avi
That runs in about 2 minutes 15 seconds and produces a file about 750Mb in size.
I've got an Nvidia GPU FWIW. Anyone got better ideas or implementation?
MP4 doesn't like WAV. Can't remember if I tried MP4 with FLAC.
Here's the YouTube formats FWIW.