is filtering 3 multicast addresses using same port possible?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

is filtering 3 multicast addresses using same port possible?

robb
hello,
i'm trying to ingest 3 multicast streams using the same port.
i can change the the multicast addresses (239.255.x.x) but not the ports
i can also change the group #s

i read on the FFmpeg Protocols Documentation page under udp that:

sources=address[,address]Only receive packets sent from the specified
addresses. In case of multicast, also subscribe to multicast traffic coming
from these addresses only.
*block=address[,address]*
Ignore packets sent from the specified addresses. In case of multicast,
also exclude the source addresses in the multicast subscription.

however, the following doesn't seem to work & i'm not able to find others
with the same kind of port problem

ffmpeg -i udp://192.168.1.2:5004*?sources=239.255.42.42* -vcodec copy
-codec:a aac -b:a 128k -f flv out.flv

am i missing something in the syntax or address assignment?

thx for all the bits :)
_______________________________________________
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".
Reply | Threaded
Open this post in threaded view
|

Re: is filtering 3 multicast addresses using same port possible?

Jimmy Asher


´╗┐On 4/2/19, 2:11 PM, "ffmpeg-user on behalf of robb" <[hidden email] on behalf of [hidden email]> wrote:

    hello,
    i'm trying to ingest 3 multicast streams using the same port.
    i can change the the multicast addresses (239.255.x.x) but not the ports
    i can also change the group #s
   
    i read on the FFmpeg Protocols Documentation page under udp that:
   
    sources=address[,address]Only receive packets sent from the specified
    addresses. In case of multicast, also subscribe to multicast traffic coming
    from these addresses only.
    *block=address[,address]*
    Ignore packets sent from the specified addresses. In case of multicast,
    also exclude the source addresses in the multicast subscription.
   
    however, the following doesn't seem to work & i'm not able to find others
    with the same kind of port problem
   
    ffmpeg -i udp://192.168.1.2:5004*?sources=239.255.42.42* -vcodec copy
    -codec:a aac -b:a 128k -f flv out.flv
   
    am i missing something in the syntax or address assignment?
   
    thx for all the bits :)
    _______________________________________________


Have you tried debugging your command?

Usually you need to send a complete uncut console output from ffmpeg along with your issue

ffmpeg -loglevel debug -i udp://@239.255.42.42:5004 -f raw -



_______________________________________________
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".
Reply | Threaded
Open this post in threaded view
|

Re: is filtering 3 multicast addresses using same port possible?

robb
>
>
> Have you tried debugging your command?
>
> Usually you need to send a complete uncut console output from ffmpeg along
> with your issue
>
> ffmpeg -loglevel debug -i udp://@239.255.42.42:5004 -f raw -
>
>
> no, thx 4 askin

$ ffmpeg -loglevel debug -i udp://239.255.42.42:5004 -vcodec copy -codec:a
aac -b:a 128k -f flv test.flv
ffmpeg version N-48443-g6dc1da416e-static https://johnvansickle.com/ffmpeg/
Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gmp --enable-gray --enable-libaom
--enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-librubberband --enable-libsoxr
--enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.105 / 58. 47.105
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'udp://
239.255.42.42:5004'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) with argument 'copy'.
Reading option '-codec:a' ... matched as option 'codec' (codec name) with
argument 'aac'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '128k'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'flv'.
Reading option 'test.flv' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url udp://239.255.42.42:5004.
Successfully parsed a group of options.
Opening an input file: udp://239.255.42.42:5004.
[NULL @ 0x5c953c0] Opening 'udp://239.255.42.42:5004' for reading
[udp @ 0x5c95cc0] No default whitelist set
[udp @ 0x5c95cc0] end receive buffer size reported is 131072
[AVIOContext @ 0x5cb6140] Statistics: 0 bytes read, 0 seeks
udp://239.255.42.42:5004: Immediate exit requested
Exiting normally, received signal 2.



when i run it with another device using the port (-i
udp://239.255.42.*44*:5004)
it outputs a file as expected
_______________________________________________
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".