Skip to content

mp4edit not working on segment #15

@bcasinclair

Description

@bcasinclair

I am trying to use mp4edit on a single segment generated as part of a DASH live profile and it appears to be failing to process the m4f correctly.

For example the mp4dump of the seg-0.m4f is:
[moof] size=8+488
[mfhd] size=12+4
sequence number = 1
[traf] size=8+464
[tfhd] size=12+8, flags=20020
track ID = 1
default sample flags = 1010000
[tfdt] size=12+8, version=1
base media decode time = 0
[trun] size=12+412, flags=305
sample count = 50
data offset = 504
first sample flags = 2000000
[mdat] size=8+118697

My attempt to use mp4edit (example only via remove):
mp4edit --remove moof/traf[0]/tfhd seg-0.m4f edit.m4f
ERROR: atom 'moof/traf[0]/tfhd' not found

Whereas the same command works when operating on a full mp4 with --remove moov/trak[0]/tkhd e.g.
sample structure:
[ftyp] size=8+28
major_brand = isom
minor_version = 1
compatible_brand = isom
compatible_brand = avc1
compatible_brand = mp42
compatible_brand = iso5
compatible_brand = iso6
[moov] size=8+800
[mvhd] size=12+96
timescale = 1000
duration = 65760
duration(ms) = 65760
[trak] size=8+555
[tkhd] size=12+80, flags=7
enabled = 1
id = 1
duration = 65760
width = 640.000000
height = 360.000000

I am using the latest pull from master

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions