Can I save a pcm audio file to a .mp4 file?
I used the ffmpeg command "ffmpeg -i tempA.wav -acodec copy temp.mp4", but could not save it in the mp4 container file.
Input # 0, wav, from 'tempA.wav':
Duration: 00: 01: 36.51, bit: 128 kb / s
Stream
[mp4 @ 0x7d70e0] Tag [1] [0] [0] [0] / 0x00000001 is not compatible with the output codec id '65536'
Output # 0, mp4, 'temp.mp4':
Stream
Stream Display:
Stream # 0.0 → # 0.0
Failed to write header for output file # 0 (incorrect codec parameters?)
Where when converting to .AVI (ffmpeg -i tempA.wav -acodec copy temp.avi) & amp; .MOV (ffmpeg -i tempA.wav -acodec copy temp.mov) file formats work great.
source share