[FFmpeg-user] ffmpeg input mluticast stream

Mohammad Shakir shakirz1 at gmail.com
Wed Dec 2 15:15:56 CET 2015


Dear,

I test it by this command.

/usr/local/ffmpeg/ffmpeg -i udp://@227.10.20.80:1234 -map 0:0:p:1110
-vcodec libx264 -acodec aac -b:a 128k -b:v 512k  -strict experimental
test1.mp4

and

/usr/local/ffmpeg/ffmpeg -i udp://@227.10.20.80:1234 -map 0:0:p:1170
-vcodec libx264 -acodec aac -b:a 128k -b:v 512k  -strict experimental
test2.mp4

in both output I am getting the same video and no sound and video is also
not in good format.


<https://www.avast.com/?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Wed, Dec 2, 2015 at 6:49 PM, Moritz Barsnick <barsnick at gmx.net> wrote:

> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list