I would like to use the same command, regardless of if my source file, or source stream, has an audio track or has no track at all. I then want ffmpeg to transcode the audio - using either the audio source (if present), or silence (which I see various various ffmpeg audio filters can generate) only if no source audio track is present.
Could someone give an example or some pointers on the right command for this? Some way to do this with map
or similar switches?
Note here I truly mean no audio track at all, versus say detecting silence in the source audio track. It is a key to be able to do this in one command versus knowing two discreet commands that would do each variation.