Hi guys, I 'm reordering my Plex library and i noticed that plex shows closed caption in the subtitle list as they were normal subtitles.
I read that closed caption are part of the video stream, so with tools like mkvtoolnix you can't remove them. Is there a way to remove them from the video stream without re-encoding it? I also found out that restream allows to do this, but it's outdated and works only with MPEG-2 format.
+ Reply to Thread
Results 1 to 26 of 26
-
-
It may be possible to remove them using Hybrid. See https://forum.videohelp.com/threads/390217-Deleting-CEA-608-(EIA-608)-captions-from-a-...le#post2561602
Ignore list: hello_hello, tried, TechLord, Snoopy329 -
"Closed" captions mean they aren't visible until you turn them on. So turn them off.
If they are "Open" captions, otoh, aka hard-subs, you are stuck with them unless you want to go to the trouble of blur filtering, overlaying, temporal smear, etc. None of which will fully remove them without also removing or adversely altering the picture.
Scott -
That isn't what is going on. The problem is that both regular subtitles and closed captions are automatically detected by Plex and appear on the list of available subtitles presented by its media player but arktay only wants the regular subtitles to be shown on the list.
Last edited by usually_quiet; 4th Apr 2020 at 16:54. Reason: clarity
Ignore list: hello_hello, tried, TechLord, Snoopy329 -
You wrote "I read that closed caption are part of the video stream, so with tools like mkvtoolnix you can't remove them." The operative word for me is "I read" have you actually tried? If not try remuxing in MKVToolNix and untick all subtitles. If you need subs then you can always extract the ones you need from the original file and use it as an external sub.SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851 -
Broadcast analog TV embeded the closed caption signal at the top of the frame -- outside the visible part of the picture:
[Attachment 52622 - Click to enlarge]
The TV would then decode that signal and overlay CC text onto the visible part of the picture. Some capture cards capture enough of the frame to include the lines with the CC signal. Of course, if you're recording from a device that is overlaying CC text, that text is burned into the picture. Remuxing will not get rid of them.
In modern digital broadcast closed captions are just another digital data stream muxed with the video and audio streams. This soft CC data can be removed with a remux. -
Unticking all subtitles with mkvtoolnix does not remove closed caption
Code:set str=ffmpeg -i "input" -bsf:v "filter_units=remove_types=6" -c copy "output"
-
There are two styles of digital closed captions present in N. American digital TV signals, CEA-708 and CEA-608. NTSC DVD closed captioning is similar to CEA-608. CEA-708 includes more character sets and positioning options but as I recall, every software player that I have used is only aware of CEA-608 closed captions, which are a replacement for the old analog closed captions.
I want to keep CEA-608 closed captions if they are present in my recorded TV shows, so I had to figure out what preserves them and what strips them. (I use CCs when I turn the sound down to avoid disturbing others so that I can still follow the dialog.) In my recordings of both OTA broadcasts and digital cable TV, CEA-608 closed caption data is stored in the video stream's GOP user data. Demuxing or remuxing doesn't usually remove it. Re-encoding does remove it most of the time.(VideoReDo TV Suite is the only program that I have used that is able to re-encode video and still preserve the closed captions.)Last edited by usually_quiet; 6th Apr 2020 at 10:13. Reason: clarity
Ignore list: hello_hello, tried, TechLord, Snoopy329 -
FFmpeg preserves closed caption data if you're using the libx264 encoder with the -a53cc true option. (VideoReDo TV Suite uses FFmpeg IIRC)
https://ffmpeg.org/ffmpeg-all.html#Options-29 -
I separated video audio and subtitles with Inviska MKV Extract, then merged them with MKV Muxing Batch GUI v2.3 but this closed captions curse didn't go away. Is there an easier way to delete it, a new updated way. I don't want to see it in the subtitles section on VLC.
-
For x264 video use:
ffmpeg -i input.mkv -codec copy -bsf:v "filter_units=remove_types=6" output.mkv
remove_types=178
To extract them use clever ffmpeg-GUI. -
thank you a lot for your reply. but unfortunately I don't know using these codes. I only am good at using softwares. like Inviska MKV Extract, JMkvpropedit 1.5.2, MKV Muxing Batch GUI v2.3, MKVToolNix GUI v74.0.0. Is there any way to solve this issue with any of these softwares or other than that similar to these? Or I need a video to show me how to do what you said.
-
@Pusat
First of all:
Download ffmpeg for your operating system.
For x64: https://www.videohelp.com/download/ffmpeg-6.0-full_build.7z
For x86: https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/latest/ffmpeg-m...gpl-shared.zip
Extract the files to C:\ffmpeg
The final folder structure should be C:\ffmpeg\bin (and other folders and files)
Copy your mkv video into the bin folder.
1.Click the Windows Start button.
2. Type in "Command Prompt".
3. Right click on Command Prompt and click "Run as administrator".
4. Click Yes if the Windows User Account Control prompt is displayed.
A black command line window opens.
Write here:cd c:\ffmpeg\bin
On the left shold be diplayedc:\ffmpeg\bin
If so, write:ffmpeg -i input.mkv -map 0 -codec copy -bsf:v "filter_units=remove_types=6" output.mkv
If the name contains spaces, you have to put them in quotes, e.g. "My personal video.mkv").
If finished, you'll find the new video file output.mkv into the bin folder. The captions should be gone now. -
Dear ProWo I just saw your reply. I'll try this as soon as poosible after work hours and I'll write to you. Thank you a lot.
-
@ProWo Sorry for being late. I tried it now. I did all the required things as you told but it says:
[Attachment 71035 - Click to enlarge] -
@Pusat
I wrote in post #17:
Rename input.mkv to the name of your video.
If the name contains spaces, you have to put them in quotes, e.g. "My personal video.mkv"
ffmpeg -i test.mkv -map 0 -codec copy -bsf:v "filter_units=remove_types=6" output.mkv
unfortunately, you have turned off the display of file extensions in windows explorer, so you can't see it.
See here: https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-...n-Windows.html -
You must replace input.mkv with test.mkv and the final test.mkv with output.mkv
-
Dear @ProWo I made the correction you mentioned in the command line.
Now it seems to try to create a new mkv file but the size is only 1 KB and the text you see in the screenshot appears. What could be the problem?
[Attachment 71049 - Click to enlarge] -
Your video is x265 (hevc), not x264 (avc), so the command can not work.
I must investigate further and will come back to you later. -
ok thank you.
this was mp4 I converted it to mkv with mkvtoolnix. this may be the reason. I don't know. This isn't the video that I want to make changes on it. I just wanted to try this command. I have other mkv files for tv shows.
Anyway, if this is the way to remove close captions it will be useful for me for other videos. -
This should work for your test.mkv (hevc):
ffmpeg -i test.mkv -map 0 -codec copy -bsf:v filter_units=remove_types=39 output.mkv
Similar Threads
-
Need Help!!! How to extract closed caption of video from google drive
By moronchy in forum SubtitleReplies: 12Last Post: 5th Feb 2022, 20:07 -
TBS closed caption!
By Derel in forum Video Streaming DownloadingReplies: 3Last Post: 18th Feb 2019, 13:42 -
Would like closed caption expert to answer a few questions
By jimdagys in forum SubtitleReplies: 4Last Post: 16th Jul 2016, 21:38 -
BR players with Closed Caption decoder (in Europe)
By Nico Darko in forum DVD & Blu-ray PlayersReplies: 4Last Post: 30th Mar 2016, 09:35 -
Preserve closed caption
By paulkc in forum SubtitleReplies: 13Last Post: 11th Jul 2015, 22:23