Stream scripting in Windows

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Stream scripting in Windows

Mark Filipak
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.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".