pipe reading problems >> Contractor Reviews >> Forum
Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 12.07.2025 - 13:45:26
Pages:  1  

pipe reading problems

Advertising

/
MessageAuthor

I've been programming my own divx to dvd conversion tool: d2mp, (. This tool uses several other tools for the conversion process(quenc, avisynth, dgindex, besweet, ffmpeg, dvdauthor, mkisofs) When calling the command line tools, it will be helpfull to dump the stdout to a file and so constitue a detailed log for error handling. All my code is made in delphi, and tried several times to redirect the command line tools stdout to my own created pipes. When a command line tool ends I try to read the pipe that i've associated for the stdout, but my program hangs in readfile for the pipe. Any ideias? thank's d2mp

------------------------

moku

user




Statistics:
Messages: 250
Registration: 11.20.2002
14.11.21 - 07:22:31
Message # 1
RE: pipe reading problems

I failed to use Pipes with Delphi, so I create a file.cmd which has the pipe in it, then call the .cmd. It works #1.

------------------------
Not long now.......

DCR62

user




Statistics:
Messages: 308
Registration: 03.05.2003
14.11.21 - 07:28:14
Message # 2
RE: pipe reading problems

That seems interesting. Can you please elaborate ? How do you create a .CMD with the pipe in it ? thank's again d2mp

------------------------

///m42 sport

user




Statistics:
Messages: 641
Registration: 10.09.2003
14.11.21 - 07:36:12
Message # 3
RE: pipe reading problems

blabla.cmd: bepipeexe yyy

------------------------
Diver

219

user




Statistics:
Messages: 09.27.2002
Registration:
14.11.21 - 07:47:32
Message # 4
RE: pipe reading problems

Thank you. It is a good sugestion, but not yet what i'm looking. I need to dump the error log of ffmpeg and dvdauthor to a file. But finally I found it !!!!! So stupid, so easy, but found :confused: So, if someone else need it, here goes the solution: Of course that if I want to redirect output, i can use something like: ffmpeg command line > log.txt but since I want to dump errors, it is obvious that the above command will not put them in the log file, because errors are dumped in stderr (not stdout). So I also need to redirect stderr to stout (2>&1). The solution is: ffmpeg command line >log.txt 2>&1 thank's. (and I hope this servers to anyone else) Regards d2mp

------------------------
1985 635 CSi Euro - For Sale

jhfutch

user




Statistics:
Messages: 63
Registration: 04.06.2003
14.11.21 - 07:58:08
Message # 5
RE: pipe reading problems
Poetry anyone? : Previous topicNext topic: Steering wheel makes "spring" sound
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants