From: Petter Reinholdtsen Date: Thu, 12 Jul 2018 11:00:40 +0000 (+0200) Subject: Use correct ttl. X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/commitdiff_plain/3a1741f4a507a1a6c8e694a518d1d625c6d6aa80?hp=f8d49bb59302ba8de63e67fcd752c0263619772c Use correct ttl. --- diff --git a/blog/data/2018-07-12-kodi-linux-desktop-vlc.txt b/blog/data/2018-07-12-kodi-linux-desktop-vlc.txt index 57d3836907..c8c663918e 100644 --- a/blog/data/2018-07-12-kodi-linux-desktop-vlc.txt +++ b/blog/data/2018-07-12-kodi-linux-desktop-vlc.txt @@ -104,7 +104,7 @@ gst-launch-1.0 ximagesrc use-damage=0 ! video/x-raw,framerate=30/1 ! \ x264enc bitrate=8000 speed-preset=superfast tune=zerolatency qp-min=30 \ key-int-max=15 bframes=2 ! video/x-h264,profile=high ! queue2 ! \ mpegtsmux alignment=7 name=mux ! rndbuffersize max=1316 min=1316 ! \ - udpsink host=239.255.0.1 port=1234 ttl-mc=0 auto-multicast=1 sync=0 \ + udpsink host=239.255.0.1 port=1234 ttl-mc=1 auto-multicast=1 sync=0 \ pulsesrc device=$(pactl list | grep -A2 'Source #' | \ grep 'Name: .*\.monitor$' | cut -d" " -f2|head -1) ! \ audioconvert ! queue2 ! avenc_aac ! queue2 ! mux. @@ -120,7 +120,7 @@ echo udp://@239.255.0.1:1234 \

Note the trick to pick a valid pulseaudio source. It might not pick the one you need. This approach will of course lead to trouble if more than one source uses the same multicast port and address. -Note the ttl-mc=0 setting, which limit the multicast packages to the +Note the ttl-mc=1 setting, which limit the multicast packages to the local network. If the value is increased, your screen will be broadcasted further, one network "hop" for each increase (read up on multicast to learn more. :)!