[FFmpeg-user] Non-mandatory audio

Mar Andrés López mar.andres.l at gmv.com
Tue Oct 13 16:50:02 EEST 2020


Dear all,


I am using the following command to generate dash content from a file:


ffmpeg -i video.mp4 –r 25 -c:v libx264 -c:a aac -b:a 128k -ac 1 -ar 44100 -map v:0 -b:v:0 2M -map v:0 -b:v:1 145k -map v:0 -b:v:2 365k -map 0:a -f dash dash.mpd


But sometimes I have streams with audio and sometimes not. Is there anyway to make this command to not break if the video file does not contains audio?


A lot of thanks

P Please consider the environment before printing this e-mail.


More information about the ffmpeg-user mailing list