diff -r 000000000000 -r f4c6061f6f39 gmyth-stream/tests/client_ffmpeg.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth-stream/tests/client_ffmpeg.py Wed Mar 28 21:26:42 2007 +0100 @@ -0,0 +1,24 @@ +import os +import time +import socket + +HOST='localhost' +PORT=5000 + +s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) +s.settimeout(10) + +arq = open('/tmp/dvb.mpg','r') + +mplayer = os.popen("which mplayer").read().strip() +mplayer += " -noidx -" +pin, pout = os.popen2(mplayer) + +s.connect((HOST,PORT)) +i = 0 + +data = s.recv(1024) +while (data != ""): + pin.write(data) + data = s.recv(1024) +