Skip to content

Instantly share code, notes, and snippets.

View gdavila's full-sized avatar

Gabriel Davila gdavila

View GitHub Profile
@gdavila
gdavila / tsduck_ffmpeg.md
Last active December 30, 2025 11:58
Comandos utiles
  • Send RTMP - bitmovin sample:
ffmpeg -re -f lavfi -i color=black:640x480:rate=ntsc,format=yuv420p -g 6 -r ntsc \
-b:v 5M -minrate:v 5M -maxrate:v 5M -bufsize:v 1M -preset ultrafast \
-vcodec libx264  -r ntsc -tune zerolatency  -muxrate 8M  \
-pcr_period 40 -f flv rtmp://live-input.bitmovin.com/streams/a1142cd9-69b0-45d2-a655-a6c980b806c5
  • Grabar multicast:
@steven2358
steven2358 / ffmpeg.md
Last active January 21, 2026 19:58
FFmpeg cheat sheet
@AstroTom
AstroTom / sqs.sh
Last active December 23, 2022 13:36
sample AWS sqs in CLI
# Create Q
ENV=dev1
Qname=tom-test1
Q1=$(aws sqs create-queue --queue-name "$ENV-$Qname" --output text)
echo $Q1
aws sqs send-message --queue-url $Q1 --message-body "Test message 1 from Tom"
@jessetan
jessetan / calcavgbitrate.sh
Last active October 25, 2023 13:43
Calculates average bitrate of a video file by looking at size of each frame. Uses ffprobe, sed and awk
#!/bin/bash
# Calculates average bitrate of a video file by looking at size of each frame. Uses ffprobe, sed and awk
if [ -z "$1" ]; then
echo "Error: No input video file specified"
exit 1
fi
echo "Estimating bitrate statistics for $1..." ; ffprobe -show_frames -loglevel error $1 | \