Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8627
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Trying to chain processes together on a pipeline |
| Followup-To | comp.lang.python |
| Date | 2011-07-01 09:26 +0200 |
| Organization | None |
| Message-ID | <iujsrg$qe3$1@solani.org> (permalink) |
| References | <4E096D3B.3080300@gmail.com> <iubshf$dus$1@dough.gmane.org> <mailman.532.1309484420.1164.python-list@python.org> |
Followups directed to: comp.lang.python
Andrew Berg wrote: > Okay, so I've refactored those except WindowsError blocks into calls to > a function and fixed the os.devnull bug, but I still can't get the > triple chain working. I added calls to ffmpeg_proc.stdout.close() and > sox_proc.stdout.close(), but I really am not sure where to put them. The > following code works if SoX isn't part of the chain (that is, if vol == > 1), but not otherwise (the Nero encoder says "truncation error" after it > finishes; the same error I get if omit the close() calls): I can't reproduce your setup, but I'd try using communicate() instead of wait() and close().
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Trying to chain processes together on a pipeline Andrew Berg <bahamutzero8825@gmail.com> - 2011-06-30 20:40 -0500
Re: Trying to chain processes together on a pipeline Peter Otten <__peter__@web.de> - 2011-07-01 09:26 +0200
Re: Trying to chain processes together on a pipeline Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-01 03:02 -0500
Re: Trying to chain processes together on a pipeline Chris Rebert <clp2@rebertia.com> - 2011-07-01 01:24 -0700
csiph-web