将原始 .aac 文件包装到 .m4a 容器中的最简单方法是什么

发布于 2024-07-04 15:33:48 字数 303 浏览 8 评论 0原文

这个问题是从以下问题溢出的:

如何以编程方式将mp3转换为itunes可播放的aac/m4a文件?

无论如何,我学会了如何创建aac文件,然后我发现aac不仅仅是具有不同文件扩展名的m4a文件。 事实上,我需要以某种方式将 aac 包装到 m4a 容器中。 理想情况下,我能够简单地调用命令行。

This question is overflow from the following question:

How do I programmatically convert mp3 to an itunes-playable aac/m4a file?

Anyway, I learned how to create an aac file and then i found out that an aac is not just an m4a file with a different file extension. In fact, I need to somehow wrap the aac into an m4a container. Ideally I'd be able to simply make a call to the command line.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

腹黑女流氓 2024-07-11 15:33:49

只需使用任何 mp4-Muxer(如 Yamb)创建一个仅包含 aac 音轨的 mp4 文件,然后将文件扩展名更改为 m4a

Just use any mp4-Muxer like Yamb to create an mp4-file with only the aac audio track in it, then change the file extension to m4a.

ゃ懵逼小萝莉 2024-07-11 15:33:49

在我的例子中,如果没有明确的复制标志,它会出于某种奇怪的原因重新编码音频

avconv -i input.aac -acodec copy output.m4a

In my case, without the explicit flag to copy, it re-encodes the audio for some odd reason.

不奢求什么 2024-07-11 15:33:48

ffmpeg 是一个通用(解)复用器/转码器。 MP4Box 是来自 GPAC 的复用器/转码器,专用于 MP4 相关软件技术的软件包。 现在使用 MP4Box 似乎更明智,因为它在文件开头写入 moov 原子,这对于流媒体和 iPod 播放很重要。

像这样使用 ffmpeg:

ffmpeg -i input.aac -codec: copy output.m4a

像这样使用 MP4Box:

MP4Box -add input.aac#audio output.m4a

ffmpeg is a general purpose (de)muxer/transcoder. MP4Box is a (de)muxer/transcoder from GPAC, a package dedicated to MP4 related software tech. Right now it seems wiser to use MP4Box because it writes the moov atom at the beginning of the file, which is important for streaming and ipod playing.

Use ffmpeg like this:

ffmpeg -i input.aac -codec: copy output.m4a

Use MP4Box like this:

MP4Box -add input.aac#audio output.m4a
安穩 2024-07-11 15:33:48

mp4box 如果你想要一个专用工具; 这可能是最简单的方法。 ffmpeg 也可以完成这项工作。

mp4box if you want a dedicated tool; its probably the easiest way to go. ffmpeg can do the job too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文