Is there a method by which I can get an exact representation of command line arguments passed by Popen as seen by the called program? The argument error I receive shows me an argument that looks exactly like the argument that I use with Bash (it should - I copied and pasted it) - but the Bash version works while the Python version doesn't.
The purpose is to capture http streaming video to a file and also split it out to a local port so that I can pop in and monitor where I am in the stream. Here is my Bash call to vlc (it works): 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}"}' & Here is my Python call to vlc (error response to follow): vlcExec = sp.Popen(['vlc', 'http://' + ip + ':' + port, '-I dummy', '--sout \'#duplicate{dst="transcode{vb=400}:std{access=file,mux=avi,dst=outFile + '.avi}",dst="std{access=http,mux=mpjpeg,dst=127.0.0.1:11300}"}\'']) (That is not an escaped double quote at the end - that is " \' " and " ' "). Here is the resulting error from vlc: vlc: unknown option or missing mandatory argument `--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}"}'' _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor