Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
possible duplicate of ffmpeg: Creating video for Youtube – Ƭᴇcʜιᴇ007 Jul 5 '12 at 5:21
up vote 3 down vote accepted

Since you did not provide the complete console output of your command I will give you an example using recent ffmpeg syntax:

ffmpeg -loop 1 -i input.jpg -i input.mp3 -c:v libx264 -preset medium -crf 18 -tune stillimage -c:a copy -shortest output.mkv

Change medium to veryslow if you're patient and see FFmpeg: The ultimate Video and Audio Manipulation Tool for more information and examples on using libx264.

share|improve this answer
Thank you! It takes just 30 seconds now that is quite acceptable. But if someone know an 1-second way, please let me know. – Pavel Vlasov Jul 5 '12 at 19:17
Use a faster preset. Current presets (excluding placebo) are: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow. – LordNeckbeard Jul 5 '12 at 20:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.