mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
QUESTION: Can't get MCC output to work with known good input #767
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 @PyCoder040 on GitHub (Jun 7, 2023).
CCExtractor detailed version info
Version: 0.94
Git commit:
5b7666965fCompilation date: 2023-06-07
CEA-708 decoder: Rust
File SHA256: Could not open file
Libraries used by CCExtractor
Tesseract Version: 5.2.0
Leptonica Version: leptonica-1.82.0
libGPAC Version: 1.0.1
zlib: 1.2.11
utf8proc Version: 2.4.0
protobuf-c Version: 1.3.1
libpng Version: 1.6.37
FreeType
libhash
nuklear
libzvbi
In raising this issue, I confirm the following:
Necessary information
So testing my input I get valid captions
But when I try to switch the output format to MCC, I get a fatal error message:
After reviewing the code (ccx_encoders_common.c), I see that this error can be generated when a 608 caption is to be stored in a MCC format. This leads me to believe that I can output MCC files as long as the input is not considered to be 608. I don't see where I can declare my payload to be non-608. So I think I'm just doing this wrong. Do I need to provide 708, or can I tell ccextractor to "convert" to 708?
My input file was created by using subrip2scc.pl to convert a SRT into SCC. Then I used scc2raw.pl to convert the SCC into a McPoodle RAW file. I think that maybe this is creating a standard definition (608) caption file? Anyway, that's what I fed into ccextractor as shown above.
If I'm unknowingly making a 608-only file, this may be where I'm going wrong. I need 708 captions to feed into ccextractor to get a MCC file.
Is it possible for someone to post a working example of a commandline producing a valid MCC output file?
P.S. I have also tried this with the 0.94 release version. No difference.
As a second test, I took an entirely different approach. I injected a SRT into a MP4 using ffmpeg. VLC will show these captions all day long. But when fed to ccextractor, the captions are seen if specified in -stdout, but if you add the MCC output, you get a zero length mcc file.