ffmpeg - WebM DocType 版本表示什么?

标签 ffmpeg webm matroska

如果 WebM 的 DocTypeVersion是 4,这意味着什么并与之相关?那是version 4 of the Matroska specification draft ?还是 WebM 有自己独立于 Matroska 的版本控制?我在 webmproject.org 上找不到任何信息
在分析 ffmpeg 创建的 WebM 文件后,我看到“文档类型版本”是 4:

$ ffmpeg -i audio.opus -a:c copy audio.webm
$ mkvinfo audio.webm

+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ Maximum EBML ID length: 4
|+ Maximum EBML size length: 8
|+ Document type: webm
|+ Document type version: 4             <=  This is what I'm referencing
|+ Document type read version: 2

最佳答案

WebMs 是一种 EBML 文档。

来自 https://github.com/cellar-wg/ebml-specification/blob/master/specification.markdown

The version of the EBML Body is found in EBMLDocTypeVersion. A parser for the particular DocType format can read the EBML Document if it can read either the EBMLDocTypeVersion version of that format or a version equal or higher than the one found in EBMLDocTypeReadVersion.



如果存在带有编解码器 Opus 的音频流,或者视频流具有存储在附加 block 中的 alpha channel 或者是立体声视频,则 FFmpeg 将 WebM 的版本设置为 4。

关于ffmpeg - WebM DocType 版本表示什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59548536/

相关文章:

batch-file - Windows : unable to control output video length and problems with using wildcards 上的 MLT 融化幻灯片

flutter - 添加水印时出现FFmpeg错误: Not overwriting - exiting

html - Chrome 在页面加载时同时下载 webm 和 mp4 HTML5 视频源

ffmpeg 无损转换 webm 到 mp4 产生文件不是 winmediaplayer 可见的

javascript - 如何单独播放由 MediaRecorder 创建的 WEBM 文件

windows - Windows 快速启动命令行上的 FFMPEG,带或不带 +

python - Pydub安装和ffmpeg

c# - ASP.NET 视频 webm 未加载

ffmpeg - 如何从 ffserver 流式传输音频

ffmpeg - 将 h264 字节流重新打包到 Matroska 输出