ffmpeg-bitstream

Installation
SKILL.md

Ffmpeg Bitstream

Context: $ARGUMENTS

Quick start

  • MP4 H.264 → TS/HLS: -bsf:v h264_mp4toannexb → Step 3, recipe A
  • MP4 HEVC → TS: -bsf:v hevc_mp4toannexb → Step 3, recipe A
  • TS AAC → MP4: -bsf:a aac_adtstoasc → Step 3, recipe B
  • Old DivX/XviD packed B-frames: -bsf:v mpeg4_unpack_bframes → Step 3, recipe D
  • Rewrite H.264 level / VUI: -bsf:v h264_metadata=... → Step 3, recipe E
  • Strip SEI / AUD / filler NALs: -bsf:v filter_units=remove_types=6 → Step 3, recipe F
  • Dump extradata into every keyframe (streaming recovery): -bsf:v dump_extra=freq=k
  • Zero-base timestamps without re-encoding: -bsf:v setts=ts=PTS-STARTPTS
  • Debug NAL/SPS/PPS structure: -bsf:v trace_headers

When to use

Installs
5
GitHub Stars
17
First Seen
May 27, 2026
ffmpeg-bitstream — damionrashford/media-os