I have audio and video in separate mp4 files. I would like to generate one mpd that have 2 components (Adaptation Sets), one video and one audio. Is it possible to do with mp4Box in one call?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got 1 video component and 1 audio component with 2 representations. Maybe there is a way to instruct mp4Box to make 2 separate audio components,
<?xml version="1.0"?><!-- MPD file Generated with GPAC version 0.5.1-DEV-rev4224 --><MPDxmlns="urn:mpeg:dash:schema:mpd:2011"minBufferTime="PT1.5S"type="static"mediaPresentationDuration="PT0H3M0.37S"profiles="urn:mpeg:dash:profile:isoff-live:2011"><ProgramInformationmoreInformationURL="http://hbbtv.test/media/DASH/t720x576_25fps_HPL4_1v_2a/"><Title>720x576_25fps_HPL4_1v_2a.mpd generated by GPAC</Title></ProgramInformation><BaseURL>http://hbbtv.test/media/DASH//</BaseURL><Periodduration="PT0H3M0.37S"><AdaptationSetsegmentAlignment="true"maxWidth="720"maxHeight="576"maxFrameRate="25"par="5:4"><Representationid="1"mimeType="video/mp4"codecs="avc1.640028"width="720"height="576"frameRate="25"sar="1:1"startWithSAP="1"bandwidth="1513665"><SegmentTemplatetimescale="1000"duration="1000"media="seg_720x576_25fps_HPL4$Number$.m4s"startNumber="1"initialization="seg_720x576_25fps_HPL4init.mp4"/></Representation></AdaptationSet><AdaptationSetsegmentAlignment="true"bitstreamSwitching="true"><AudioChannelConfigurationschemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011"value="2"/><SegmentTemplateinitialization="720x576_25fps_HPL4_1v_2a_set2_init.mp4"/><Representationid="2"mimeType="audio/mp4"codecs="mp4a.40.02"audioSamplingRate="22050"startWithSAP="1"bandwidth="66468"><SegmentTemplatetimescale="1000"duration="882"media="seg_audio_music_bitrate_64000$Number$.m4s"startNumber="1"/></Representation><Representationid="3"mimeType="audio/mp4"codecs="mp4a.40.02"audioSamplingRate="22050"startWithSAP="1"bandwidth="50542"><SegmentTemplatetimescale="1000"duration="882"media="seg_audio_guitar_44100$Number$.m4s"startNumber="1"/></Representation></AdaptationSet></Period></MPD>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
now on svn using :role=VALUE for each input file. If VALUE is any of the value listed in the DASH spec, the Role descriptor is added to the MPD. In any case, representations with different role values will be in different adaptation sets
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry for double post, now it works I had to specify different roles for each video Adaptation Sets so i made : main alternate and commentary. When I had 2 alternate gpac made 1 Adaptation set with 2 representations.
So in general works ok
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have audio and video in separate mp4 files. I would like to generate one mpd that have 2 components (Adaptation Sets), one video and one audio. Is it possible to do with mp4Box in one call?
it is automatically done by MP4Box:
MP4Box -dash 1000 -out pres.mpd audio.mp4 video1.mp4 video2.mp4
will create the adaptationSets as needed
when I have tried to make mpd with 3 components 1 video and 2 audio (these are different audios):
I got 1 video component and 1 audio component with 2 representations. Maybe there is a way to instruct mp4Box to make 2 separate audio components,
for now only the language code can be used - I can add another selector if needed
Hello another selector would be very good.
now on svn using :role=VALUE for each input file. If VALUE is any of the value listed in the DASH spec, the Role descriptor is added to the MPD. In any case, representations with different role values will be in different adaptation sets
is there any selector to specify video adaptation set?
I tried with role but for 3 videos I got 2 Adaptation Sets
sorry for double post, now it works I had to specify different roles for each video Adaptation Sets so i made : main alternate and commentary. When I had 2 alternate gpac made 1 Adaptation set with 2 representations.
So in general works ok