FFmpeg DASH Optional Adaptation Set
Dear All, I am using the following FFmpeg command for dash generation, ffmpeg -i video.mpeg -preset superfast -r 30 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 1500000 -s:v:0 768x432 -map v:0 -b:v:1 750000 -s:v:1 640x360 -map v:0 -b:v:2 500000 -s:v:2 512x288 -map 0:a? -f dash -adaptation_sets "id=0,streams=v id=1,streams=a" -utc_timing_url manifest-mpd. Currently the manifest is creating an empty adaptation set for videos which do not contain audio: <AdaptationSet id="1" contentType="audio" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true"></AdaptationSet> I thougth that by using -map 0:a? i would make it optional but it is not the case. As you see above the adaptation set is still created. A lot of thanks, Best regards. P Please consider the environment before printing this e-mail.
Then, is possible to make an audio adaptation set optional? ________________________________ De: Mar Andrés López Enviado: jueves, 15 de julio de 2021 15:51:49 Para: ffmpeg-user@ffmpeg.org Asunto: FFmpeg DASH Optional Adaptation Set Dear All, I am using the following FFmpeg command for dash generation, ffmpeg -i video.mpeg -preset superfast -r 30 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 1500000 -s:v:0 768x432 -map v:0 -b:v:1 750000 -s:v:1 640x360 -map v:0 -b:v:2 500000 -s:v:2 512x288 -map 0:a? -f dash -adaptation_sets "id=0,streams=v id=1,streams=a" -utc_timing_url manifest-mpd. Currently the manifest is creating an empty adaptation set for videos which do not contain audio: <AdaptationSet id="1" contentType="audio" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true"></AdaptationSet> I thougth that by using -map 0:a? i would make it optional but it is not the case. As you see above the adaptation set is still created. A lot of thanks, Best regards. P Please consider the environment before printing this e-mail.
On Thu, 15 Jul 2021 at 16:52, Mar Andrés López <mar.andres.l@gmv.com> wrote:
Dear All,
I am using the following FFmpeg command for dash generation,
ffmpeg -i video.mpeg -preset superfast -r 30 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 1500000 -s:v:0 768x432 -map v:0 -b:v:1 750000 -s:v:1 640x360 -map v:0 -b:v:2 500000 -s:v:2 512x288 -map 0:a? -f dash -adaptation_sets "id=0,streams=v id=1,streams=a" -utc_timing_url manifest-mpd.
Currently the manifest is creating an empty adaptation set for videos which do not contain audio:
<AdaptationSet id="1" contentType="audio" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true"></AdaptationSet>
I thougth that by using -map 0:a? i would make it optional but it is not the case. As you see above the adaptation set is still created.
What version of FFmpeg are you using?
The version I am using is 4.3.1 ________________________________ De: ffmpeg-user <ffmpeg-user-bounces@ffmpeg.org> en nombre de Dennis Mungai <dmngaie@gmail.com> Enviado: jueves, 15 de julio de 2021 16:30:21 Para: FFmpeg user questions Asunto: Re: [FFmpeg-user] FFmpeg DASH Optional Adaptation Set On Thu, 15 Jul 2021 at 16:52, Mar Andrés López <mar.andres.l@gmv.com> wrote:
Dear All,
I am using the following FFmpeg command for dash generation,
ffmpeg -i video.mpeg -preset superfast -r 30 -vcodec libx264 -acodec aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 1500000 -s:v:0 768x432 -map v:0 -b:v:1 750000 -s:v:1 640x360 -map v:0 -b:v:2 500000 -s:v:2 512x288 -map 0:a? -f dash -adaptation_sets "id=0,streams=v id=1,streams=a" -utc_timing_url manifest-mpd.
Currently the manifest is creating an empty adaptation set for videos which do not contain audio:
<AdaptationSet id="1" contentType="audio" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true"></AdaptationSet>
I thougth that by using -map 0:a? i would make it optional but it is not the case. As you see above the adaptation set is still created.
What version of FFmpeg are you using?
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://urldefense.com/v3/__https://ffmpeg.org/mailman/listinfo/ffmpeg-user_... To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe". P Please consider the environment before printing this e-mail.
On 7/15/2021 7:58 AM, Mar Andrés López wrote:
The version I am using is 4.3.1
Please test with the most recent ffmpeg available (see https://ffmpeg.org/download.html); whatever you're trying -might- have been changed/fixed. Always post the full command output, that gives the readers a lot of useful info about what's going on, and do not top-post on this mailing list (see https://ffmpeg.org/mailing-list-faq.html), Later, z!
participants (3)
-
Carl Zwanzig -
Dennis Mungai -
Mar Andrés López