Skip to content

Instantly share code, notes, and snippets.

@adeguet1
adeguet1 / gist:71dad86b05be3c2cde3ad7a4fa57ae83
Last active August 27, 2025 16:26
GStreamer rtsp working example
# Start gstreamer on host with frame grabber:
gst-launch-1.0 -v decklinkvideosrc device-number=0 ! deinterlace fields=top ! videoconvert ! x264enc tune=zerolatency bitrate=10000 speed-preset=superfast ! rtph264pay ! udpsink port=50000 host=10.162.34.96
# IP address is for the receiving host. On receiving host:
gst-launch-1.0 -v udpsrc port=50000 ! "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! decodebin ! videoconvert ! autovideosink sync=false
# Install
sudo apt install gstreamer1.0-rtsp gstreamer1.0-libav gstreamer1.0-plugins-ugly
@adeguet1
adeguet1 / git-https-to-ssh.sh
Created March 29, 2024 15:48
Rewrite git URL using https to ssh
git config --global url."[email protected]:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@adeguet1
adeguet1 / firmware-updater.py
Created May 25, 2023 13:38
Python script to detect any new SD card and copy some files on it. Used to flash firmware for dVRK controllers.
#
# Script used to monitor new block device (SD card) and copy new dVRK
# firmware files automatically
#
# Anton Deguet
#
import pyudev
import subprocess
import time