无法存储PCM音频在.MP4容器文件 [英] Unable to store pcm audio in .mp4 container file
问题描述
是否有可能一个PCM音频文件存储到.mp4档案?
Is it possible to store a pcm audio file into .mp4 file?
我用的ffmpeg的命令的ffmpeg -i tempA.wav -a codeC副本temp.mp4的,但无法将其存储在MP4容器文件中。
I used ffmpeg command "ffmpeg -i tempA.wav -acodec copy temp.mp4" but unable to store it in mp4 container file.
输入#0,WAV,从'tempA.wav':
Input #0, wav, from 'tempA.wav':
时间:00:01:36.51,码率:128 kb / s的
Duration: 00:01:36.51, bitrate: 128 kb/s
Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, s16, 128 kb/s
[MP4 @ 0x7d70e0]标签[1] [0] [0] [0] / 00000001与输出不兼容
codeC ID为65536
[mp4 @ 0x7d70e0] Tag [1][0][0][0]/0x00000001 incompatible with output codec id '65536'
输出#0,MP4,以'temp.mp4的
Output #0, mp4, to 'temp.mp4':
Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, 128 kb/s
流图:
Stream mapping:
流#0.0 - >#0.0
Stream #0.0 -> #0.0
无法写入输出文件#0(不正确codeC参数头
?)
Could not write header for output file #0 (incorrect codec parameters ?)
凡在转换为 .AVI (ffmpeg的-i tempA.wav -a codeC副本temp.avi)
&安培; .MOV (ffmpeg的-i tempA.wav -a codeC副本temp.mov)文件格式工作完全正常。
Where in converting to .AVI (ffmpeg -i tempA.wav -acodec copy temp.avi) & .MOV (ffmpeg -i tempA.wav -acodec copy temp.mov) file formats works perfectly fine.
推荐答案
我不认为MP4容器格式支持RAW PCM音频。你将不得不为使用的AVI或MOV。
见MP4容器维基百科链接,支持的音频格式
I don't think mp4 container format support raw pcm audio. You will have to use either avi or mov. See wikipedia link for supported audio format for mp4 container
http://en.wikipedia.org/wiki/Comparison_of_container_formats
也跟着doom9论坛链接。
Also follow doom9 forum link.
http://forum.doom9.org/archive/index。 PHP / T-140877.html
官方网页
http://mpeg.chiariglione.org/standards/mpeg-4/audio
这篇关于无法存储PCM音频在.MP4容器文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!