I have certain videos that contain closed captions in them. These are actual closed captions, not.mkv with text.srt streams embedded, nor srt in an external file, EIA-608/line 21 closed captions. Kodi won't display them, and I can't extract them with any well-known tool (e.g. Mkvtoolnix etc.). % ffmpeg.exe -y -v 99 -loglevel 99 -i sample-1min.ts -c:a aac -c:v libx264 sample-1min.mp4 -vsync 0 FFmpeg won't try to adjust the framerate of your video by duplicating & dropping frames and your subtitles should remain intact. I figured I was on to something when I remembered my local NBC affiliate was causing me the same problem.
Extract Eia 608 Captions Ffmpeg Pdf
This page is no longer maintained. Please go to the new one. |
Extract Eia 608 Captions Ffmpeg Free
What's CCExtractor?
A tool that analyzes video files and produces independent subtitle files from the closed captions data. CCExtractor is portable, small, and very fast. It works in Linux, Windows, and OSX.
What kind of closed captions does CCExtractor support?
American TV captions (CEA-608 is well supported, and CEA-708 is starting to look good) and Teletext based European subtitles.
How easy is it to use CCExtractor?
Very. Just tell it what file to process and it does everything for you.
CCExtractor integration with other tools
It is possible to integrate CCExtractor in a larger process. A couple of tools already call CCExtractor as part their video process - this way they get subtitle support for free.
Starting in 0.52, CCExtractor is very front-end friendly. Front-ends can easily get real-time status information. The GUI source code is provided and can be used for reference.
Any tool, commercial or not, is specifically allowed to use CCExtractor for any use the authors seem fit. So if your favourite video tools still lacks captioning tool, feel free to send the authors here.
What's the point of generating separate files for subtitles, if they are already in the source file?
There are several reasons to have subtitles separated from the video file, including:
- Closed captions never survive MPEG processing. If you take a MPEG file and encode it to any format (such as divx), your result file will not have closed captions. This means that if you want to keep the subtitles, you need to keep the original file. This is hardly practical if you are archiving HDTV shows for example.
- Subtitles files are small - so small (around 250 Kb for a movie) that you can quickly download them, or email them, etc, in case you have a recording without subtitles.
- Subtitles files are indexable: You can have a database with all your subtitles if you want (there are many available), so you can search the dialogs.
- Subtitles files are a de-facto standard: Almost every player can use them. In fact, many setbox players accept subtitles files in .srt format - so you can have subtitles in your divx movies and not just in your original DVDs.
- Closed captions are stored in many different formats by capture cards. Upgrading to a new card, if it comes with a new player, may mean that you can't use your previously recorded closed captions, even if the audio/video are fine.
- Closed captions require a closed caption decoder. All US TV have one (it's a legal requirement), but no European TV does, since there are not closed captions in Europe (teletext is used instead). Basically this means that if you buy a DVD in the US which has closed captions but no DVD subtitles, you are out of luck. This is a problem with many (most) old TV shows DVDs, which only come with closed captions. DVD producers don't bother doing DVD subs, since it's another way to segment the market, same as with DVD regions.
How I do use subtitles once they are in a separate file?
CCExtractor generates files in the two most common formats: .srt (SubRip) and .smi (which is a Microsoft standard). Most players support at least .srt natively. You just need to name the .srt file as the file you want to play it with, for example sample.avi and sample.srt.
What kind of files can I extract closed captions from?
CCExtractor currently handles:
- DVDs.
- Most HDTV captures (where you save the Transport Stream).
- Captures where captions are recorded in bttv format. The number of cards that use this card is huge. My test samples came from a Hauppage PVR-250. You can check the complete list here.
- DVR-MS (microsoft digital video recording).
- Tivo files
- ReplayTV files
- Dish Network files
Usually, if you record a TV show with your capture card and CCExtractor produces the expected result, it will work for your all recordings. If it doesn't, which means that your card uses a format CCExtractor can't handle, please contact me and we'll try to make it work.
Can I edit the subtitles?
.srt files are just text files, with time information (when subtitles are supposed to be shown and for how long) and some basic formatting (use italics, bold, etc). So you can edit them with any text editor. If you need to do serious editing (such as adjusting timing), you can use subtitle editing tools - there are many available. A good source for your video needs is doom9.org.
Can CCExtractor generate other subtitles formats?
At this time, CCExtractor can generate .srt, .smi and raw and bin files.
What's a raw file?
A raw file is a file that contains an exact dump of the closed captions bytes, without any processing. This lets you use any tool of your choice to process the data. For example, McPoodle's excellent tools can generate subtitles files in several formats, adjust timing, etc.
What's a bin file? How is it different from a raw file?
A bin file contains a dump of the closed captions bytes (same as a raw file) but it also includes timing information. This is a format that we made up for CCExtractor, i.e. it's not any kind of industry standard. However, it's the most useful (to us) for debugging purposes, so if you need to send us a sample please use this format.
Also, a bin format can hold several CC streams (several languages, even from both analog and digital). A raw file cannot.
How long does it take to process a MPEG file?
Obviously, it depends on the computer and the length of the file. In my computer it takes around 90 seconds for a 45 minutes show in HDTV, with CPU usage around 3% (I/O operations are what's holding it back).
What platforms does CCExtractor work on?
CCExtractor is developed and tested in Windows and Linux. It is also known to compile and run fine in OSX (a build script is included in the source .zip).
Where can I download it?
CCExtractor is hosted in sourceforge. This is the download page and this is the project summary page.
How I can contact the author?
Send me an email to
How do I use this tool (parameters, etc)?
Run it without parameters and you will get a help screen. Basically, you just give it the input file name, like this:
ccextractor the.sopranos.ts
As for the lack of documentation: There is no lack of documentation! It's just included in the program itself. Just run it without parameters and you will get complete details.
How can I contribute to this project?
There are several ways:
- If you are a developer, since the source code is available, you can fix things or add features yourself and submit a patch.
- If you are an user and find any bug, or have good suggestions, let me know.
- If you are doing your own recordings and have any particular one that CCExtractor can't process correctly, I'd definitely like to take a look at it and try to fix it.
- If you really hate that there is not a lot of documentation, you can write it yourself. I'll answer any question you might have.
- Finally, you can give CCExtractor a good rating at freshmeat.
Does CCExtractor use code from other projects?
Yes. Lots of code came originally from McPoodle's tools (even though it was ported from Perl to C). I've also taken code from MythTV (which in turn took some from other places). The teletext code is 95% Petr Kutalek's and was integrated with permission.
A good thing about Open Source is that you don't need to reinvent the wheel unless you want to (or unless you think you can come up with a 'rounder' wheel).
>
> ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
> built with gcc 5.4.0 (GCC)
> configuration: --enable-gpl --enable-libx264 --prefix=/usr
> libavutil 55. 34.100 / 55. 34.100
> libavcodec 57. 64.101 / 57. 64.101
> libavformat 57. 56.100 / 57. 56.100
> libavdevice 57. 1.100 / 57. 1.100
> libavfilter 6. 65.100 / 6. 65.100
> libswscale 4. 2.100 / 4. 2.100
> libswresample 2. 3.100 / 2. 3.100
> libpostproc 54. 1.100 / 54. 1.100
> Input #0, lavfi, from 'movie=output.ts[out+subcc]':
> Duration: N/A, start: 1.767033, bitrate: N/A
> Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480
> [SAR 1:1 DAR 3:2], 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
> Stream #0:1: Subtitle: eia_608
> Output #0, srt, to 'output.srt':
> Metadata:
> encoder : Lavf57.56.100
> Stream #0:0: Subtitle: subrip (srt)
> Metadata:
> encoder : Lavc57.64.101 srt
> Stream mapping:
> Stream #0:1 -> #0:0 (eia_608 (cc_dec) -> subrip (srt))
> Press [q] to stop, [?] for help
> [mpeg2video @ 0x27d88c0] ac-tex damaged at 3 6peed= 0x
> [mpeg2video @ 0x27d88c0] Warning MVs not available
> [mpeg2video @ 0x27d88c0] concealing 1080 DC, 1080 AC, 1080 MV errors in P
> frame
> size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
> video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: unknown
> Output file is empty, nothing was encoded (check -ss / -t / -frames
> parameters if used)
>