View Single Post
  #4  
Old 03-02-2013, 12:52 AM
svnpenn2 svnpenn2 is offline
Banned
 
Join Date: Nov 2012
Location: Dallas
Posts: 55
svnpenn2 is on a distinguished road
Default

Re: Problem with rtmp


If you have sed, you can fix like this

Code:
#!/bin/sed -f

# quotes
s/\]*, /\\"&\\"/g
s/: \[*/\\"&\\"/g
s/{/&\\"/
s/}/\\"&/

# params
s/[^=]*=/rtmpdump -r /
s/playpath=/-y /
s/swfUrl=/-W /
s/live=1/-v/
s/pageUrl=/-p /
s/--jtv /&"/
s/$/" -o a.flv/
Reply With Quote