Essential Production Transcoding Commands
scripts/transcode-hls.sh
# Fast two-pass H.264 high quality web transcode
ffmpeg -i input.mov -c:v libx264 -crf 20 -preset slow -c:a aac -b:a 192k output.mp4
# Hardware accelerated encoding on Apple Silicon
ffmpeg -i input.mov -c:v h264_videotoolbox -b:v 4000k output.mp4
# Generate HLS multi-bitrate playlist for video streaming
ffmpeg -i input.mp4 -codec: copy -start_number 0 -hls_time 6 -hls_list_size 0 -f hls index.m3u8Personal engineering field notes compiled from production systems. Patterns and benchmarks are updated as runtimes evolve.