-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feat/parse codec #14
Feat/parse codec #14
Conversation
3122fe3
to
e813a49
Compare
fix content generation script dist path add ec-3 in an ac3 container
900b046
to
e077a4c
Compare
72d581a
to
c372919
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only super minor stuff, granted I didn't investigate the internals too closely.
Is there a good way to verify this aside from trusting the tests?
]; | ||
|
||
const videoCodecs = [ | ||
// TODO: use another encoder, ffmpeg does not support codecPrivate for vp09 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something important to have? Maybe we can just generate a one off file for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super important, but it would certainly help verify that we are doing parsing correctly, it would be good to get eventually.
src/containers.js
Outdated
// ac3 sync byte | ||
'ac3': toUint8([0x0b, 0x77]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about ec-3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ec-3 is kind of like a codec contained within the ac3 container
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's what I thought but wasn't sure. I think it's worth adding a comment here saying that this covers ec-3 as well.
Once I write up the usage for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me.
…rsing codecs from files (#14) BREAKING CHANGE: toUint8 in byte-helpers functions slightly differently BREAKING CHANGE: getId3Offset is exported from id3-helpers rather than containers We can now parse the container for and many of the codecs within (where applicable) for mp4, avi, ts, mkv, webm, ogg, wav, aac, ac3 (and ec3 which is contained in ac3 files), mp3, flac, raw h265, and raw h264. Codec parsing has also been extended to parse codec details in a file for vp09, avc (h264), hevc (h265), av1, and opus Finally we have the following additional features to our parsing of codec/container information: * skipping multiple id3 tags at the start of a file for flac, mp3, and aac * discarding emulation prevention bits (in h264, h265) * parsing raw h264/h265 to get codec params for ts, avi, and even raw h264/h265 files
Notes for code Review:
formats/*
bin/big-buck-bunny.mp4
Description/Features
Parse the following container formats and the codecs that they have:
Also parses specific codec parameters where available for:
Finally we handle: