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 a m4v video generated by iMovie. I want to use ffmpeg to generate a widely viewable video on Windows. I cannot assume that the viewer will have VLC (or any other sophisticated viewer). It needs to be viewed by what is a default installation of Windows 7.

How do I do this? I tried ffmpeg -i video.m4v video.avi, and that did not directly work for my users. They say they get audio, but no video.

share|improve this question
When you say "widely viewable video" do you mean in a codec that Windows natively supports? My understanding is that if the m4v file doesn't have DRM (which yours won't) then you can rename it to .mp4 and it'll play happily on many platforms. – Richard Dec 2 '13 at 10:59
up vote 3 down vote accepted

Try the following command:

ffmpeg -i video.m4v -c:v libx264 -pix_fmt yuv420p -c:a aac -strict experimental \
-movflags +faststart video.mp4

But note, that this will re-encode your video file.

share|improve this answer
+1. As my mac did not accept h264, I did: ffmpeg -i in.m4v -strict experimental -acodec aac -vcodec libx264 out.avi, hopefully it is the same – carlosdc Aug 15 '12 at 19:43

protected by Community May 8 '15 at 6:53

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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