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

support mdat size 0 #312

Closed
3052 opened this issue Jan 3, 2024 · 2 comments
Closed

support mdat size 0 #312

3052 opened this issue Jan 3, 2024 · 2 comments

Comments

@3052
Copy link

3052 commented Jan 3, 2024

> mp4ff-info out.m4v
2024/01/02 18:27:50 Size 0, meaning to end of file, not supported

other tools work as expected:

> mp4tool dump out.m4v
[ftyp] Size=40 ... (use "-full ftyp" to show all)
[moov] Size=1866
  [mvhd] Size=108 ... (use "-full mvhd" to show all)
  [meta] Size=148 Version=0 Flags=0x000000
    [hdlr] Size=32 Version=0 Flags=0x000000 PreDefined=0 HandlerType="ID32" Name=""
    [ID32] (unsupported box type) Size=104 Data=[...] (use "-full ID32" to show all)
  [trak] Size=598
    [tkhd] Size=92 ... (use "-full tkhd" to show all)
    [mdia] Size=462
      [mdhd] Size=32 Version=0 Flags=0x000000 CreationTimeV0=3778274330 ModificationTimeV0=3778274330 Timescale=24000 DurationV0=0 Language="eng" PreDefined=0
      [hdlr] Size=45 Version=0 Flags=0x000000 PreDefined=0 HandlerType="vide" Name="VideoHandler"
      [minf] Size=377
        [dinf] Size=36
          [dref] Size=28 Version=0 Flags=0x000000 EntryCount=1
            [url ] Size=12 Version=0 Flags=0x000001
        [stbl] Size=313
          [stsd] Size=237 Version=0 Flags=0x000000 EntryCount=1
            [encv] Size=221 ... (use "-full encv" to show all)
              [avcC] Size=55 ... (use "-full avcC" to show all)
              [sinf] Size=80
                [frma] Size=12 DataFormat="avc1"
                [schm] Size=20 Version=0 Flags=0x000000 SchemeType="cenc" SchemeVersion=0x10000
                [schi] Size=40
                  [tenc] Size=32 ... (use "-full tenc" to show all)
          [stts] Size=16 Version=0 Flags=0x000000 EntryCount=0 Entries=[]
          [stsc] Size=16 Version=0 Flags=0x000000 EntryCount=0 Entries=[]
          [stsz] Size=20 Version=0 Flags=0x000000 SampleSize=0 SampleCount=0 EntrySize=[]
          [stco] Size=16 Version=0 Flags=0x000000 EntryCount=0 ChunkOffset=[]
        [vmhd] Size=20 Version=0 Flags=0x000001 Graphicsmode=0 Opcolor=[0, 0, 0]
    [edts] Size=36
      [elst] Size=28 Version=0 Flags=0x000000 EntryCount=1 Entries=[{SegmentDurationV0=0 MediaTimeV0=2002 MediaRateInteger=1}]
  [mvex] Size=56
    [mehd] Size=16 Version=0 Flags=0x000000 FragmentDurationV0=187787600
    [trex] Size=32 Version=0 Flags=0x000000 TrackID=1 DefaultSampleDescriptionIndex=1 DefaultSampleDuration=1001 DefaultSampleSize=0 DefaultSampleFlags=0x0
  [pssh] Size=88 ... (use "-full pssh" to show all)
  [pssh] Size=860 ... (use "-full pssh" to show all)
[styp] Size=40 ... (use "-full styp" to show all)
[sidx] Size=44 ... (use "-full sidx" to show all)
[moof] Size=4177
  [mfhd] Size=16 Version=0 Flags=0x000000 SequenceNumber=1
  [traf] Size=4153
    [tfhd] Size=24 Version=0 Flags=0x02000a TrackID=1 SampleDescriptionIndex=1 DefaultSampleDuration=1001
    [tfdt] Size=16 Version=0 Flags=0x000000 BaseMediaDecodeTimeV0=0
    [saiz] Size=17 Version=0 Flags=0x000000 DefaultSampleInfoSize=16 SampleCount=144
    [saio] Size=20 Version=0 Flags=0x000000 EntryCount=1 OffsetV0=[1873]
    [trun] Size=1748 ... (use "-full trun" to show all)
    [senc] (unsupported box type) Size=2320 Data=[...] (use "-full senc" to show all)
[mdat] Size=4231358 Data=[...] (use "-full mdat" to show all)

https://github.com/abema/go-mp4/tree/master/cmd/mp4tool

@tobbee
Copy link
Collaborator

tobbee commented Jan 4, 2024

Yes, that is not supported. I don't consider it an important case. Do you have a common use case?

@3052
Copy link
Author

3052 commented Jan 4, 2024

closing for now, #311 is prob a better focus

@3052 3052 closed this as completed Jan 4, 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

2 participants