[FFmpeg-user] Stream scripting in Windows

Mark Filipak markfilipak.windows+ffmpeg at gmail.com
Sat May 9 17:57:04 EEST 2020


Hi All,

ffprobe IN 2> FOO & TYPE FOO | FINDSTR /L "pcm_bluray"
reports "Stream #0:2[0x1101]: Audio: pcm_bluray"
(Note "Stream #0:2".)

ffmpeg -i IN -map 0 -c:v copy -c:a copy -c:0:2 pcm_s16be -sn -dn OUT
fails with "[matroska @ 00000225ac037040] Invalid stream specifier: 0:2"

ffmpeg -i IN -map 0 -c:v copy -c:a copy -c:a:1 pcm_s16be -sn -dn OUT
succeeds of course.

Is there a workaround that will allow me to use "0:2" in a script? The alternative is a massive & 
incredibly-difficult-to-write parsing routine.

Thanks, Good Health,
Mark.
-- 
COVID-19 perspective (May 8, 2020):
The U.S. is 4% of world population, 33% of cases, 28% of deaths, accelerating.
The U.S. & S.Korea reported 1st cases on the same day, 22 Jan 2020.
In March, week 2, S.Korea (pop: 52 million) did 10,000 tests/day, 4 hour results.
In March, week 2, the U.S. (pop: 328 million) did 400 tests/day, 7 day results.


More information about the ffmpeg-user mailing list