brew install ccextractor
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
- Set all close captions to CEA-608 format
- Share video, check "Embed CEA-608" under Roles tab
ccextractor input.m4v -o input.srt
ffmpeg -i input.m4v -filter:v subtitles=input.srt output.mp4