Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 –  techie007 Jul 5 '12 at 5:21
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.