[FFmpeg-user] ffmpeg input mluticast stream
barsnick at gmx.net
Wed Dec 2 14:49:42 CET 2015
On Wed, Dec 02, 2015 at 18:32:31 +0500, Mohammad Shakir wrote:
> I have added dummy multicast route to ethernet interface, now I am getting
> issue in ffmpeg. When I get info from udp://@18.104.22.168:1234 I got
> multiple channels in single link now how I can get single channels from it
> by ffmpeg.
> Program 1170
> service_name : Kahani-HD
> service_provider: GeoTV
> Stream #0:6[0x71]: Video: h264 ( / 0x001B), 90k tbr, 90k tbn
> Stream #0:7[0xd5](eng): Audio: mp3 (AC-3 / 0x332D4341), 0 channels
I assume programs like this above ("Program 1170", "Kahani-HD") are the
ones you are looking for?
To decode/record/encode/whatever only one of these programs, you need
to use the "-map" option with stream specifiers:
$ ffmpeg -i [...] -map 0:6 -map 0:7 [...]
$ ffmpeg -i [...] -map 0:p:1170
The former selects the streams according to their IDs given in your
output as "Stream #0:6[0x71]: Video: [...]". The latter selects the
program, and ffmpeg will select the according streams.
More information about the ffmpeg-user