|
|
|
[STREAM]
|
|
|
|
index=0
|
|
|
|
start_pts=0
|
|
|
|
duration_ts=529200
|
|
|
|
[/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=12.000000
|
|
|
|
[/FORMAT]
|
|
|
|
packet|pts=-1024|dts=-1024|duration=1024|flags=KD_|
|
|
|
|
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=6144|dts=6144|duration=1024|flags=K__
|
|
|
|
packet|pts=521216|dts=521216|duration=1024|flags=K__
|
|
|
|
packet|pts=522240|dts=522240|duration=1024|flags=K__
|
|
|
|
packet|pts=523264|dts=523264|duration=1024|flags=K__
|
|
|
|
packet|pts=524288|dts=524288|duration=1024|flags=K__
|
|
|
|
packet|pts=525312|dts=525312|duration=1024|flags=K__
|
|
|
|
packet|pts=526336|dts=526336|duration=1024|flags=K__
|
|
|
|
packet|pts=527360|dts=527360|duration=1024|flags=K__
|
|
|
|
packet|pts=528384|dts=528384|duration=816|flags=K__
|
|
|
|
stream|nb_read_packets=518
|
|
|
|
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=521216|pkt_dts=521216|best_effort_timestamp=521216|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=522240|pkt_dts=522240|best_effort_timestamp=522240|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=523264|pkt_dts=523264|best_effort_timestamp=523264|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=524288|pkt_dts=524288|best_effort_timestamp=524288|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=525312|pkt_dts=525312|best_effort_timestamp=525312|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=526336|pkt_dts=526336|best_effort_timestamp=526336|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=527360|pkt_dts=527360|best_effort_timestamp=527360|pkt_duration=1024|nb_samples=1024
|
|
|
|
frame|pts=528384|pkt_dts=528384|best_effort_timestamp=528384|pkt_duration=816|nb_samples=1024
|
|
|
|
stream|nb_read_frames=517
|