Changes between Version 1 and Version 2 of HowToExtractAndRemoveClosedCaptions
- Timestamp:
- Nov 14, 2021, 9:30:53 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToExtractAndRemoveClosedCaptions
v1 v2 11 11 ffmpeg -f lavfi -i "movie=INPUT.mp4[out0+subcc]" -map s "OUTPUT.srt" 12 12 }}} 13 == Remove closed captions ==13 == Remove closed captions in SEI == 14 14 This is achieved using the '''filter_units''' video bitstream filter. 15 15 {{{ 16 16 ffmpeg -i "INPUT.mp4" -c copy -map 0 -bsf:v filter_units=remove_types=6 "OUTPUT.mp4" 17 17 }}} 18 for AVC and remove_types=39 for HEVC. MPEG does not have SEI, so that will not work. 19 20 Type SEI can have other information there, like HDR10+ metadata, so more accurate code is needed, see #5283.
