I'm trying to create a m4v video with the 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 is the error that I'm getting:
[ipod @ 0x7fbbc9801600] Could not find tag for codec mp3 in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
If I do the same command to create a mp4 video, it works correctly, as such:
ffmpeg -loop 1 -i orange640x360.png -i Be+Present.mp3 -tune stillimage -shortest -c:v libx264 -c:a copy ./Be+Presentorange640x360.mp4
.m4v is the required format for jPlayer which I'm currently using.
Since I was not sure I looked it up and yeah - FFmpeg considers
m4vfiles to be a raw video stream container without any audio. From rawenc.c on github:So the error is appropriate, since you are trying to put an MP3 audio stream inside
m4v. I'd suggest trying themp4version - docs and examples of jPlayer indicate that it should handle it.