devangbhagdev / rtmplite

Automatically exported from code.google.com/p/rtmplite
0 stars 0 forks source link

append mode, file not exists #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
How to fix (rtmp.py):
add -> or os.path.getsize(path) == 0

if type == 'record' or os.path.getsize(path) == 0:
                self.fp.write('FLV\x01\x05\x00\x00\x00\x09\x00\x00\x00\x00') # the header and first previousTagSize
                self.writeDuration(0.0)

Original issue reported on code.google.com by ize...@gmail.com on 11 Nov 2011 at 9:02