On Sat, Aug 25, 2012 at 11:02 PM, eryksun <eryk...@gmail.com> wrote: > > import subprocess > > ip = "192.168.0.2" > port = "1234" > > out_file = "testing.avi" > out_ip = "127.0.0.1" > out_port = "11300" > dst_file = '"transcode{vb=400}:std{access=file,mux=avi,dst=%s}"' % out_file > dst_http = '"std{access=http,mux=mpjpeg,dst=%s:%s}"' % (out_ip, out_port) > sout = "'#duplicate{dst=%s,dst=%s}'" % (dst_file, dst_http) >
If that doesn't work, vlc might not like the extra quotes around sout. Try it without them: sout = "#duplicate{dst=%s,dst=%s}" % (dst_file, dst_http) _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor