将 FFmpeg 中的视频编码为 X264 并使其可在 Quicktime 中播放
我想知道我需要显式设置(或避免)哪些命令行设置才能使视频编码为 x264(以 mp4 格式),默认情况下使用 ffmpeg 可在 Quicktime 中播放。我发现许多预定义的预设文件对我有用,但其中一些则不然,例如我无法让任何无损文件工作,而我也对这些文件感兴趣。例如,libx264-lossless_max.ffpreset 将对我的视频进行编码,但它只能在 VLC 中播放,而不能在 Quicktime 中播放。在 Quicktime 中,视频保持黑色。我知道 Perian 是一个选项,但我希望我的文件可以在不安装 Perian 的情况下播放。感谢您的帮助。
I am wondering which command line settings i need to explicitly set (or avoid) to make a video encoded into x264 (in the mp4 format) using ffmpeg by default playable in Quicktime. I find that a number of the predefined preset files work for me but some of them won't, for example I can't get any of the lossless ones to work and I'm interested in those ones as well. For example libx264-lossless_max.ffpreset will encode my video but it's only playable in VLC, not in Quicktime. In Quicktime the video stays black. I know Perian is an option but I want my file to be playable without installing Perian. Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide:
请记住Apple Quicktime 仅支持 x264 编码电影的 YUV 420 色彩空间,并且不支持高于“主”配置文件的任何内容。这使得 QuickTime 兼容剪辑只剩下 2 个选项:基线和主线。目前,Quicktime 不支持所有其他配置文件,尽管它们几乎可以在任何其他播放器中播放。
另外,对于上面的答案:Quicktime 本身并不是专有的编解码器。 Quicktime 是一个媒体包装器,能够包含许多不同的编解码器。 Quicktime 本身不是编解码器。
http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide:
Keep in mind that Apple Quicktime only supports YUV 420 color space for x264 encoded movies, and does not support anything higher than the "main" profile. This leaves only 2 options for quicktime compatible clips: baseline and main. All of the other profiles are currently not supported with Quicktime, although they will play back in pretty much any other player.
Also, to the answer above: Quicktime is not a proprietary codec per se. Quicktime is a media wrapper capable of containing many different codecs. Quicktime itself is not a codec.