Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #582 | Support for WebM/MKV #679

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nikolajovickg
Copy link

@nikolajovickg nikolajovickg commented Aug 30, 2024

Hello, I've written some basic support for WebM and Matroska files (issue #582 ). Currently it supports header, video, audio and subset of segment metadata. Due to size of pull request, broader support will be delivered soon. I have some questions regarding custom tags present in this container. By documentation (https://www.matroska.org/technical/elements.html) we could have multiple tags attached to multiple targets (video, audio, whole segment, etc.). Would it be better to put the tags into their own directory, or to map them inside target directory?

This is metadata that this code can currently extract (example file: http://file-examples.net/wp-content/uploads/2024/02/file_example_WEBM_480_900KB.webm) :

[EBML] Maximum ID length = 4
[EBML] Doctype = webm
[EBML] Maximum size length = 8
[EBML] Doctype read version = 2
[EBML] Version = 1
[EBML] Read version = 1
[EBML] Doctype version = 2
[Segment] Muxing app = Lavf57.83.100
[Segment] Writing app = Lavf57.83.100
[Segment] Duration = 30543
[Segment] Timestamp scale = 1000000
[Video] Pixel width = 480
[Video] Pixel height = 270
[Video] Interalced = 2
[Video] Default duration = 33333333
[Video] Track type = 1
[Video] Track UID = 1
[Video] Codec ID = V_VP8
[Video] Track number = 1
[Video] Tag lacing = 0
[Video] Language = und
[Audio] Bit depth = 32
[Audio] Sampling frequency = 48000
[Audio] Channels = 2
[Audio] Track type = 2
[Audio] Track UID = 2
[Audio] Codec ID = A_VORBIS
[Audio] Track number = 2
[Audio] Tag lacing = 0
[Audio] Language = und
[File Type] Detected File Type Name = MKV
[File Type] Detected File Type Long Name = Matroska Video Container
[File Type] Detected MIME Type = video/x-matroska
[File Type] Expected File Name Extension = mkv
[File] File Name = t3.webm
[File] File Size = 901185 bytes
[File] File Modified Date = Thu Aug 29 19:16:06 +02:00 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant