ffmpeg -i "The.Boys.S01E01.mkv" -af "loudnorm=I=-23:LRA=7:tp=-2,acompressor=threshold=0.05:ratio=5" -c:v copy "normalized_audio.mkv" Save chapter metadata to a file:

ffmpeg -i "The.Boys.S01E01.mkv" -f ffmetadata chapters.txt ffmpeg -i "The.Boys.S01E01.mkv" -i "commentary.aac" -map 0:v -map 0:s -map 1:a -c copy -metadata:s:a:0 language=eng -metadata:s:a:0 title="Commentary" "episode_with_commentary.mkv" 14. Verify Integrity of Download (Check for corruption) ffmpeg -v error -i "The.Boys.S01E01.mkv" -f null - 2> error.log If error.log is empty, the file is healthy. 15. Stream to Chromecast / Network Real-time transcoding (if device doesn’t support codec):

ffmpeg -ss 00:02:17 -i "The.Boys.S01E01.mkv" -frames:v 1 -q:v 2 "butcher_frame.jpg" Merge the “Previously on The Boys” (separate file) with the episode:

ffmpeg -i "The.Boys.S01E01.4K.mkv" 2>&1 | grep "Dolby Vision\|HDR10\|MasteringDisplay" Frame from 00:02:17 (Butcher staring at Becca’s photo):