CCExtractor produces only "Illegal XDS Data", VLC shows proper subtitles. #82

Closed
opened 2026-01-29 16:34:42 +00:00 by claunia · 4 comments
Owner

Originally created by @arantius on GitHub (Nov 5, 2015).

The file linked below is the first 20 MB of a TS MPEG captured via TiVo. When running CCExtractor (0.77) I only get:

...
Note: Illegal XDS data
Note: Illegal XDS data
Note: Illegal XDS dataPremature end of file!

(and a zero byte SRT) But playing the same file with VLC successfully decodes and displays the captions.

https://drive.google.com/file/d/0B3bPKNXgZu0-b1ZXTlU4b3Y3d1U/view

Originally created by @arantius on GitHub (Nov 5, 2015). The file linked below is the first 20 MB of a TS MPEG captured via TiVo. When running CCExtractor (0.77) I only get: ``` ... Note: Illegal XDS data Note: Illegal XDS data Note: Illegal XDS dataPremature end of file! ``` (and a zero byte SRT) But playing the same file with VLC successfully decodes and displays the captions. https://drive.google.com/file/d/0B3bPKNXgZu0-b1ZXTlU4b3Y3d1U/view
Author
Owner

@anshul1912 commented on GitHub (Jan 8, 2016):

Yes, I checked it also works with FFMpeg with this command: ffmpeg -f lavfi -i "movie=/home/kiran/Videos/test.mpg[out0+subcc]" a.srt

@anshul1912 commented on GitHub (Jan 8, 2016): Yes, I checked it also works with FFMpeg with this command: ffmpeg -f lavfi -i "movie=/home/kiran/Videos/test.mpg[out0+subcc]" a.srt
Author
Owner

@anshul1912 commented on GitHub (Jan 8, 2016):

subtitles are there in channel 2, so -2 option works. but lot of garbage with actual data

@anshul1912 commented on GitHub (Jan 8, 2016): subtitles are there in channel 2, so -2 option works. but lot of garbage with actual data
Author
Owner

@cfsmp3 commented on GitHub (Jan 8, 2016):

I suspect our Tivo support is just broken. It worked a long time ago but
probably Tivo has changed things.

On Fri, Jan 8, 2016 at 7:11 AM, Anshul Maheshwari notifications@github.com
wrote:

subtitles are there in channel 2, so -2 option works. but lot of garbage
with actual data


Reply to this email directly or view it on GitHub
https://github.com/CCExtractor/ccextractor/issues/244#issuecomment-169906874
.

@cfsmp3 commented on GitHub (Jan 8, 2016): I suspect our Tivo support is just broken. It worked a long time ago but probably Tivo has changed things. On Fri, Jan 8, 2016 at 7:11 AM, Anshul Maheshwari notifications@github.com wrote: > subtitles are there in channel 2, so -2 option works. but lot of garbage > with actual data > > — > Reply to this email directly or view it on GitHub > https://github.com/CCExtractor/ccextractor/issues/244#issuecomment-169906874 > .
Author
Owner

@anshul1912 commented on GitHub (Jan 9, 2016):

if we put this hack in store_hdcc function, this video produce correct output

27 if(cc_data[0] == 0x05)
28 return;

The problem is in function user_data in lib_ccx/es_userdata.c
140 // SCTE 20 user data
141 else if (ud_header[0] == 0x03)
SCTE 20 userdata is not considered in VLC and FFMpeg. Though we have many advantage of parsing SCTE 20 userdata, but at this video it make it worse output for closed caption decoder

@anshul1912 commented on GitHub (Jan 9, 2016): if we put this hack in store_hdcc function, this video produce correct output 27 if(cc_data[0] == 0x05) 28 return; The problem is in function user_data in lib_ccx/es_userdata.c 140 // SCTE 20 user data 141 else if (ud_header[0] == 0x03) SCTE 20 userdata is not considered in VLC and FFMpeg. Though we have many advantage of parsing SCTE 20 userdata, but at this video it make it worse output for closed caption decoder
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#82