1.1 --- a/gmyth-stream/server/tests/client_ffmpeg.py Wed Apr 04 16:12:16 2007 +0100
1.2 +++ b/gmyth-stream/server/tests/client_ffmpeg.py Wed Apr 04 16:33:09 2007 +0100
1.3 @@ -24,24 +24,24 @@
1.4 sys.exit(-1)
1.5
1.6
1.7 -#mplayer = os.popen("which mplayer").read().strip()
1.8 -#mplayer += " - 1> /dev/null"
1.9 -#pin, pout = os.popen2(mplayer)
1.10 +mplayer = os.popen("which mplayer").read().strip()
1.11 +mplayer += " - 1> /dev/null"
1.12 +pin, pout = os.popen2(mplayer)
1.13
1.14 -teste = open("/tmp/teste2", "w")
1.15 +#teste = open("/tmp/teste2", "w")
1.16
1.17 data = socket.recv(1024)
1.18 i = 0
1.19
1.20 while (data != ""):
1.21 - #pin.write(data)
1.22 - teste.write(data)
1.23 + pin.write(data)
1.24 + #teste.write(data)
1.25 data = socket.recv(1024)
1.26 if (i == 500):
1.27 socket.send("OK")
1.28 i += 1
1.29
1.30 -#pin.close()
1.31 +pin.close()
1.32 socket.close()
1.33
1.34