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

Unable to parse Mainconcept Video Media Handler MP4 files #359

Open
riftweaverAndrew opened this issue Dec 19, 2024 · 0 comments
Open

Unable to parse Mainconcept Video Media Handler MP4 files #359

riftweaverAndrew opened this issue Dec 19, 2024 · 0 comments

Comments

@riftweaverAndrew
Copy link

riftweaverAndrew commented Dec 19, 2024

mp4 files encoded using MainConcept Codecs are unable to be parsed correctly by TagLib. The codecs returned are null and the Video Width and Height are both 0. The data is in the mp4, it's just not being parsed correctly by TagLib (MacOS Get Info is able to properly parse and extract the codec). Below is mp4dump output of the [stsd] boxes for the format that works, and the format that doesn't. If helpful, I can provide the entire mp4dump for each file. I'm also happy to provide each video file to reproduce the issue.

Good Format

[stsd] size=12+165
  entry_count = 1
  [avc1] size=8+153
    data_reference_index = 1
    width = 854
    height = 480
    compressor =
    [avcC] size=8+31
      Configuration Version = 1
      Profile = Baseline
      Profile Compatibility = 0
      Level = 31
      NALU Length Size = 4
      Sequence Parameter = [27 42 00 1f ab 40 6c 1e f3 73 50 20 20 2a 40 80]
      Picture Parameter = [28 ce 3c 80]
    [fiel] size=8+2
    [chrm] size=8+2
    [pasp] size=8+8

Bad Format

[stsd] size=12+129
  entry_count = 1
  [avc1] size=8+117
    data_reference_index = 1
    width = 1920
    height = 1080
    compressor = AVC Coding
    [avcC] size=8+31
      Configuration Version = 1
      Profile = Main
      Profile Compatibility = 0
      Level = 41
      NALU Length Size = 4
      Sequence Parameter = [27 4d 00 29 ab 28 0f 00 44 fc b3 50 10 10 10 20]
      Picture Parameter = [28 ee 3c 80]
@riftweaverAndrew riftweaverAndrew changed the title Unable to parse some MP4 files Unable to parse Mainconcept Video Media Handler MP4 files Dec 19, 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

No branches or pull requests

1 participant