Skip to content

Commit

Permalink
Merge pull request andreafabrizi#8 from burlito/rtmpdump-outname
Browse files Browse the repository at this point in the history
rtmpdump will automaticli determine output file name
  • Loading branch information
andreafabrizi committed Jan 16, 2014
2 parents 38cff8e + 46e20ed commit 9ede67a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lib/amfCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,19 @@ def printRTMPDump(self):

if self.RTMP["flashVer"]:
line += "-f '%s' " % self.RTMP["flashVer"]

if self.RTMP["extra"]:
if self.RTMP["extra"]:
line += "-C %s " % self.RTMP["extra"]

line += "--live -o stream.flv"

line += "--live -o "
if self.RTMP["playPath"]:
filename = os.path.basename(self.RTMP["playPath"])
if filename:
line += filename
else:
line += "stream.flv"
else:
line += "stream.flv"

print line
self.printBar()

0 comments on commit 9ede67a

Please sign in to comment.