[FFmpeg-trac] #5283(avcodec:reopened): Add bitstream filter to remove Closed Captions from h264

FFmpeg trac at avcodec.org
Wed Mar 12 04:18:03 EET 2025


#5283: Add bitstream filter to remove Closed Captions from h264
-------------------------------------+-------------------------------------
             Reporter:  Carl Eugen   |                    Owner:  (none)
  Hoyos                              |
                 Type:  enhancement  |                   Status:  reopened
             Priority:  wish         |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  h264 cc      |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by varenc):

 I believe this is possible right now using the `filter_units` bitstream
 filter. Though this isn't documented or generally well known, and an
 easier to use method for this common request would be welcome.

 Here's how:


 {{{
 ffmpeg -i input.mkv -codec copy -bsf:v  "filter_units=remove_types=6"
 out.mkv
 }}}


 Discovered this online here: https://stackoverflow.com/questions/48177694
 /removing-eia-608-closed-captions-from-h-264-without-reencode which also
 explains why it works. (SEI NAL units have type=6)
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/5283#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list