[FFmpeg-user] (auto-)mapping audio channels in ffmpeg conversion

Jonas, Karl karl.jonas at fokus.fraunhofer.de
Fri Jun 17 19:45:03 CEST 2011


Available input: a set of recorded movie.wtv files

Targeted output: a set of movie.avi or movie.mpg, possibly with lower
datarate/resolution

Current approach: 

for %%f in (%SRC_DIR%\*.wtv) do (

echo next is %%f

%FFMPEG% -i "%%f"  -target vcd -bufsize 300k -vsync 1 -async 20 -map 0.2
-map 0.1  "%%f".avi

)

 

THE PROBLEM:

The original files come with multiple streams, including one "regular
audio" and one for "hearing impaired" (which is, obviously, for people
that cannot SEE !!). I want the "regular" audio, but the mapping is not
constant among the different original files, so sometimes stream #0.0 is
the regular audio, sometimes #0.1 is the regular audio.

 

Is there an automatic way to always select the correct audio stream?

 

Thanks for help and best regards, Karl

 

 

 



More information about the ffmpeg-user mailing list