19 lines
732 B
Bash
Executable File
19 lines
732 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export GST_DEBUG_COLOR_MODE=off
|
|
export GST_TRACERS="latency(flags=pipeline+element)"
|
|
export GST_DEBUG="GST_TRACER:7"
|
|
export GST_DEBUG_FILE=latency_traces.log
|
|
|
|
decklink="decklinkvideosrc drop-no-signal-frames=true mode=1080p60 device-number=1 connection=0"
|
|
|
|
gst-launch-1.0 $decklink ! \
|
|
videoconvert n-threads=4 ! \
|
|
capsfilter caps="video/x-raw,width=1920,height=1080" ! \
|
|
x264enc bitrate=20000 speed-preset=ultrafast tune=zerolatency sliced-threads=true b-adapt=false rc-lookahead=0 ref=0 key-int-max=10 ! \
|
|
capsfilter caps="video/x-h264,profile=baseline" ! \
|
|
h264parse config-interval=1 ! \
|
|
mpegtsmux ! \
|
|
rtpmp2tpay ! \
|
|
udpsink host=239.239.239.3 port=8889 auto-multicast=true sync=false async=false qos=false
|