How to convert video to `m4v` using` ffmpeg`?

I am trying to encode a video on m4v, so I can play it using jplayer on my site, but having set the correct parameter to ffmpeg. Here is the command I'm using:

ffmpeg -i 1.avi -vcodec mpeg4 -f m4v -qmax 8 1.m4v 2>&1

The video that I get with this command will not play in jplayer and even in Totem Movie Player (on ubuntu). But if I try the demo video from jplayer , everything works fine.

Can someone give me a hint about what parameters I need to specify ffmpegin order to get a working video m4v, for example, with a rabbit?

+5
source share
3 answers

Try:

tools/ffmpeg/./ffmpeg -i debug/assets/videos/sample_iPod.mp4 -vcodec libx264 debug/assets/videos/sample_iPod.m4v
+4
source

Try:

# extract and encode audio
ffmpeg -i film.avi -vn temp_audio.mp3
faac -w -b 128 temp_audio.mp3 temp_audio.aac
# extract and encode video
ffmpeg -i input.avi -an -b 400 -vcodec mpeg4 temp_video.m4v
# mux into mp4
mp4creator -c temp_video.m4v -hint -r 30 output.mp4
mp4creator -c temp_audio.aac -hint -interleave output.mp4
rm temp_audio.mp3 temp_audio.aac temp_video.m4v

found here:

http://discerning.com/topics/audiovideo/video_encoding.html chapter ffmpeg (command shell)

+2
source

, , m4v, , "" , Google : m4v "mp4 DRM", - . , , - Adobe h.264 .

, , , - ffmpeg, tope, , mp4, -.

$> ffmpeg -i input.m4v -vcodec copy -acodec copy output.mp4

Or you can use a short (but harder to remember) form:

$> ffmpeg -i input.m4v -c:v copy -c:a copy output.mp4

Done, you should now have a perfectly playable mp4 file.

+2
source

All Articles