4

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.

1
  • 1
    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, 2013 at 10:59

1 Answer 1

3

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.

1
  • 1
    +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, 2012 at 19:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .