|
|
|
[STREAM]
|
|
|
|
index=0
|
|
|
|
start_pts=0
|
|
|
|
duration_ts=103326
|
|
|
|
[/STREAM]
|
|
|
|
[FORMAT]
|
|
|
|
start_time=0.000000
|
movenc: Present durations in mvhd/tkhd/mdhd as they are after edits
If the edit lists remove parts of the output timeline, or add a
delay to it, this should be included in the mvhd/tkhd/mdhd durations,
which should correspond to the edit lists.
For tracks starting with pts < 0, the edit list trims out the segment
before pts=0. For tracks starting with pts > 0, a delay element is
added in the edit list, delaying the start of the track data.
In both cases, the practical effect is that the post-edit output
is as if the track had started with pts = 0. Thus calculate the range
from pts=0 to end_pts, for the purposes of mvhd/tkhd/mdhd, unless
edit lists explicitly are disabled.
mov_write_edts_tag needs to operate on the actual pts duration of
the track samples, not the duration that already takes the edit
list effect into account.
Signed-off-by: Martin Storsjö <martin@martin.st>
4 years ago
|
|
|
duration=2.344000
|
|
|
|
[/FORMAT]
|
|
|
|
packet|pts=-1024|dts=-1024|duration=1024|flags=KDside_data|
|
|
|
|
|
|
|
|
packet|pts=0|dts=0|duration=1024|flags=K_
|
|
|
|
packet|pts=1024|dts=1024|duration=1024|flags=K_
|
|
|
|
packet|pts=2048|dts=2048|duration=1024|flags=K_
|
|
|
|
packet|pts=3072|dts=3072|duration=1024|flags=K_
|
|
|
|
packet|pts=4096|dts=4096|duration=1024|flags=K_
|
|
|
|
packet|pts=5120|dts=5120|duration=1024|flags=K_
|
|
|
|
packet|pts=95232|dts=95232|duration=1024|flags=K_
|
|
|
|
packet|pts=96256|dts=96256|duration=1024|flags=K_
|
|
|
|
packet|pts=97280|dts=97280|duration=1024|flags=K_
|
|
|
|
packet|pts=98304|dts=98304|duration=1024|flags=K_
|
|
|
|
packet|pts=99328|dts=99328|duration=1024|flags=K_
|
|
|
|
packet|pts=100352|dts=100352|duration=1024|flags=K_
|
|
|
|
packet|pts=101376|dts=101376|duration=1024|flags=K_
|
|
|
|
packet|pts=102400|dts=102400|duration=926|flags=K_
|
|
|
|
stream|nb_read_packets=102
|
|
|
|
frame|pts=0|pkt_dts=0|best_effort_timestamp=0|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=1024|pkt_dts=1024|best_effort_timestamp=1024|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=2048|pkt_dts=2048|best_effort_timestamp=2048|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=3072|pkt_dts=3072|best_effort_timestamp=3072|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=4096|pkt_dts=4096|best_effort_timestamp=4096|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=5120|pkt_dts=5120|best_effort_timestamp=5120|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=6144|pkt_dts=6144|best_effort_timestamp=6144|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=7168|pkt_dts=7168|best_effort_timestamp=7168|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=95232|pkt_dts=95232|best_effort_timestamp=95232|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=96256|pkt_dts=96256|best_effort_timestamp=96256|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=97280|pkt_dts=97280|best_effort_timestamp=97280|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=98304|pkt_dts=98304|best_effort_timestamp=98304|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=99328|pkt_dts=99328|best_effort_timestamp=99328|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=100352|pkt_dts=100352|best_effort_timestamp=100352|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=101376|pkt_dts=101376|best_effort_timestamp=101376|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=102400|pkt_dts=102400|best_effort_timestamp=102400|pkt_duration=926|nb_samples=1024
|
|
|
|
stream|nb_read_frames=101
|