Skip to content

Instantly share code, notes, and snippets.

@FiveBoroughs
FiveBoroughs / ffmpeg-smart-beta.sh
Last active January 29, 2026 16:01
ffmpeg-smart beta - multi-encoder support
#!/bin/bash
set -euo pipefail
LOG_PREFIX="[ffmpeg-smart]"
# Parse args
AGENT=""
URL=""
# Auto-detect default accel based on available hardware
detect_accel() {
@FiveBoroughs
FiveBoroughs / ffmpeg-smart.sh
Last active February 1, 2026 01:06
Smart HEVC/H.264/MPEG-2 Transcoding
#!/bin/bash
set -euo pipefail
LOG_PREFIX="[ffmpeg-smart]"
# Parse args
AGENT=""
URL=""
while [[ $# -gt 0 ]]; do
if [[ "$1" == "-user_agent" ]]; then