How to convert m4v and wmv videos to mp4 format using ffmpeg?
For those who still find this question today, because they're trying to play m4v
files that their hardware or software generated, but none of the players they try will play them: m4v
is not just a playable media container, but is also used as a pure stream format by a number of commonly used tools and video capture devices, so that it can be used to burn the video directly to disc. This is especially likely when you're using something like Adobe's Creative Suite set of tools for video production.
To turn an "unplayable" m4v
stream (that your capture device/software suggests should totally be playable) into the kind of video file you're used to, tell ffmpeg to copy the stream into an mp4
container:
$> ffmpeg -i input.m4v -vcodec copy -acodec copy output.mp4
Or, using the combined a/v codec shorthand flag:
$> ffmpeg -i input.m4v -c copy output.mp4
No actual encoding happens, so this will only take a few seconds, if not less. Done deal.
Unsupported codec
The audio stream of your file seems to be encoded in a format that ffmpeg doesn't understand.
Adding new codecs to ffmpeg is possible, but doesn't seem to be easy: See Adding new CODEC to ffmpeg