Skip to content

Instantly share code, notes, and snippets.

View Quackdoc's full-sized avatar

Mitchel Stewart Quackdoc

View GitHub Profile
@Quackdoc
Quackdoc / stream.sh
Created October 9, 2023 04:08 — forked from digitalsignalperson/stream.sh
xdp screen cast example, modified to pipe to ffmpeg
mkfifo /tmp/gfifo
./xdp-screen-cast-ffmpeg.py & # or run in another terminal
# Note the gstreamer pipeline
# 'pipewiresrc fd=%d path=%u ! videorate ! video/x-raw,framerate=60/1 ! videoconvert ! filesink location=/tmp/gfifo'
# I specified a 60/1 frameerate. You can do other pre-processing here, or offload it to ffmpeg.
# Encode the stream and pipe to netcat
# note: must specify correct resolution here
# we can now use h264_nvenc, mpegts, and anything else ffmpeg has