mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[BUG] Captions fail to extract on HEVC video stream #829
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shirt-dev on GitHub (Apr 15, 2025).
CCExtractor version: 0.94
In raising this issue, I confirm the following:
Necessary information
Video links
Additional information
HEVC video files with EIA-608 captions fail to extract, however MPV and VLC display the captions.
MediaInfo
@VivianVRodrigues commented on GitHub (Aug 4, 2025):
I tried to get the cc , on linux os , yes it does not recognize the cc in hevc format , but was able to extract by converting the hevc to h.264 using ffmpeg then extraction was successful , so the problem is in the extraction of hevc in cc extractor .
@VivianVRodrigues commented on GitHub (Aug 4, 2025):
So is anyone working on it , or is this problem solved but not merged yet ?
@shirt-dev commented on GitHub (Dec 21, 2025):
Appreciate the help with this! MP4 and MKV files still are failing.
MP4: https://drive.google.com/file/d/1w36ic-gbLAc6_fjMB5TDpBV8Pcs40bGC/view?usp=sharing
MKV: https://drive.google.com/file/d/10X8R95TUnFzAZZkP_M2letRJzvz9OPSm/view?usp=sharing
@cfsmp3 commented on GitHub (Dec 21, 2025):
Hi @shirt-dev,
I analyzed the MP4 and MKV files you provided. The issue is that the caption data is not present in these files - it was stripped during the remuxing process.
Analysis with mediainfo:
When you remux an HEVC stream from TS to MP4/MKV using FFmpeg or mkvmerge, the CEA-608/708 captions embedded in the video SEI NAL units are typically not preserved unless you use specific options.
The PR #1852 fix works correctly - it extracts captions from HEVC streams in MPEG-TS containers where the caption data exists. The issue with your new samples is that they simply don't contain caption data to extract.
To verify this yourself:
If you need to preserve captions when remuxing:
Unfortunately, FFmpeg and mkvmerge don't have built-in support for preserving CEA-608/708 captions during remux. You would need to:
Is there a specific use case where you need HEVC captions in MP4/MKV format? If you have original MP4/MKV files with embedded captions (not remuxed from TS), please share those and I'll investigate.
@shirt-dev commented on GitHub (Dec 21, 2025):
Appreciate the follow-up on this. The original source files for this actually were MP4, but I no longer have them. When I attempt to play the samples I submitted with VLC or MPV, EIA-608 data is detected and playable though, which is interesting to me.
@cfsmp3 commented on GitHub (Dec 21, 2025):
Maybe you're right and we failed to find them :-) Can you open a separate issue with details? (since we closed this already based on what we already implemented)