implementing swf verification
Posted: Thu Aug 30, 2012 1:40 pm
So the Wiki on Servio Plugins says "Some rtmp streams require swf verification (not implementing that usually means the stream is cut after a period of time, like 1 minute)"
And that is the stage I am at with my plugin development. I have my feeds all stopping after 2 mins or so.
Now with rtmpdump I can download the whole video
Even though rtmpdump reports "ERROR: RTMP_HashSWF: couldn't contact swfurl 1 (HTTP error -1)" it downloads the whole video.
The URL my plugin constructs is of the form shown below
That form of the URL works with ffmpeg -i to get the metadata. But if I use it to try and download the video as shown below it works for a bit and stops - just like the stream does on my console with my plugin.
So I figure I need to add some of the other parameters that my RTMP dump command uses.
If I try the swfhash option ffmpeg reports "Unknown option swfhash"
If I try the swfVfy=1 option ffmpeg reports "HandleCtrl: Ignoring SWFVerification request, use --swfVfy!"
If I try --swfVfy it also reports "HandleCtrl: Ignoring SWFVerification request, use --swfVfy!"
if I try swfVfy=true it also reports "HandleCtrl: Ignoring SWFVerification request, use --swfVfy!"
So how does one go about implementing this swf verification?
My feed items do require an auth string which you need to get each time. It gets supplied as the ?auth=<authstring> part of the URL. But my plug in does this. Is this what is meant by swf verification?
Help - I am so close to a working plugin I can smell it
And that is the stage I am at with my plugin development. I have my feeds all stopping after 2 mins or so.
Now with rtmpdump I can download the whole video
- Code:
rtmpdump --rtmp rtmp://cp53909.edgefcs.net:1935 --app 'ondemand?auth=daEdSaLdkajbJavaLdodNbZcPaAaebPdabB-bqp17M-8-nks_rEAoK&aifp=v001' --playpath mp4:flash/playback/_definst_/catalyst_13_15.mp4 --swfUrl http://www.abc.net.au/iview/images/iview.jpg --swfVfy 1 --swfsize 2122 --swfhash 96cc76f1d5385fb5cda6e2ce5c73323a399043d0bb6c687edd807e5c73c42b37 -o /home/god/Videos/catalyst2.mp4
Even though rtmpdump reports "ERROR: RTMP_HashSWF: couldn't contact swfurl 1 (HTTP error -1)" it downloads the whole video.
The URL my plugin constructs is of the form shown below
That form of the URL works with ffmpeg -i to get the metadata. But if I use it to try and download the video as shown below it works for a bit and stops - just like the stream does on my console with my plugin.
So I figure I need to add some of the other parameters that my RTMP dump command uses.
If I try the swfhash option ffmpeg reports "Unknown option swfhash"
If I try the swfVfy=1 option ffmpeg reports "HandleCtrl: Ignoring SWFVerification request, use --swfVfy!"
If I try --swfVfy it also reports "HandleCtrl: Ignoring SWFVerification request, use --swfVfy!"
if I try swfVfy=true it also reports "HandleCtrl: Ignoring SWFVerification request, use --swfVfy!"
So how does one go about implementing this swf verification?
My feed items do require an auth string which you need to get each time. It gets supplied as the ?auth=<authstring> part of the URL. But my plug in does this. Is this what is meant by swf verification?
Help - I am so close to a working plugin I can smell it