How to create a m4v video using ffmpeg? -
i'm trying create m4v video following command using ffmpeg:
ffmpeg -loop 1 -i orange640x360.png -i be+present.mp3 -tune stillimage -shortest -c:v libx264 -c:a copy ./be+presentorange640x360.m4v
this error i'm getting:
[ipod @ 0x7fbbc9801600] not find tag codec mp3 in stream #1, codec not supported in container
could not write header output file #0 (incorrect codec parameters ?): invalid argument
if same command create mp4 video, works correctly, such:
ffmpeg -loop 1 -i orange640x360.png -i be+present.mp3 -tune stillimage -shortest -c:v libx264 -c:a copy ./be+presentorange640x360.mp4
.m4v required format jplayer i'm using.
since not sure looked , yeah - ffmpeg considers m4v
files raw video stream container without audio. rawenc.c on github:
#if config_m4v_muxer avoutputformat ff_m4v_muxer = { .name = "m4v", .long_name = null_if_config_small("raw mpeg-4 video"), .extensions = "m4v", .audio_codec = av_codec_id_none, .video_codec = av_codec_id_mpeg4, .write_header = force_one_stream, .write_packet = ff_raw_write_packet, .flags = avfmt_notimestamps, }; #endif
so error appropriate, since trying put mp3 audio stream inside m4v
. i'd suggest trying mp4
version - docs , examples of jplayer indicate should handle it.
Comments
Post a Comment