[BUG] -stdout .ts crashes ccextractorwinfull.exe 094 #739

Closed
opened 2026-01-29 16:52:27 +00:00 by claunia · 13 comments
Owner

Originally created by @drmargarit on GitHub (Feb 12, 2023).

CCExtractor version: 094

Necessary information

  • Is this a regression (i.e. did it work before)? {YES/NO} yes, in 085
  • What platform did you use? {Window/Linux/Mac} Windows 11
  • What were the used arguments? '-stdout`

Additional information

  • .ts files created by HDHomerun
  • ccextractorwinfull.exe is launched in a c# Process
  • the only argument is -stdout
  • ccextractor emits one line of captions and then crashes
  • link to c# project and example files that reproduce the error:
  • https://1drv.ms/u/s!Ai_hpL0GElr6o-huZrnjSdk7hmW8Wg?e=Sv0PD6
  • click on select and choose cctest1.ts or cctest2.ts. A few seconds later the outputs from stdout and stderror will be displayed in list boxes.
Originally created by @drmargarit on GitHub (Feb 12, 2023). CCExtractor version: 094 # Necessary information - Is this a regression (i.e. did it work before)? {YES/NO} yes, in 085 - What platform did you use? {Window/Linux/Mac} Windows 11 - What were the used arguments? '-stdout` # Additional information - .ts files created by HDHomerun - ccextractorwinfull.exe is launched in a c# Process - the only argument is -stdout - ccextractor emits one line of captions and then crashes - link to c# project and example files that reproduce the error: - https://1drv.ms/u/s!Ai_hpL0GElr6o-huZrnjSdk7hmW8Wg?e=Sv0PD6 - click on select and choose cctest1.ts or cctest2.ts. A few seconds later the outputs from stdout and stderror will be displayed in list boxes.
claunia added the GSOC-2023 label 2026-01-29 16:52:27 +00:00
Author
Owner

@drmargarit commented on GitHub (Feb 13, 2023):

The first two lines of the log are:
13:40:50: CCExtractor: E:\OneDrive\Develop\C#_PVRService\PVRService\bin\Debug\CCExtractor\ccextractorwinfull.exe, -s 10 -nots -nofc -trim -stdout "E:\Video\PVR\Movies\Walker Independence\Season__1\WalkerIndependence_S1E4_4281.ts"
13:40:50: Launching process E:\OneDrive\Develop\C#_PVRService\PVRService\bin\Debug\CCExtractor\ccextractorwinfull.exe -s 10 -nots -nofc -trim -stdout "E:\Video\PVR\Movies\Walker Independence\Season__1\WalkerIndependence_S1E4_4281.ts"
The last two lines of the log are:
thread '' panicked at 'index out of bounds: the len is 1 but the index is 1', src\decoder\service_decoder.rs:275:25
13:40:50: note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
13:40:52: CCExtractor Process Exited with code -1073740791

@drmargarit commented on GitHub (Feb 13, 2023): The first two lines of the log are: 13:40:50: CCExtractor: E:\OneDrive\Develop\C#\_PVRService\PVRService\bin\Debug\CCExtractor\ccextractorwinfull.exe, -s 10 -nots -nofc -trim -stdout "E:\Video\PVR\Movies\Walker Independence\Season__1\WalkerIndependence_S1E4_4281.ts" 13:40:50: Launching process E:\OneDrive\Develop\C#\_PVRService\PVRService\bin\Debug\CCExtractor\ccextractorwinfull.exe -s 10 -nots -nofc -trim -stdout "E:\Video\PVR\Movies\Walker Independence\Season__1\WalkerIndependence_S1E4_4281.ts" The last two lines of the log are: thread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 1', src\decoder\service_decoder.rs:275:25 13:40:50: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 13:40:52: CCExtractor Process Exited with code -1073740791
Author
Owner

@cfsmp3 commented on GitHub (Mar 22, 2023):

@drmargarit is this still happening? (with the current binary, not 0.94)

@cfsmp3 commented on GitHub (Mar 22, 2023): @drmargarit is this still happening? (with the current binary, not 0.94)
Author
Owner

@drmargarit commented on GitHub (Mar 22, 2023):

Where would I find current binaries? 0.94 is the latest I can find.

@drmargarit commented on GitHub (Mar 22, 2023): Where would I find current binaries? 0.94 is the latest I can find.
Author
Owner

