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

1 Answer 1

up vote 2 down vote accepted

Try the following command:

ffmpeg -i video.m4v -acodec aac -strict experimental -vcodec libx264 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
@krnekit Please test your commands before giving suggestions. –  LordNeckbeard Aug 16 '12 at 1:45

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.