I have found two separate commands that I want to combine. One for taking piped input:
ffmpeg -i pipe:0
And another for extracting subtitles from a .ts
file:
ffmpeg -i "movie=file.ts[out0+subcc]" -map s output.srt
But I can't work out how to combine them.
ffmpeg -i "movie=pipe:0[out0+subcc]" -map s output.srt
doesn't work. I'm kind of an ffmpeg newbie, so any ideas?
ffmpeg -i pipe:0 -lavfi "[0]copy[out0+subcc]" -map s output.srt
- it's a piped input so don't know how subtitle extraction will behave. – Gyan Feb 29 '16 at 8:12mpegts
withProgram 174
and 5 streams (video is #0:1), with a file it'slavfi
and only two streams - video is #0:0. Any ideas? – Alastair Feb 29 '16 at 14:58ffmpeg -analyzeduration 20M -i pipe:0 -lavfi "[0:1]copy[out0+subcc]" -map s output.srt
– Gyan Feb 29 '16 at 15:12