mirror of
https://github.com/axiomatic-systems/Bento4.git
synced 2026-01-12 00:18:59 +08:00
Added supper for turn with version==1
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -71,7 +71,8 @@ PrintUsageAndExit()
|
||||
"Options:\n"
|
||||
" --verbose\n"
|
||||
" --init-segment <filename> (default: init.mp4)\n"
|
||||
" --media-segment <filename-pattern> (default: segment-%%d.%%4d.m4f)\n"
|
||||
" --media-segment <filename-pattern> (default: segment-%%d.%%04d.m4f\n"
|
||||
" or segment-%%04d.m4f if the --no-track-id option is used)\n"
|
||||
" --no-track-id\n"
|
||||
" --audio\n"
|
||||
" --video\n");
|
||||
|
||||
@@ -87,7 +87,7 @@ main(int argc, char** argv)
|
||||
AP4_Track* video_track = movie->GetTrack(AP4_Track::TYPE_VIDEO);
|
||||
CHECK(video_track != NULL);
|
||||
AP4_Track* audio_track = movie->GetTrack(AP4_Track::TYPE_AUDIO);
|
||||
CHECK(video_track != NULL);
|
||||
CHECK(audio_track != NULL);
|
||||
|
||||
AP4_LinearReader reader(*movie, input);
|
||||
AP4_Sample sample;
|
||||
|
||||
@@ -425,7 +425,7 @@ def main():
|
||||
period = xml.SubElement(mpd, 'Period')
|
||||
|
||||
# use the first media file for audio
|
||||
adaptation_set = xml.SubElement(period, 'AdaptationSet', mimeType=AUDIO_MIMETYPE)
|
||||
adaptation_set = xml.SubElement(period, 'AdaptationSet', mimeType=AUDIO_MIMETYPE, segmentAlignment='true')
|
||||
if options.marlin:
|
||||
AddContentProtection(adaptation_set, [media_files[0]], 'audio')
|
||||
bandwidth = media_files[0].max_segment_bitrate[media_files[0].audio_track_id]
|
||||
@@ -437,7 +437,7 @@ def main():
|
||||
|
||||
|
||||
# process all the video
|
||||
adaptation_set = xml.SubElement(period, 'AdaptationSet', mimeType=VIDEO_MIMETYPE, startWithSAP='1')
|
||||
adaptation_set = xml.SubElement(period, 'AdaptationSet', mimeType=VIDEO_MIMETYPE, segmentAlignment='true', startWithSAP='1')
|
||||
if options.marlin:
|
||||
AddContentProtection(adaptation_set, media_files, 'video')
|
||||
for media_file in media_files:
|
||||
|
||||
Reference in New Issue
Block a user