Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

How would you go about capturing these streams?

(http://stream-recorder.com/forum/showthread.php?t=13861)

nwtim 09-25-2012 04:40 PM

How would you go about capturing these streams?


 
I had great success capturing a lot of the .m3u8 streams from NBCOlympics.com using ffmpeg and it got me wanting to understand more about stream capturing so I could try it from other sites.

For example, if I wanted to capture the stream for one of the episodes of "The Next" on CW (eg. http://www.cwtv.com/cw-video/the-nex...-82b68242f053), how should I go about it? How do I decide on the best tool(s) to use and what are the types of URLs to look for when I don't see a recognizable (eg. .m3u8) extension in the URL? Using Firefox's web console and following the same masking technique I used to get NBCOlympics video URLs, I ended up with:

http://warnerbros.112.2o7.net/b/ss/wbrosthecw/0/FAS-2.8.1-AS3/s19248463488183?AQB=1&ndh=1&t=25/8/2012%2015%3A22%3A53%202%20420&ce=ISO-8859-1&ns=warnerbros&cdp=3&pageName=New%20York&g=http%3 A//www.cwtv.com/cw-video/the-next/new-york/%3Fplay%3D15dddd4c-63cb-4ddd-8361-82b68242f053&cc=USD&events=event1&v1=TheCW.us&v2=V ideo&v7=The%20Next&v8=New%20York&v20=Inline&pe=lnk _o&pev2=event1&s=1600x1200&AQE=1

but have no idea what to do with it if that is in fact what it should look like.

Can anyone provide some guidance?

Thanks!

svnpenn 09-25-2012 09:13 PM

Re: How would you go about capturing these streams?


 
Code:

$ rtmpdump -r "rtmpe://wbworldtv.fcod.llnwd.net/a2246/o23/" -a "a2246/o23/" -f
"WIN 11,3,300,257" -W "http://pdl.warnerbros.com/cwtv/digital-smiths/production
_player/vsplayer.swf" -p "http://www.cwtv.com/cw-video/the-next/" -y "mp4:cwtv/
videos/2012/09/20/NXT106-los-angeles_b3442ebff_500kbps.mp4" -o NXT106-los-angel
es_b3442ebff_500kbps.flv
RTMPDump v2.4-41-g7bae82a
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              2588.62
INFO:  moovPosition          191786766.00
INFO:  width                640.00
INFO:  height                352.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            100.00
INFO:  avclevel              32.00
INFO:  aacaot                2.00
INFO:  videoframerate        29.97
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO: tags:
INFO:  ┬⌐too                Lavf52.31.0
INFO: trackinfo:
INFO:  length                77658581.00
INFO:  timescale            30000.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                114157568.00
INFO:  timescale            44100.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            mp4a
1221.613 kB / 17.55 sec (0.6%)


nwtim 09-26-2012 02:02 AM

Re: How would you go about capturing these streams?


 
Well, that wasn't quite what I expected. I've seen mention of rtmpdump a number of times, but I never looked into it. It looks like the script has to use a number of switches, and I'm not real sure how to know what arguments to give each of them based on the URL's I'm getting in Firefox's Web Console.

It looks like to start with I need to filter for a URL string with "rtmpe://" or ".mp4" (either seems to return the same strings). I found strings for the arguments you used for the -r, -a, -w, -p, and -y switches, but I'm not certain where the argument for the -f switch came from. I'm guessing that'll become clearer once I find the program and install it.

When I have a few minutes to give this a try I'll post my progress.

Thanks for the help so far!

svnpenn 09-26-2012 02:41 AM

Re: How would you go about capturing these streams?


 
Many times the command can be simplified, for example

Code:

$ rtmpdump -r rtmpe://wbworldtv.fcod.llnwd.net/a2246/o23/cwtv/videos/2012/09/20
/NXT106-los-angeles_b3442ebff_500kbps.mp4 -o o.flv
RTMPDump v2.4-41-g7bae82a
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              2588.62
INFO:  moovPosition          191786766.00
INFO:  width                640.00
INFO:  height                352.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            100.00
INFO:  avclevel              32.00
INFO:  aacaot                2.00
INFO:  videoframerate        29.97
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO: tags:
INFO:  ┬⌐too                Lavf52.31.0
INFO: trackinfo:
INFO:  length                77658581.00
INFO:  timescale            30000.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                114157568.00
INFO:  timescale            44100.00
INFO:  language              eng
INFO: sampledescription:
INFO:  sampletype            mp4a
1753.099 kB / 25.76 sec (0.9%)



All times are GMT -6. The time now is 01:47 PM.