⬆️ ⬇️

Video streaming with VLC multicast

In addition to broadcasting satellite channels, it may be necessary to broadcast files.



Here is my example of Gentoo Linux + VLC



And so, the system:

Pentium III - 800MHz, 512 Mb RAM, RAID1, 100Mb / s



Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)

=================================================================

System uname: Linux-2.6.25-gentoo-r8-i686-Pentium_III_-Coppermine-with-glibc2.0

Timestamp of tree: Mon, 09 Feb 2009 22:15:02 +0000

app-shells/bash: 3.2_p39

dev-lang/python: 2.4.4-r13, 2.5.2-r7

dev-python/pycrypto: 2.0.1-r6

sys-apps/baselayout: 1.12.11.1

sys-apps/sandbox: 1.2.18.1-r2

sys-devel/autoconf: 2.13, 2.63

sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2

sys-devel/binutils: 2.18-r3

sys-devel/gcc-config: 1.4.0-r4

sys-devel/libtool: 1.5.26

virtual/os-headers: 2.6.27-r2




VLC:

')

[ebuild U ] media-video/vlc-0.9.8a [0.9.7] USE="a52 aac ffmpeg hal libgcrypt mp3 mpeg ncurses stream x264 -X -aalib -alsa (-altivec) -arts -atmo -avahi -bidi -cdda -cddax% -cddb -cdio -dbus -dc1394 -debug -dirac -directfb -dts -dvb -dvd -esd -fbcon -flac -fluidsynth -fontconfig -ggi -gnome -gnutls -httpd -id3tag -jack -kate -libass -libcaca -libnotify -libsysfs -libv4l2 -lirc -live -lua -matroska -mmx -modplug -musepack -nsplugin -ogg -opengl -optimisememory -oss -pda% -png -pulseaudio -pvr -qt4 -remoteosd -rtsp -run-as-root% -samba -schroedinger -sdl -sdl-image -seamonkey -shout -skins -speex -sse -svg -svga -taglib -theora -truetype -twolame -upnp -v4l -v4l2 -vcdinfo -vcdx -vlm -vorbis -win32codecs -xinerama -xml -xosd -xv -zvbi (-vcd%)"



I want to note that when you build with the optimizememory process, it will take about 2-3 days.



Startup command:

vlc -v /home/ftp/pub/playlist.m3u --sout '#standard{access=udp{ttl=15},mux=ts{tsid=22,pid-video=23,pid-audio=24,pid-pmt=25,use-key-frames},dst=[multcast ip]}' --random --loop --volume 100





All this is started by the daemon, which deletes the old playlist, makes a new one, and starts the process in the screenshot.



Productivity: up 70 days, 1:03, load average: 0.12, 0.22, 0.14

Source: https://habr.com/ru/post/51608/



All Articles