[Tutor] 2.7.3 Popen argument issues

eryksun eryksun at gmail.com
Sun Aug 26 16:12:28 CEST 2012


On Sun, Aug 26, 2012 at 7:55 AM, Ray Jones <crawlzone at 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}"}


More information about the Tutor mailing list