Log in

View Full Version : trying to catch besweet's stdout


Doom9
28th February 2005, 22:46
attached are my sources for VS.NET 2003.

Compile, start, load an AC3 audio file, set audio output, go to audio tab and press Queue & Encode.. it encodes.. but the stdout is written to I don't know where even though it's being redirected (I can finally read from stdout once encoding is done.. not quite what I want).

Weird enough, it worked until I started adding line processing (now commented out again in AudioEncoder).

If you have any ideas, let me know.

Doom9
1st March 2005, 19:58
the weirdest thing just happened.. I went back to a barebone, VideoEncoder based AudioEncoder (basically stripping down everything before the stdout reading and replacing it with the appropriate parts ov VideoEncoder), and finally things work.

And here I thought stderr was for error messages, not status updates.

Can anyone confirm that besweet writes status updates to stderr rather than stdout?

vigilante
2nd March 2005, 01:19
I believe that is correct. I was doing something in java*cough* back around christmas and that stumped me for a bit. One neat thing was that I found out you could block its execution by not reading the data. I've been meaning to mod avs2avi a little and see if that would actually make a decent pause mechanism. I'm quite the novice though... and lazy.