@cfsmp3 commented on GitHub (Mar 22, 2023):

Where would I find current binaries? 0.94 is the latest I can find.

You can get the last build from the integration system here:
https://github.com/CCExtractor/ccextractor/suites/11510033399/artifacts/595056084

@cfsmp3 commented on GitHub (Mar 22, 2023): > Where would I find current binaries? 0.94 is the latest I can find. You can get the last build from the integration system here: https://github.com/CCExtractor/ccextractor/suites/11510033399/artifacts/595056084
Author
Owner

@cfsmp3 commented on GitHub (Mar 22, 2023):

I tested in linux and it works well, but well, I guess that's doesn't mean it will work in Windows (but I'd be surprised if it didn't).

@cfsmp3 commented on GitHub (Mar 22, 2023): I tested in linux and it works well, but well, I guess that's doesn't mean it will work in Windows (but I'd be surprised if it didn't).
Author
Owner

@drmargarit commented on GitHub (Mar 22, 2023):

Sorry, it complains about vcruntime140_1D.DLL, vcruntime140D.dll and ucrtbased.dll being missing. Is there a link to the complete package including all of the support files?

@drmargarit commented on GitHub (Mar 22, 2023): Sorry, it complains about vcruntime140_1D.DLL, vcruntime140D.dll and ucrtbased.dll being missing. Is there a link to the complete package including all of the support files?
Author
Owner

@cfsmp3 commented on GitHub (Mar 22, 2023):

Sorry, it complains about vcruntime140_1D.DLL, vcruntime140D.dll and ucrtbased.dll being missing. Is there a link to the complete package including all of the support files?

Probably you're missing some Microsoft libraries. You can download their redistributables here (that's linked from Microsoft website: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 )

https://aka.ms/vs/17/release/vc_redist.x64.exe

@canihavesomecoffee should be update our artifacts so this dependency is included? (I know we used to include some redist, maybe the version has changed?)

@cfsmp3 commented on GitHub (Mar 22, 2023): > Sorry, it complains about vcruntime140_1D.DLL, vcruntime140D.dll and ucrtbased.dll being missing. Is there a link to the complete package including all of the support files? Probably you're missing some Microsoft libraries. You can download their redistributables here (that's linked from Microsoft website: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 ) https://aka.ms/vs/17/release/vc_redist.x64.exe @canihavesomecoffee should be update our artifacts so this dependency is included? (I know we used to include some redist, maybe the version has changed?)
Author
Owner

@drmargarit commented on GitHub (Mar 23, 2023):

Installed the linked file. No help. Still complains about runtime files being missing.

@drmargarit commented on GitHub (Mar 23, 2023): Installed the linked file. No help. Still complains about runtime files being missing.
Author
Owner

@cfsmp3 commented on GitHub (Mar 24, 2023):

Installed the linked file. No help. Still complains about runtime files being missing.

@canihavesomecoffee @prateekmedia can you assist with this one? I don't have any Windows system nearby

@cfsmp3 commented on GitHub (Mar 24, 2023): > Installed the linked file. No help. Still complains about runtime files being missing. @canihavesomecoffee @prateekmedia can you assist with this one? I don't have any Windows system nearby
Author
Owner

@DhruvGandhi31 commented on GitHub (Apr 3, 2023):

I experienced a similar issue, however, after downloading the most recent redistributable packages, the problem was resolved for me. I suggest attempting to reinstall the software to see if it resolves the issue for you as well.

@DhruvGandhi31 commented on GitHub (Apr 3, 2023): I experienced a similar issue, however, after downloading the most recent redistributable packages, the problem was resolved for me. I suggest attempting to reinstall the software to see if it resolves the issue for you as well.
Author
Owner

@prateekmedia commented on GitHub (May 7, 2023):

@drmargarit Please download Visual C++ runtime package from here: https://github.com/abbodi1406/vcredist/releases/tag/v0.72.0
And Universal C Runtime(if needed) here: https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c

Let me know if it works for you

@prateekmedia commented on GitHub (May 7, 2023): @drmargarit Please download Visual C++ runtime package from here: https://github.com/abbodi1406/vcredist/releases/tag/v0.72.0 And Universal C Runtime(if needed) here: https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c Let me know if it works for you
Author
Owner

@drmargarit commented on GitHub (May 14, 2023):

Installing the runtime package did help. It now runs without complaining about missing files, But the error persists. Here's a simpler method to reproduce it:

  1. Download and install ccextractor 094. It installs to c:\program files (x86)\ccextractor by default
  2. Download test video: https://1drv.ms/v/s!Ai_hpL0GElr6pPlwNV1W2zoAbi8BDA?e=8nvp6N
  3. Put video into ccextractor directory
  4. Open a command window and navigate to the ccextractor directory
  5. Issue command: ccextractorwinfull.exe -stdout cctest1.ts 1>c:\users\public\ccStdOut.txt

The error will appear in the command window. A small snippet of successful closed caption text extraction will appear in c:\users\public\ccStdOut.txt. You may have to change the stdout redirect to a directory with proper permissions.

JLM

@drmargarit commented on GitHub (May 14, 2023): Installing the runtime package did help. It now runs without complaining about missing files, But the error persists. Here's a simpler method to reproduce it: 1) Download and install ccextractor 094. It installs to c:\program files (x86)\ccextractor by default 2) Download test video: https://1drv.ms/v/s!Ai_hpL0GElr6pPlwNV1W2zoAbi8BDA?e=8nvp6N 3) Put video into ccextractor directory 4) Open a command window and navigate to the ccextractor directory 5) Issue command: ccextractorwinfull.exe -stdout cctest1.ts 1>c:\users\public\ccStdOut.txt The error will appear in the command window. A small snippet of successful closed caption text extraction will appear in c:\users\public\ccStdOut.txt. You may have to change the stdout redirect to a directory with proper permissions. JLM
Author
Owner

@cfsmp3 commented on GitHub (Dec 26, 2025):

I just tested it with our current version and it works correctly:

PS C:\Program Files (x86)\CCExtractor> .\ccextractorwinfull.exe -stdout -quiet C:\temp\dr.ts
AutodetectDetected MP4 box with name: skip
File seems to be a transport stream1
00:00:00,001 --> 00:00:01,533
          [Double tone]

1
00:00:01,501 --> 00:00:04,454
        <font color="#aaaaaa">-I'm telling you.</font>
 <font color="#aaaaaa">It was like a Russian novel --</font>

2
00:00:01,535 --> 00:00:04,536
        -I'm telling you.
 It was like a Russian novel --

2
00:00:04,455 --> 00:00:06,923
  <font color="#aaaaaa">-Julie must've been thrilled.</font>

3
00:00:04,538 --> 00:00:07,006
           long, hard,
     and forever to finish.

4
00:00:07,008 --> 00:00:08,290
  -Julie must've been thrilled.

3
00:00:08,208 --> 00:00:10,593
 <font color="#aaaaaa">-Can you say, "Go, Bronco, go"s</font>

5
00:00:08,292 --> 00:00:10,676
 -Can you say, "Go, Bronco, go"?

4
00:00:10,594 --> 00:00:13,179
         <font color="#aaaaaa">own, thank you.</font>

6
00:00:10,678 --> 00:00:13,212
-I'll stick with Mother Nature's
         own, thank you.

5
00:00:13,180 --> 00:00:15,548
    <font color="#aaaaaa">-See that guy over there?</font>
       <font color="#aaaaaa">What is he? 45, 50?</font>

7
00:00:13,214 --> 00:00:15,597
    -See that guy over there?
       What is he? 45, 50?

6
00:00:15,549 --> 00:00:16,633
     <font color="#aaaaaa">How much you wanna betthatd</font>

8
00:00:15,599 --> 00:00:16,715
     How much you wanna bet

9
00:00:16,717 --> 00:00:18,634
        that seat's saved
      for some 25-year-old?

7
00:00:18,551 --> 00:00:19,719
   <font color="#aaaaaa">that he's popping vitamin V</font>

10
00:00:18,636 --> 00:00:19,802
      -Oh, and you can tell

8
00:00:19,720 --> 00:00:21,721
        <font color="#aaaaaa">just by looking?</font>

11
00:00:19,804 --> 00:00:21,804
   that he's popping vitamin V
        just by looking?

9
00:00:21,722 --> 00:00:22,889
       <font color="#aaaaaa">-Everybody is, man.</font>

12
00:00:21,806 --> 00:00:22,971
       -Everybody is, man.

10
00:00:22,890 --> 00:00:24,724
<font color="#aaaaaa">Look, I don't want my good buddy</font>

13
00:00:22,973 --> 00:00:24,773
Look, I don't want my good buddy

