On 08/26/2012 07:12 AM, eryksun wrote: > On Sun, Aug 26, 2012 at 7:55 AM, Ray Jones <crawlz...@gmail.com> wrote: >> [0x8d42554] stream_out_standard stream out error: no mux specified or >> found by extension >> [0x8d42134] main stream output error: stream chain failed for >> `standard{mux="",access=""#duplicate{dst="transcode{vb=400}",dst="std{access=file,mux=avi,dst=testing.avi}",dst="std{access=http,mux=mpjpeg,dst=localhost:11300}"}""}' >> >> >> Notice the addition of `standard{mux="",access='' ' before the >> `#duplicate' . I think --sout adds a default combination if it doesn't >> find a proper argument. Unfortunately, I know a bit less about vlc >> command line arguments than I do about Python's generation of those >> arguments.... ;) > But the Bash call worked? > > cmd = 'vlc http://"HOST":PORT -I dummy --sout > \'#duplicate{dst="transcode{vb=400}:std{access=file,mux=avi,dst=testing.avi}",dst="std{access=http,mux=mpjpeg,dst=127.0.0.1:11300}"}\'' > > print '\n'.join(shlex.split(cmd)) # shlex.split parses like the shell > > Output: > > vlc > http://HOST:PORT > -I > dummy > --sout > #duplicate{dst="transcode{vb=400}:std{access=file,mux=avi,dst=testing.avi}",dst="std{access=http,mux=mpjpeg,dst=127.0.0.1:11300}"} Yes, the Bash call worked (in fact I tried it just prior to sending the original message just to be sure).
I guess I'm a bit confused about 'splitting' the arguments. You said that Python splits arguments on spaces. What exactly happens to the arguments if we split them up into individual strings separated by commas? _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor