Skip to content

Unable to parse Mainconcept Video Media Handler MP4 files #359

Open
@riftweaverAndrew

Description

@riftweaverAndrew

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions