#!/bin/bash #export DISPLAY=:1 #Xvfb :1 -screen 0 1024x768x16 & #sleep 1 #nohup exec lightdm-session >/dev/null 2>&1 & # #export GST_PLUGIN_PATH=$GST_PLUGIN_PATH:/usr/local/lib/gstreamer-1.0 #rtpbin name=rtpbin rtp-profile=avpf \ BITRATE=%_BITRATE_% #uridecodebin uri="http://video/Sintel.2010.1080p.mkv" name=d d. ! queue ! glupload \ #! glcolorconvert ! m. #videomixer name=mix sink_1::alpha=1.0 sink_1::zorder=0 sink_0::zorder=1 sink_0::height=1080 sink_0::width=1920 ! video/x-raw,format=BGRA \ #glvideomixer name=mix sink_0::zorder=1 sink_0::height=1080 sink_0::width=1920 ! 'video/x-raw(memory:GLMemory),format=BGRA' \ #! gldownload \ # ! glupload ! glcolorconvert #compositor ! video/x-raw,width=1920,height=1080,framerate=30/1 ! ... #... ! identity drop-buffer-flags=corrupted ! ... #videomixer name=mix sink_1::zorder=0 sink_0::zorder=1 sink_0::height=1080 sink_0::width=1920 ! 'video/x-raw,format=BGRA' \ TWITCH_OVERLAY="https://streamlabs.com/alert-box/v3/xxx" ANACAM_OVERLAY="https://analiestar.com/cb-icons/html/overlay.php" OVERLAYURL="$ANACAM_OVERLAY" #LIBGL_ALWAYS_SOFTWARE=true #LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu #GST_DEBUG_DUMP_DOT_DIR=/tmp/ #srtsrc uri="srt://127.0.0.1:9001" ! decodebin name=dec dec. ! queue \ #srtsrc uri="srt://:9001/%_APP_%/%_NAME_%?mode=listener" ! decodebin name=dec dec. ! queue \ #srtsrc uri="srt://:9001/?mode=listener" ! decodebin name=dec dec. ! queue \ GST_DEBUG=2 gst-launch-1.0 -v \ rtpbin name=rtpbin rtp-profile=avp \ srtsrc uri="srt://:9001/?mode=listener" ! decodebin name=dec dec. ! queue \ ! audioconvert \ ! audiochebband mode=band-pass lower-frequency=1000 upper-frequency=6000 poles=4 \ ! audioconvert \ ! audioresample ! audio/x-raw, rate=24000 \ ! opusenc bandwidth=superwideband bitrate-type=cbr \ ! rtpopuspay ssrc=%_SSRCA_% pt=%_PAYTA_% \ ! rtprtxqueue max-size-time=0 max-size-packets=1200 \ ! rtpbin.send_rtp_sink_0 \ dec. ! queue \ ! gamma gamma=1.00 \ ! videobalance saturation=1.43 hue=0.12 contrast=1.00 brightness=0.05 \ ! videoconvert \ ! videoscale ! video/x-raw, width=1920, height=1080 \ ! videorate ! video/x-raw,framerate=30/1 \ ! gdkpixbufoverlay location=analiestar-retro.png offset-x=-25 offset-y=25 \ ! clockoverlay time-format="%d-%b-%Y %r" halignment=right valignment=bottom shaded-background=false font-desc="Sans, 10" \ ! x264enc bitrate=$BITRATE byte-stream=true cabac=true dct8x8=false speed-preset=veryfast tune=zerolatency sliced-threads=true rc-lookahead=0 noise-reduction=500 me=umh pass=qual key-int-max=60 psy-tune=film threads=4 ref=1 bframes=0 \ ! video/x-h264,stream-format=byte-stream,alignment=au,profile=high \ ! rtph264pay ssrc=%_SSRCV_% pt=%_PAYTV_% config-interval=1 \ ! rtprtxqueue max-size-time=0 max-size-packets=1200 \ ! rtpbin.send_rtp_sink_1 \ rtpbin.send_rtp_src_0 ! udpsink host=127.0.0.1 port=%_PORTA1_% sync=true async=false \ rtpbin.send_rtcp_src_0 ! udpsink host=127.0.0.1 port=%_PORTA2_% sync=false async=false \ rtpbin.send_rtp_src_1 ! udpsink host=127.0.0.1 port=%_PORTV1_% sync=true async=false \ rtpbin.send_rtcp_src_1 ! udpsink host=127.0.0.1 port=%_PORTV2_% sync=false async=false #! gdkpixbufoverlay location=analiestar-retro.png offset-x=-25 offset-y=25 \ #wpesrc location="https://streamlabs.com/alert-box/v3/xxx" draw-background=0 \ # default baseline #! gamma gamma=1.00 \ #! videobalance saturation=1.00 hue=0.00 contrast=1.00 brightness=0.00 \ # lighten up #! gamma gamma=1.38 \ #! videobalance saturation=1.22 hue=0.03 contrast=0.95 brightness=0.05 \ # vibrant color #! gamma gamma=1.12 \ #! videobalance saturation=1.73 hue=0.13 contrast=0.90 brightness=0.00 \ # high contrast #! gamma gamma=1.33 \ #! videobalance saturation=1.16 hue=0.03 contrast=0.85 brightness=0.10 \ # obs gamma 0.94 #! gamma gamma=0.94 \ #! videobalance saturation=1.45 hue=0.0789 contrast=1.39 brightness=0.20 \ #! gamma gamma=1.38 \ #! videobalance saturation=1.22 hue=0.03 contrast=0.95 brightness=0.05 \ #! queue #! videoscale ! 'video/x-raw,width=1920,height=1080' \ #! videorate ! 'video/x-raw,framerate=30/1' \ #! videoconvert \ #gst-launch-1.0 -v -e videomixer background=transparent name=m sink_0::alphs=1.0 sink_0::zorder=1 sink_1::zorder=2 ! videoconvert ! cacasink \ # wpesrc location="https://analiestar.com/cb-icons/html/overlay.php" draw-background=0 !alpha method=custom target-r=255 target-g=255 target-b=255 angle=10 ! m. \ # uridecodebin uri="https://analiestar.com/_files/vid/2020-02-02 05-48-28-star-dildo-onlyfans.mp4" name=d \ # d. ! queue ! m. ## #glvideomixer name=m sink_1::zorder=0 sink_0::height=1080 sink_0::width=1920 ! gtkglsink \ ## #wpesrc location="https://analiestar.com/tipdisplay.php" draw-background=0 ! m. \ ## #uridecodebin uri="http://video/Sintel.2010.1080p.mkv" name=d d. ! queue \ ## #! glupload ! glcolorconvert ! m. ##GST_DEBUG=2 gst-launch-1.0 -v \ ## rtpbin name=rtpbin rtp-profile=avp \ ## rtmpsrc location=rtmp://analiestar.com/%_APP_%/%_NAME_% do-timestamp=true ! decodebin name=dec dec. ! queue \ ## ! audioconvert \ ## ! audiochebband mode=band-pass lower-frequency=1000 upper-frequency=6000 poles=4 \ ## ! audioconvert \ ## ! audioresample ! audio/x-raw, rate=24000 \ ## ! opusenc bandwidth=superwideband bitrate-type=cbr \ ## ! rtpopuspay ssrc=%_SSRCA_% pt=%_PAYTA_% \ ## ! rtprtxqueue max-size-time=0 max-size-packets=1200 \ ## ! rtpbin.send_rtp_sink_0 \ ## dec. ! queue \ ## ! gamma gamma=1.38 \ ## ! videobalance saturation=1.22 hue=0.03 contrast=0.95 brightness=0.05 \ ## ! videoconvert \ ## ! videoscale ! video/x-raw, width=1920, height=1080 \ ## ! videorate ! video/x-raw,framerate=30/1 \ ## ! gdkpixbufoverlay location=analiestar-retro.png offset-x=-25 offset-y=25 \ ## ! clockoverlay time-format="%d-%b-%Y %r" halignment=right valignment=bottom shaded-background=false font-desc="Sans, 10" \ ## ! x264enc bitrate=$BITRATE byte-stream=true cabac=true dct8x8=false speed-preset=veryfast tune=zerolatency sliced-threads=true rc-lookahead=0 noise-reduction=500 me=umh pass=qual key-int-max=60 psy-tune=film threads=4 ref=1 bframes=0 \ ## ! video/x-h264,stream-format=byte-stream,alignment=au,profile=high \ ## ! rtph264pay ssrc=%_SSRCV_% pt=%_PAYTV_% config-interval=1 \ ## ! rtprtxqueue max-size-time=0 max-size-packets=1200 \ ## ! rtpbin.send_rtp_sink_1 \ ## rtpbin.send_rtp_src_0 ! udpsink host=127.0.0.1 port=%_PORTA1_% sync=true async=false \ ## rtpbin.send_rtcp_src_0 ! udpsink host=127.0.0.1 port=%_PORTA2_% sync=false async=false \ ## rtpbin.send_rtp_src_1 ! udpsink host=127.0.0.1 port=%_PORTV1_% sync=true async=false \ ## rtpbin.send_rtcp_src_1 ! udpsink host=127.0.0.1 port=%_PORTV2_% sync=false async=false ## added config-interval=1 ## max-size-time changed from 2000 to 0 # aggregate-mode=1 config-interval=-1 #qp-min=4 qp-max=43 qp-step=10 #! x264enc bitrate=$BITRATE byte-stream=true cabac=true dct8x8=false speed-preset=veryfast tune=zerolatency sliced-threads=true rc-lookahead=0 noise-reduction=500 pass=qual key-int-max=60 psy-tune=film threads=4 ref=1 bframes=0 \ #! video/x-h264,stream-format=byte-stream,profile=high \ #! x264enc bframes=0 speed-preset=veryfast key-int-max=30 bitrate=500 threads=4 ref=1 \ # ! video/x-h264, profile=high \ #dec. ! queue \ #! video/x-raw,width=1920,height=1080,framerate=30/1 \ ##! audio/x-raw,rate=48000,channels=2 \ ##! audioresample ! audio/x-raw, rate=24000 \ ##! webrtcechoprobe \ ##! webrtcdsp \ ##! videorate ! video/x-raw,framerate=25/2 \ ##! video/x-raw, format=RGBA \ ##! mix.sink_0 \ ##! webkitsrc enabled=1 url="https://analiestar.com/m_camcontrol/overlay.php" \ ##! video/x-raw, format=RGBA, framerate=25/1, width=1280, height=720 \ ##! mix.sink_1 \ ##videomixer name=mix sink_0::zorder=0 sink_1::zorder=1 \ ##! videoconvert \ ##! video/x-raw, format=I420 \ ##! video/x-raw,format=I420 \ ##! video/x-raw,format=RGBA \ ##! frei0r-filter-defish0r defish=true amount=1 \ ##! frei0r-filter-defish0r defish=true amount=1 \ ##! frei0r-filter-defish0r defish=true \ ##! video/x-raw,format=RGBA \ ##! videoconvert \ ##webkitsrc enabled=1 url="https://analiestar.com/m_camcontrol/overlay.php" ! video/x-raw, format=RGBA, ##GST_DEBUG_DUMP_DOT_DIR=. ##GST_DEBUG=2