Hosts a low-latency WebRTC video server that takes an input source from normal tools like OBS.
pkg-config
should be able to find gstreamer-1.0
, gstreamer-sdp-1.0
, and similar plugins
GStreamer needs to have additional features set in installer:
- restricted codecs
- libav wrapper
brew doesn't come with gstreamer-sdp-1.0, so you have to use the main download (which puts things in a weird /Library/Frameworks/GStreamer.framework/Versions/Current
location, make sure to set PKG_CONFIG_PATH
to the lib/pkgconfig
directory)
take a look at my Dockerfile, debian:testing or ubuntu 20.10 (groovy) have gstreamer 1.18
cargo install --git https://github.com/SpiralP/rust-webrtc-gstreamer.git
tries to auto-detect via decodebin, but must be 2-stream tcp mpeg-ts
OBS with tcp url like tcp://127.0.0.1:1935/
- x264 works
- my OBS' NVENC H.264 doesn't work, but ffmpeg's h264_nvenc does work
ffmpeg -re -i a.mp4 -vcodec libx264 -acodec aac -ac 2 -f mpegts tcp://127.0.0.1:1935/
http://www.francescpinyol.cat/gstreamer.html
to fix null line in sdp a=fingerprint:sha-256 (null)
:
export OPENSSL_CONF=""