[CEA-708] Missing the last subtitle with "Premature end of file" #240

Open
opened 2026-01-29 16:38:40 +00:00 by claunia · 0 comments
Owner

Originally created by @Izaron on GitHub (Jan 14, 2017).

Sometimes we have incomplete ts parts because of cropped .ts files, for example:
Premature end of file - Transport Stream packet is incomplete (expected 188 bytes, got 168).

After work we must flush subtitles in current window:

Done, processing time = 85 seconds
Issues? Open a ticket here
https://github.com/CCExtractor/ccextractor/issues
[CEA-708] Window 0 dump:

00:04:49:623 --> 00:34:57:394
-놳떵볒뾡 낥 맼쇋뢦 샺쇶뢣룩 샚믬쟒 
뿫뇢낡 믽뇢쇶 뻊삻뇮 뷍뻮벭 샚웷샚뇢 
뷉솤삸럎 맼쟠삻 쟟듙냭. 
[CEA-708] Dump done
[CEA-708] Window 1 dump:

00:30:22:755 --> 00:34:57:394
낭뢪뾡벭 몸뎻뗥뢰 욯쇽 뒺붺820 뾩뇢벭 
뢶쒡냚뷀듏듙. 
-(뻞쒿) 뷃쎻쟘쇖뷅 뾩랯뫐, 냭뢿뷀듏듙. 
[CEA-708] Dump done

^ This subtitles are written to the file
But if we have broken .ts file at the end, then we can't flush last sub because of missing show time, but CEA-608 have last sub. Example:

Done, processing time = 12 seconds
Issues? Open a ticket here
https://github.com/CCExtractor/ccextractor/issues
[CEA-708] _dtvcc_decoder_flush: Flushing decoder
[CEA-708] [W-1] hide time updated to 00:09:59:131
[CEA-708] _dtvcc_window_copy_to_screen: W-1
[CEA-708] For window 1: Anchor point -> 0, size 2:32, real position 65:0
[CEA-708] we have top [65] and left [0]
[CEA-708] 2*32 will be copied to the TV.
[CEA-708] Screen show time: -00:00:00:001 -> -00:00:00:001
[CEA-708] Screen hide time: -00:00:00:001 -> 00:09:59:131
[CEA-708] Window 1 dump:

-00:00:00:001 --> 00:09:59:131
Our suspect told Petty
Officer Lynn a co-worker
[CEA-708] Dump done
[CEA-708] _dtvcc_screen_print
[CEA-708] Screen hide time: 00:09:59:131 -> 00:09:59:131
[CEA-708] ccx_dtvcc_writer_output: writing... [D:\USA.p8.svc01.srt][5]
[CEA-708] ccx_dtvcc_write_done: no handling required
[CEA-708] dtvcc_free: cleaning up

^ These subtitles have written in CEA-608 file with correct timing, but have not in CEA-708 file.

Originally created by @Izaron on GitHub (Jan 14, 2017). Sometimes we have incomplete ts parts because of cropped .ts files, for example: `Premature end of file - Transport Stream packet is incomplete (expected 188 bytes, got 168).` After work we must flush subtitles in current window: ``` Done, processing time = 85 seconds Issues? Open a ticket here https://github.com/CCExtractor/ccextractor/issues [CEA-708] Window 0 dump: 00:04:49:623 --> 00:34:57:394 -놳떵볒뾡 낥 맼쇋뢦 샺쇶뢣룩 샚믬쟒 뿫뇢낡 믽뇢쇶 뻊삻뇮 뷍뻮벭 샚웷샚뇢 뷉솤삸럎 맼쟠삻 쟟듙냭. [CEA-708] Dump done [CEA-708] Window 1 dump: 00:30:22:755 --> 00:34:57:394 낭뢪뾡벭 몸뎻뗥뢰 욯쇽 뒺붺820 뾩뇢벭 뢶쒡냚뷀듏듙. -(뻞쒿) 뷃쎻쟘쇖뷅 뾩랯뫐, 냭뢿뷀듏듙. [CEA-708] Dump done ``` ^ This subtitles are written to the file But if we have broken .ts file at the end, then we can't flush last sub because of missing show time, but CEA-608 have last sub. Example: ``` Done, processing time = 12 seconds Issues? Open a ticket here https://github.com/CCExtractor/ccextractor/issues [CEA-708] _dtvcc_decoder_flush: Flushing decoder [CEA-708] [W-1] hide time updated to 00:09:59:131 [CEA-708] _dtvcc_window_copy_to_screen: W-1 [CEA-708] For window 1: Anchor point -> 0, size 2:32, real position 65:0 [CEA-708] we have top [65] and left [0] [CEA-708] 2*32 will be copied to the TV. [CEA-708] Screen show time: -00:00:00:001 -> -00:00:00:001 [CEA-708] Screen hide time: -00:00:00:001 -> 00:09:59:131 [CEA-708] Window 1 dump: -00:00:00:001 --> 00:09:59:131 Our suspect told Petty Officer Lynn a co-worker [CEA-708] Dump done [CEA-708] _dtvcc_screen_print [CEA-708] Screen hide time: 00:09:59:131 -> 00:09:59:131 [CEA-708] ccx_dtvcc_writer_output: writing... [D:\USA.p8.svc01.srt][5] [CEA-708] ccx_dtvcc_write_done: no handling required [CEA-708] dtvcc_free: cleaning up ``` ^ These subtitles have written in CEA-608 file with correct timing, but have not in CEA-708 file.
claunia added the CEA-708needs-confirmation-of-being-brokendifficulty: easy labels 2026-01-29 16:38:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#240