When I try to run the rtmpclient.py file using this command:
python rtmpclient.py rtmp://dmgradio.cdn.on.net/20036/ newfile.flv -d
I get this error:
struct.error: unpack requires a string argument of length 9
I'm using Ubuntu 12.04 by the way.
Here is the debug output:
Traceback (most recent call last):
File "rtmpclient.py", line 405, in <module>
multitask.run()
File "/home/max/Downloads/rtmplite/multitask.py", line 1202, in run
get_default_task_manager().run()
File "/home/max/Downloads/rtmplite/multitask.py", line 897, in run
self.run_next()
File "/home/max/Downloads/rtmplite/multitask.py", line 962, in run_next
output = task.throw(*exc_info)
File "rtmpclient.py", line 309, in copy
s = yield open(src, 'r')
File "/home/max/Downloads/rtmplite/multitask.py", line 962, in run_next
output = task.throw(*exc_info)
File "/home/max/Downloads/rtmplite/multitask.py", line 185, in throw
return self.task.throw(type, value, traceback)
File "rtmpclient.py", line 304, in open
r = yield types[type + '-' + mode]().open(url=url)
File "/home/max/Downloads/rtmplite/multitask.py", line 964, in run_next
output = task.send(input)
File "/home/max/Downloads/rtmplite/multitask.py", line 182, in send
return self.task.send(value)
File "rtmpclient.py", line 259, in open
self.fp = FLV().open(u.path)
File "/home/max/Downloads/rtmplite/rtmp.py", line 671, in open
magic, version, flags, offset = struct.unpack('!3sBBI', self.fp.read(9))
struct.error: unpack requires a string argument of length 9
Original issue reported on code.google.com by cluckyfe...@gmail.com on 28 Sep 2013 at 5:00
Original issue reported on code.google.com by
cluckyfe...@gmail.com
on 28 Sep 2013 at 5:00