Skip to content

Instantly share code, notes, and snippets.

@dampfklon
dampfklon / pi3_browser-only.md
Last active October 8, 2020 12:30 — forked from bheisig/pi3_browser-only.md
Run Raspberry 3 in digital signage mode with Chromium Web browser on a TV screen
@jeoliva
jeoliva / gist:b80fb02c461b28b99c1daa89e465f547
Created July 26, 2017 07:27
GStreamer - MpegTS output ready to be pushed to Wowza
./gst-launch-1.0 -e videotestsrc ! video/x-raw,width=640,height=480 ! x264enc bitrate=500 ! h264parse ! mpegtsmux name=mux ! rtpmp2tpay! queue ! udpsink port=10001 host=127.0.0.1
ffmpeg -i udp://235.1.11.12:11112 -vcodec h264_qsv -init_hw_device qsv:hw -profile:v high -preset slow -b:v 5500k -minrate 6M -maxrate 6M -bufsize 1200k -ab 64k -look_ahead 0 -flags:v +ilme+ildct+cgop -mpv_flags +strict_gop -sc_threshold 1000000000 -acodec copy -f mpegts udp://235.1.11.3:11112
@Piasy
Piasy / install_ffmpeg.sh
Last active April 14, 2026 11:41
brew install ffmpeg with all options
brew options ffmpeg
brew install ffmpeg \
--with-chromaprint \
--with-fdk-aac \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-game-music-emu \
--with-libass \
#!/bin/bash
D1="[f=hls:hls_flags=delete_segments:hls_list_size=10:hls_time=20:use_localtime=1:hls_segment_filename='/var/www/html/hls3/%s.ts']/var/www/html/hls3/stream.m3u8"
D2="[f=mpegts]udp://239.1.1.3:10480?localaddr=10.1.5.99&pkt_size=1316&fifo_size=1000000"
D3="[f=dash:window_size=5:extra_window_size=5:remove_at_exit=1]/var/www/html/dash3/stream.mpd"
ffmpeg \
-v verbose \
-f decklink -format_code pal -i "DeckLink Mini Recorder" \
-vf "setdar=dar=16/9" \
@phpcodertop
phpcodertop / script.sh
Created April 14, 2018 22:44
install ipvtl trial and hack its trial
#!/bin/bash
echo "Downloading ipvtl Software \n"
cd /home
wget http://www.ipvideotrans.com/download/ipvtl_trial-x64.tar.xz
@lukicdarkoo
lukicdarkoo / configure.sh
Last active June 18, 2025 18:05
Raspberry Pi: AP + client mode
#!/bin/sh
# The script configures simultaneous AP and Managed Mode Wifi on Raspberry Pi Zero W (should also work on Raspberry Pi 3)
# Usage: curl https://gist.githubusercontent.com/lukicdarkoo/6b92d182d37d0a10400060d8344f86e4/raw | sh -s WifiSSID WifiPass APSSID APPass
# Licence: GPLv3
# Author: Darko Lukic <lukicdarkoo@gmail.com>
# Special thanks to: https://albeec13.github.io/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi/
MAC_ADDRESS="$(cat /sys/class/net/wlan0/address)"
CLIENT_SSID="${1}"
CLIENT_PASSPHRASE="${2}"
@stoyanovgeorge
stoyanovgeorge / ffmpeg_stream_check.ts
Last active January 3, 2022 16:40
Records 10 seconds of an UDP multicast stream and then it shows the stream settings using mediainfo. Requires medianfo and ffmpeg installed on the host
#!/bin/bash
stream=""
recording_dir=$HOME/recordings
while [[ ! $stream =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:[0-9] ]];
do
echo "Please enter a valid multicast address and port in the format: IP.AD.DR.ESS:PORT after the script name!"
read -r stream
done
@reinzor
reinzor / stream_example.md
Last active October 29, 2024 05:42
GStreamer UDP stream examples

MJPEG

Server (Ubuntu 16.04)

gst-launch-1.0 -v filesrc location= /home/rein/Videos/big_buck_bunny_720p_30mb_0_0.mp4 ! decodebin ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=localhost port=5000

Client (Ubuntu 16.04)