The fastest way to encode image+audio for Youtube from command line?
- by Pavel Vlasov
I have an mp3 and image and I want to make a simple clip to upload onto Youtube. Is there a fast solution? If video formats are so bad designed, then maybe it is possible to use a prerendered video-only clip?
This works good except it takes as much time as the audio lasts:
ffmpeg -loop_input -r ntsc -i "%IMAGE%" -i "%AUDIO%" -r 1 -acodec copy -shortest -re -force_fps "%VIDEO%"
This takes a second but results in a black screen video that is successfully played by a desktop video player but not acceptable by Youtube:
ffmpeg -i "%IMAGE%" -i "%AUDIO%" -acodec copy "%VIDEO%"
Windows 7. Preserving audio quality is preferred over video quality.