Skip to content

Instantly share code, notes, and snippets.

@daz
Last active August 30, 2020 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daz/3cbe0b2c8be61717210d6f420ebc62a2 to your computer and use it in GitHub Desktop.
Save daz/3cbe0b2c8be61717210d6f420ebc62a2 to your computer and use it in GitHub Desktop.
Hardcode FCP X subtitles embedded as CEA-608

Hardcode FCP X subtitles embedded as CEA-608 captions

Install CCExtractor

brew install ccextractor

Install ffmpeg

Include --with-libass flag.

Kitchen sink edition (see ffmpeg brew recipe for all flags)

brew install ffmpeg --with-chromaprint --with-fdk-aac --with-libass --with-librsvg --with-libsoxr --with-libssh --with-tesseract --with-libvidstab --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-tools --with-webp --with-x265 --with-xz --with-zeromq --with-zimg

FCP X

  • Set all close captions to CEA-608 format
  • Share video, check "Embed CEA-608" under Roles tab

Extract and embed

ccextractor input.m4v -o input.srt
ffmpeg -i input.m4v -filter:v subtitles=input.srt output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment