-stdin option returns almost immediately after the first few bytes of data. #136

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

Originally created by @enternoescape on GitHub (Apr 4, 2016).

Originally assigned to: @canihavesomecoffee on GitHub.

I tried 0.79 pre-compiled Windows binary and compiled the latest git with the same results.

Example command line:
type video.ts | ccextractorwin.exe -stdin -in=ts -out=srt -o video.srt

I am trying to use this as part of a program and it's very desirable to be able to use stdin instead of reading the file from the disk as it's being written.

EDIT: I forgot to include "-o" for the output filename.

Originally created by @enternoescape on GitHub (Apr 4, 2016). Originally assigned to: @canihavesomecoffee on GitHub. I tried 0.79 pre-compiled Windows binary and compiled the latest git with the same results. Example command line: type video.ts | ccextractorwin.exe -stdin -in=ts -out=srt -o video.srt I am trying to use this as part of a program and it's very desirable to be able to use stdin instead of reading the file from the disk as it's being written. EDIT: I forgot to include "-o" for the output filename.
Author
Owner

@canihavesomecoffee commented on GitHub (Apr 4, 2016):

Running the same file regularly works?

@canihavesomecoffee commented on GitHub (Apr 4, 2016): Running the same file regularly works?
Author
Owner

@enternoescape commented on GitHub (Apr 4, 2016):

Correct.

I also wanted to mention that when I compile the version for Linux, stdin works without issue. This is just a problem for Windows. I'm using Windows 8.1 if that helps any.

@enternoescape commented on GitHub (Apr 4, 2016): Correct. I also wanted to mention that when I compile the version for Linux, stdin works without issue. This is just a problem for Windows. I'm using Windows 8.1 if that helps any.
Author
Owner

@canihavesomecoffee commented on GitHub (Apr 4, 2016):

I asked if it was running because I wasn't sure you got the output command correct, but I see you've added the -o.

Besides that, if it's running fine when passing it directly instead of through a pipe/stdin, it's indeed some windows-related bug.

@canihavesomecoffee commented on GitHub (Apr 4, 2016): I asked if it was running because I wasn't sure you got the output command correct, but I see you've added the -o. Besides that, if it's running fine when passing it directly instead of through a pipe/stdin, it's indeed some windows-related bug.
Author
Owner

@enternoescape commented on GitHub (Apr 4, 2016):

I figured as much, I was trying to work out what was going on myself, but I wasn't really getting anywhere. All I've really noticed is that the program only gets one successful buffered read of 1083 bytes and then no subsequent reads are successful. It's like stdin is closed.

@enternoescape commented on GitHub (Apr 4, 2016): I figured as much, I was trying to work out what was going on myself, but I wasn't really getting anywhere. All I've really noticed is that the program only gets one successful buffered read of 1083 bytes and then no subsequent reads are successful. It's like stdin is closed.
Author
Owner

@canihavesomecoffee commented on GitHub (May 22, 2016):

I've done some testing, and in my case (depending on the input size) the amount of bytes it's able to read before it stops receiving data varies (from 299 to 95959 bytes). It also varies depending on if you specify an -in, or use -autoprogram (in the latter case it seems to read more).

I can't really find any useful hints or similar issues either online, so I'm afraid that at the moment this one will remain open 😢

@canihavesomecoffee commented on GitHub (May 22, 2016): I've done some testing, and in my case (depending on the input size) the amount of bytes it's able to read before it stops receiving data varies (from 299 to 95959 bytes). It also varies depending on if you specify an -in, or use -autoprogram (in the latter case it seems to read more). I can't really find any useful hints or similar issues either online, so I'm afraid that at the moment this one will remain open :cry:
Author
Owner
@cfsmp3 commented on GitHub (May 31, 2016): These seem to be good hints http://stackoverflow.com/questions/30968377/command-line-tool-to-get-binary-data-as-string-in-windows-like-cat http://stackoverflow.com/questions/7924365/windows-pipes-in-binary-mode
Author
Owner

@cfsmp3 commented on GitHub (Nov 4, 2016):

This is likely a duplicate of this:
https://github.com/CCExtractor/ccextractor/issues/434

@enternoescape can you check if the problem is fixed for you? (precompiled binaries available on that ticket)

@cfsmp3 commented on GitHub (Nov 4, 2016): This is likely a duplicate of this: https://github.com/CCExtractor/ccextractor/issues/434 @enternoescape can you check if the problem is fixed for you? (precompiled binaries available on that ticket)
Author
Owner

@enternoescape commented on GitHub (Nov 4, 2016):

I didn't see any binaries. I downloaded the latest code and compiled it. Unfortunately, the issue described here still exists.

@enternoescape commented on GitHub (Nov 4, 2016): I didn't see any binaries. I downloaded the latest code and compiled it. Unfortunately, the issue described here still exists.
Author
Owner

@cfsmp3 commented on GitHub (Nov 4, 2016):

Can you try this binary?

https://github.com/CCExtractor/ccextractor/files/530373/ccextractorwin.0.83.alpha2-windows.binary.zip

On Fri, Nov 4, 2016 at 1:53 PM, Joseph Shuttlesworth <
notifications@github.com> wrote:

I didn't see any binaries. I downloaded the latest code and compiled it.
Unfortunately, the issue described here still exists.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/CCExtractor/ccextractor/issues/349#issuecomment-258544649,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFrJ2TWVkLahiJlOHFUhW2lU7Fv4k58Zks5q65tIgaJpZM4H-yvI
.

@cfsmp3 commented on GitHub (Nov 4, 2016): Can you try this binary? https://github.com/CCExtractor/ccextractor/files/530373/ccextractorwin.0.83.alpha2-windows.binary.zip On Fri, Nov 4, 2016 at 1:53 PM, Joseph Shuttlesworth < notifications@github.com> wrote: > I didn't see any binaries. I downloaded the latest code and compiled it. > Unfortunately, the issue described here still exists. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > https://github.com/CCExtractor/ccextractor/issues/349#issuecomment-258544649, > or mute the thread > https://github.com/notifications/unsubscribe-auth/AFrJ2TWVkLahiJlOHFUhW2lU7Fv4k58Zks5q65tIgaJpZM4H-yvI > .
Author
Owner

@enternoescape commented on GitHub (Nov 5, 2016):

It has the same problems.

@enternoescape commented on GitHub (Nov 5, 2016): It has the same problems.
Author
Owner

@cfsmp3 commented on GitHub (Nov 9, 2016):

Code-in task created.

@cfsmp3 commented on GitHub (Nov 9, 2016): Code-in task created.
Author
Owner

@cfsmp3 commented on GitHub (Dec 15, 2016):

@enternoescape We've released 0.83 today - does this problem still happen to you?

@cfsmp3 commented on GitHub (Dec 15, 2016): @enternoescape We've released 0.83 today - does this problem still happen to you?
Author
Owner

@enternoescape commented on GitHub (Dec 16, 2016):

It is still exhibiting the same behavior.

@enternoescape commented on GitHub (Dec 16, 2016): It is still exhibiting the same behavior.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#136