[FFmpeg-user] ffmpeg input mluticast stream
Moritz Barsnick
barsnick at gmx.net
Wed Dec 2 14:49:42 CET 2015
Hi Mohammad,
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://@227.10.20.80:1234 I got
> multiple channels in single link now how I can get single channels from it
> by ffmpeg.
[...]
> Program 1170
> Metadata:
> service_name : Kahani-HD
> service_provider: GeoTV
> Stream #0:6[0x71]: Video: h264 ([27][0][0][0] / 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:
https://ffmpeg.org/ffmpeg.html#Stream-specifiers-1
So either
$ ffmpeg -i [...] -map 0:6 -map 0:7 [...]
or
$ 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.
Good luck,
Moritz
More information about the ffmpeg-user
mailing list