mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-15 21:23:10 +00:00
BUG: No captions were found in input. #296
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 @Brentx3 on GitHub (Mar 19, 2017).
I've been successfully using CCExtractor for a few years with my HDHomerunPrime. However recently one channel (Disney) stopped extracting in CCExtractor, but the captions show correctly in VLC media player. I can't figure out why they won't extract.
Link to an example transport stream file:
https://drive.google.com/open?id=0BzchVf99j5mrbUYwSzhQUlJCUDA
CCExtractor Version 0.85
@siddharthjindal1997 commented on GitHub (Mar 21, 2017):
@cfsmp3 this bug also due to premature end of file. here number of bytes received is 0 which is not printed due to
if (result != 188) { if (result > 0) mprint("Premature end of file - Transport Stream packet is incomplete (expected 188 bytes, got %lld).\n", result); return CCX_EOF; }in file ts_functions.c
it should be result>=0 for printing the error -premature end of file.
can you point me towards solving the premature end of file error.issue- #304
@Izaron commented on GitHub (Mar 21, 2017):
@siddharthjindal1997 I guess that
result = 0just means that all packets in the file are correct (not broken), but if we have packet with the size [1..187], that means we have a cropped file or simular error.@Brentx3 commented on GitHub (Mar 21, 2017):
I think the 'premature end of file' was my fault, I copied the transport stream while it was recording.
Here is a link to a complete file: https://drive.google.com/open?id=0BzchVf99j5mrYkhmS3dmeXlCclE
Hopefully that is a better example file, that shows the issue better.
@saurabhshri commented on GitHub (Apr 9, 2017):
The video file doesn't appear to have a separate stream for captions (as tested by tools like mediainfo and ffprobe).
But the output of video stream by ffprobe mentions closed captions :
This is a direct quote from conversation with @cfsmp3 on slack regarding the same :
It should be helpful for someone working on the issue. :)
@cfsmp3 commented on GitHub (Apr 10, 2017):
Fixed in master. Various notes, in case we have to revisit:
8924974ac1/modules/demux/mpeg/ts_psi.cFixed by doing this in our parse_PMT:
current_next_indicator = buf[5] & 0x01;
// This table is not active, no need to evaluate
if (!current_next_indicator && pinfo->version!=0xFF) // 0xFF means we don't have one yet
return 0;
The current_next_indicator flag is always set to 1 in the sample file (meaning that PMT is not yet active, so we were just skipping it waiting for one with 0, which never happens). Anyway if we don't have a previous PMT at all (pinfo->version is now init'ed to 0xFF) we just use the first we find.
@jaum20 commented on GitHub (May 21, 2022):
I'm facing this error with Disney+ vtt subtitles. For this one, for example. I get:
This file subtitle displays fine in VLC