Set the English audio stream on output provided that it exists on video

Issues involving a Windows version of FFmpeg. Do not post general usage questions here.
Post Reply
parsasaei
Posts: 4
Joined: Sat Nov 05, 2016 11:19 am

Set the English audio stream on output provided that it exists on video

Post by parsasaei » Tue May 16, 2017 11:07 am

How can I have the english audio stream on output file where it exists on video? and If not exists, set all streams on output.
Is there anyway for do that at one command? I'm using this code:

Code: Select all

 ffmpeg -i input.mkv -f mp4 -map m:language:eng? -map v -c:v copy -c:a copy output.mp4
In my code when english audio not exists, there aren't any audio tracks on output file, I want to set all audio tracks on output when can't find the audio with language which I choosed.
please help me.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest