尝试:
tools/ffmpeg/./ffmpeg -i debug/assets/videos/sample_iPod.mp4 -vcodec libx264 debug/assets/videos/sample_iPod.m4v
$> ffmpeg -i input.m4v -vcodec copy -acodec copy output.mp4
$> ffmpeg -i input.m4v -c:v copy -c:a copy output.mp4
完成,现在您应该拥有一个完全可播放的mp4文件。
尝试:
# 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
http://discerning.com/topics/audiovideo/video_encoding.html 章节 ffmpeg (命令行)
mp4
,而不是 m4v
。 - Silver Light