Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 09-25-2012, 05:40 PM
nwtim nwtim is offline
Member
 
Join Date: Aug 2012
Posts: 59
nwtim is on a distinguished road
Default

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!

Last edited by nwtim : 09-25-2012 at 05:54 PM. Reason: add subscribe
Reply With Quote
  #2  
Old 09-25-2012, 10:13 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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%)
Reply With Quote
  #3  
Old 09-26-2012, 03:02 AM
nwtim nwtim is offline
Member
 
Join Date: Aug 2012
Posts: 59
nwtim is on a distinguished road
Default

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!
Reply With Quote
  #4  
Old 09-26-2012, 03:41 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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%)
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:21 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons