31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
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 buffer-size=1 "
|
|
|
|
gst-launch-1.0 $decklink ! \
|
|
capsfilter caps="video/x-raw, format=(string)UYVY" ! \
|
|
videoconvert n-threads=4 ! \
|
|
capsfilter caps="video/x-raw,width=1920,height=1080, format=NV12" ! \
|
|
nvh264enc rc-mode=2 bitrate=4000 preset=4 bframes=0 b-adapt=false rc-lookahead=0 zerolatency=true ! \
|
|
capsfilter caps="video/x-h264,profile=baseline" ! \
|
|
nvh264dec ! \
|
|
videoconvert n-threads=4 ! \
|
|
autovideosink
|
|
|
|
exit 0
|
|
|
|
gst-launch-1.0 $decklink ! \
|
|
glupload ! \
|
|
glcolorconvert ! \
|
|
capsfilter caps="video/x-raw(memory:GLMemory),width=1280,height=720" ! \
|
|
nvh264enc rc-mode=2 bitrate=10000 preset=3 gop-size=0 bframes=0 b-adapt=false zerolatency=true ! \
|
|
capsfilter caps="video/x-h264,profile=baseline" ! \
|
|
nvh264dec ! \
|
|
glcolorconvert ! \
|
|
glimagesink
|