将带有 amr_nb 音频编解码器的 .mov 包装器转换为 aac/mp4a 编解码器

发布于 2024-12-26 04:04:54 字数 133 浏览 4 评论 0原文

我正在尝试为跨平台(Android/iPhone)应用程序实现视频消息功能。 目前,Android 上的应用程序以 .mov 包装器录制 AMR 窄带视频,iPhone 无法播放该视频。后端是centos 5.5,我想知道ffmpeg对于转码是否有用。

I am trying to implement a video messaging feature for cross platform(Android/iPhone) app.
Currently, the app on Android records the video with AMR narrowband in .mov wrapper and iPhone cannot play this video. The backend is centos 5.5 and I am wondering if ffmpeg is useful for transcoding this.

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

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

发布评论

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

评论(1

拧巴小姐 2025-01-02 04:04:54

是的,ffmpeg 应该能够进行转码。确保您构建的 ffmpeg 支持 AMR 和 H.264/AAC,然后您将能够使用类似于以下的命令进行转换:

ffmpeg -i input.mov -y -vcodec libx264 -vpre medium -vpre baseline -acodec libfaac output.mp4

This mp4 should play on both android and iphone。

Yes, ffmpeg should be able to do the transcoding. Make sure you build your ffmpeg with support for both AMR and H.264/AAC and then you'll be able to convert using a command similar to this:

ffmpeg -i input.mov -y -vcodec libx264 -vpre medium -vpre baseline -acodec libfaac output.mp4

This mp4 should play on both android and iphone.

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