无法将 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 -acodec copy 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]/0x00000001 与输出不兼容编解码器 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
流映射:
流#0.0 -> #0.0
Stream #0.0 -> #0.0
无法为输出文件 #0 写入标头(编解码器参数不正确?)
Could not write header for output file #0 (incorrect codec parameters ?)
在哪里转换成.AVI (ffmpeg -i tempA.wav -acodec copy temp.avi)&.MOV (ffmpeg -i tempA.wav -acodec copy 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 容器格式不支持原始 pcm 音频.您将不得不使用 avi 或 mov.有关 mp4 容器支持的音频格式,请参阅 wikipedia 链接
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屋!