Help with multicast reading in linux.

About encoding, codec settings, muxers and filter usage
amstrad464
New Cone
New Cone
Posts: 3
Joined: 27 Jun 2019 12:42

Help with multicast reading in linux.

Postby amstrad464 » 27 Jun 2019 13:13

I have tried in different versions of linux to receive a multicast streaming and it has not worked in any way.

I tried it with Pixel OS for i386 PC and it works perfectly.
Why is it impossible to open a multicast udp: //@x.x.x.x: xxxx from the versions after 2.0 in linux?

The route configuration is this:
224.0.0.0 0.0.0.0 240.0.0.0 U 0 0 0 eth0


The result of trying to open streaming is this:

cvlc -vvv udp://@239.123.13.36:6004
VLC media player 2.2.5.1 Umbrella (revision 2.2.5.1~ppa)
[000000000127a118] core libvlc debug: VLC media player - 2.2.5.1 Umbrella
[000000000127a118] core libvlc debug: Copyright © 1996-2017 the VideoLAN team
[000000000127a118] core libvlc debug: revision 2.2.5.1~ppa
[000000000127a118] core libvlc debug: configured with ./configure '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--localstatedir=/var' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-dependency-tracking' '--build=x86_64-linux-gnu' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--libdir=/usr/lib' '--sysconfdir=/etc' '--with-binary-version=' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-chromaprint' '--enable-dbus' '--enable-dca' '--enable-directfb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fdkaac' '--enable-fluidsynth' '--enable-freerdp' '--enable-freetype' '--enable-fribidi' '--enable-gles1' '--enable-gles2' '--enable-glx' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-sftp' '--enable-shine' '--enable-shout' '--enable-skins2' '--enable-smbclient' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcdx' '--enable-vorbis' '--enable-vpx' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-decklink' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-libtar' '--disable-mfx' '--disable-opencv' '--disable-projectm' '--disable-sndio' '--disable-svgdec' '--disable-telx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv1394' '--enable-linsys' '--enable-omxil' '--enable-udev' '--enable-oss' '--enable-vcd' '--enable-libva' '--enable-v4l2' '--enable-crystalhd' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security' 'build_alias=x86_64-linux-gnu'
[000000000127a118] core libvlc debug: searching plug-in modules
[000000000127a118] core libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[000000000127a118] core libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[000000000127a118] core libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[000000000127a118] core libvlc debug: plug-ins loaded: 451 modules
[000000000127a118] core libvlc debug: opening config file (/home/x/.config/vlc/vlcrc)
[000000000127a118] core libvlc debug: translation test: code is "es"
[000000000127a118] core libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX FPU
[00000000012a6548] core input debug: Creating an input for 'Biblioteca multimedia'
[00000000012a6548] core input debug: Input is a meta file: disabling unneeded options
......

~ $ cvlc udp://@239.123.13.36:6004
VLC media player 2.2.5.1 Umbrella (revision 2.2.5.1~ppa)
[0000000000df3fb8] dummy interface: using the dummy interface module...
^C[00007f483c001a98] core stream error: cannot pre fill buffer

Any idea that can cause not being able to open any type of streaming multicast?

Thank you very much.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Help with multicast reading in linux.

Postby unidan » 27 Jun 2019 15:12

Hi, probably network configuration. Is it full linux or linux in a container ?

amstrad464
New Cone
New Cone
Posts: 3
Joined: 27 Jun 2019 12:42

Re: Help with multicast reading in linux.

Postby amstrad464 » 27 Jun 2019 16:16

Thanks for answering.

I have reviewed it many times, the network, the route, cisco switch where all the multicast with ip igmp snooping, vlan and addresses are located.
The current configuration is:
ifconfig eth0 162.16.16.100/24
route add -net 224.0.0.0/4 eth0

I can stream video, audio, but I can not receive multicast (udp or rtp) on that same machine. If I run this computer with https://www.raspberrypi.org/blog/pixel-pc-mac/ I can send and receive perfectly as with any version of VLC in windows.

But with the versions of Ubuntu 18.04 // 16.04 // 19.x, Linux mint 17.3, 18.x and current is impossible.

I tried to install old versions, but the libraries to run VLC are not the same.

Could it be a problem in any of these libraries?

Thanks and regards.

amstrad464
New Cone
New Cone
Posts: 3
Joined: 27 Jun 2019 12:42

Re: Help with multicast reading in linux.

Postby amstrad464 » 27 Jun 2019 16:26

I have reviewed the network configuration as you told me and I found the problem.

Unlike other versions I have realized that you need the default gateway to be able to receive the multicast.

A if I added the default gateway:
route add default gw 162.16.16.1 eth0

And the streaming reception has started to work !!!

Thanks for the help.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Help with multicast reading in linux.

Postby unidan » 27 Jun 2019 16:41

You're welcome :) Happy to see that it works.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 30 guests