.h264 容器可以包含音轨吗?

发布于 2024-08-14 02:55:46 字数 23 浏览 4 评论 0原文

.h264 容器可以包含音轨吗?

Can .h264 container contain audio tracks?

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

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

发布评论

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

评论(2

一枫情书 2024-08-21 02:55:46

我猜您正在使用“.h264”作为文件扩展名来表示原始 H.264 (AVC) 视频流。在这种情况下不行,它只是一个视频流,不能包含任何其他媒体流。

它本身没有多大用处,因为无法查找原始(多路分解)视频流(无索引)并且几乎没有任何内容可以播放它。您必须将其与任何音频或其他附加媒体流一起复用到容器文件(通常是 MP4 或 MKV)中。

在没有容器的情况下将原始视频流存储为独立文件并不常见。通常,它们在单独处理解复用的视频和音频流时用作中间步骤,并在使用后删除。

(另一种可能性是它只是一个命名错误的 AVC-in-MP4-container 文件,在这种情况下,您可以将音频放入其中,但您也应该将其重命名为 .mp4 以解决混乱。)

I'm guessing you are using ‘.h264’ as a file extension to denote raw H.264 (AVC) video streams. In this case no, it's only a single video stream that can't include any other media streams inside it.

It wouldn't be much use on its own since a raw (demultiplexed) video stream can't be seeked (no index) and almost nothing will play it. You'd have to multiplex it together with any audio or other additional media streams into a container file (typically MP4 or MKV).

It's not common to store raw video streams without a container as standalone files. Typically they are used as an intermediate step when processing demultiplexed video and audio streams separately and deleted after use.

(The other possibility is it's just a badly-named AVC-in-MP4-container file, in which case yes you can put audio in it, but you should also rename it .mp4 to fix the confusion.)

赠佳期 2024-08-21 02:55:46

你的问题完全没有意义。根据您所问的问题,答案可能是肯定的或否定的。

使用 H.264 编码的视频容器(例如 MKV 或 MP4)绝对可以包含音频。这样您就可以观看有声的 H.264 视频。

另一方面,听起来您可能对 H.264 到底是什么感到困惑。 H.264/MPEG-4 AVC是视频压缩的标准,与音频完全无关。 关于 H.264 的维基百科文章说得很清楚,所以有一个如果你还没有读过的话。

Your question doesn't exactly make sense. Depending on what you're asking, the answer might be yes or no.

A container for video encoded with H.264 - such as an MKV or MP4 - can absolutely contain audio. That's how you can watch an H.264 video that has sound as well.

On the other hand, it sounds like you could be confused about what H.264 actually is. H.264/MPEG-4 AVC is a standard for video compression, which has nothing to do with audio at all. The Wikipedia article on H.264 makes it pretty clear, so have a read over there if you haven't already.

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