11
00:00:24,725 --> 00:00:26,943
       <font color="#aaaaaa">to be the last guy</font>
       <font color="#aaaaaa">on the train to...</font>

14
00:00:24,775 --> 00:00:27,026
       to be the last guy
       on the train to...

12
00:00:26,944 --> 00:00:29,062
    <font color="#aaaaaa">--I don't like doctors.?-Ex.</font>

15
00:00:27,028 --> 00:00:29,111
    -What, "Go, Bronco, go"?
            -Exactly.

13
00:00:29,063 --> 00:00:30,012
   <font color="#aaaaaa">I don't like popping pills.</font>

16
00:00:29,113 --> 00:00:30,011
     -I don't like doctors.
   I don't like popping pills.

PS C:\Program Files (x86)\CCExtractor>
@cfsmp3 commented on GitHub (Dec 26, 2025): I just tested it with our current version and it works correctly: ``` PS C:\Program Files (x86)\CCExtractor> .\ccextractorwinfull.exe -stdout -quiet C:\temp\dr.ts AutodetectDetected MP4 box with name: skip File seems to be a transport stream1 00:00:00,001 --> 00:00:01,533 [Double tone] 1 00:00:01,501 --> 00:00:04,454 <font color="#aaaaaa">-I'm telling you.</font> <font color="#aaaaaa">It was like a Russian novel --</font> 2 00:00:01,535 --> 00:00:04,536 -I'm telling you. It was like a Russian novel -- 2 00:00:04,455 --> 00:00:06,923 <font color="#aaaaaa">-Julie must've been thrilled.</font> 3 00:00:04,538 --> 00:00:07,006 long, hard, and forever to finish. 4 00:00:07,008 --> 00:00:08,290 -Julie must've been thrilled. 3 00:00:08,208 --> 00:00:10,593 <font color="#aaaaaa">-Can you say, "Go, Bronco, go"s</font> 5 00:00:08,292 --> 00:00:10,676 -Can you say, "Go, Bronco, go"? 4 00:00:10,594 --> 00:00:13,179 <font color="#aaaaaa">own, thank you.</font> 6 00:00:10,678 --> 00:00:13,212 -I'll stick with Mother Nature's own, thank you. 5 00:00:13,180 --> 00:00:15,548 <font color="#aaaaaa">-See that guy over there?</font> <font color="#aaaaaa">What is he? 45, 50?</font> 7 00:00:13,214 --> 00:00:15,597 -See that guy over there? What is he? 45, 50? 6 00:00:15,549 --> 00:00:16,633 <font color="#aaaaaa">How much you wanna betthatd</font> 8 00:00:15,599 --> 00:00:16,715 How much you wanna bet 9 00:00:16,717 --> 00:00:18,634 that seat's saved for some 25-year-old? 7 00:00:18,551 --> 00:00:19,719 <font color="#aaaaaa">that he's popping vitamin V</font> 10 00:00:18,636 --> 00:00:19,802 -Oh, and you can tell 8 00:00:19,720 --> 00:00:21,721 <font color="#aaaaaa">just by looking?</font> 11 00:00:19,804 --> 00:00:21,804 that he's popping vitamin V just by looking? 9 00:00:21,722 --> 00:00:22,889 <font color="#aaaaaa">-Everybody is, man.</font> 12 00:00:21,806 --> 00:00:22,971 -Everybody is, man. 10 00:00:22,890 --> 00:00:24,724 <font color="#aaaaaa">Look, I don't want my good buddy</font> 13 00:00:22,973 --> 00:00:24,773 Look, I don't want my good buddy 11 00:00:24,725 --> 00:00:26,943 <font color="#aaaaaa">to be the last guy</font> <font color="#aaaaaa">on the train to...</font> 14 00:00:24,775 --> 00:00:27,026 to be the last guy on the train to... 12 00:00:26,944 --> 00:00:29,062 <font color="#aaaaaa">--I don't like doctors.?-Ex.</font> 15 00:00:27,028 --> 00:00:29,111 -What, "Go, Bronco, go"? -Exactly. 13 00:00:29,063 --> 00:00:30,012 <font color="#aaaaaa">I don't like popping pills.</font> 16 00:00:29,113 --> 00:00:30,011 -I don't like doctors. I don't like popping pills. PS C:\Program Files (x86)\CCExtractor> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#739