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 02-27-2011, 02:15 AM
Ed999 Ed999 is offline
Senior Member
 
Join Date: Feb 2009
Posts: 115
Ed999 is on a distinguished road
Default

RTMPE streams at YouTube - Dr Who


YouTube RTMPE files


Use RTMPsrv.exe v2.3 and RTMPdump.exe v2.3 -

http://rtmpdump.mplayerhq.hu/download/


Note: This solution is for Windows XP/Vista/7 only, because it requires the Windows versions of RTMPsrv.exe v2.3 and RTMPdump.exe v2.3. Those versions only work on Windows XP or later.



Step #1 - Run a .bat file (STEP1.BAT) containing the following -


rem *** Safety checks ***

IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS ATTRIB -R -S -H C:\Windows\System32\drivers\etc\*.*
IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS DEL C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS REN C:\Windows\System32\drivers\etc\NOHOSTS HOSTS
IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS GOTO END

IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX ATTRIB -R -S -H C:\Windows\System32\drivers\etc\*.*
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX DEL C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX REN C:\Windows\System32\drivers\etc\HOSTS_XX HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX GOTO END


rem *** Edit the HOSTS file ***

rem Replace line 1 with this:
rem 127.0.0.1 cp59009.edgefcs.net

ATTRIB -R -S -H C:\Windows\System32\drivers\etc\HOSTS
REN C:\Windows\System32\drivers\etc\HOSTS HOSTS_XX
echo 127.0.0.1 cp59009.edgefcs.net> C:\Windows\System32\drivers\etc\HOSTS
ATTRIB +R +S +H C:\Windows\System32\drivers\etc\HOSTS


rem *** Start RTMPSRV ***

rem Start RTMPSRV.EXE and pipe the URLs it displays to a .BAT file
rem to be used with RTMPDUMP.EXE to download the file

rtmpsrv > RTMPdump_run.bat


:END



Step #2 - Start playing the YouTube page in Internet Explorer -


Example URL (including the &fmt=18 option):

http://www.youtube.com/watch?v=4x0f0iuNwBg&fmt=18



Step #3 - Run a .bat file (STEP3.BAT) containing the following -


rem *** Wait 8 Seconds ***
@CHOICE /T 8 /C yn /D y > NUL


rem *** Edit the HOSTS file ***
rem Restore the normal line 1:
rem 127.0.0.1 localhost

ATTRIB -R -S -H C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX DEL C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX REN C:\Windows\System32\drivers\etc\HOSTS_XX HOSTS
ATTRIB +R +H C:\Windows\System32\drivers\etc\HOSTS


rem *** Run RTMPDUMP v2.3 to download the FLV file ***
CALL RTMPdump_run.bat


rem *** Rename the downloaded file ***
IF EXIST 34.* REN 34.* 34.flv



Example of successful command -

A command must be input as a single line

rtmpdump.exe -r "rtmpe://cp59009.edgefcs.net/youtube?auth=daEb.aabUdHc6bUc0cGbrcqdXcPaFb4d8dQ-bnr.Wh-eS-JxDDJnqd&aifp=YT2008121701&slist=c6/id/afafcc0e1fdc39e5/itag/34" -a "youtube?auth=daEb.aabUdHc6bUc0cGbrcqdXcPaFb4d 8dQ-bnr.Wh-eS-JxDDJnqd&aifp=YT2008121701&slist=c6/id/afafcc0e1fdc39e5/itag/34" -f "WIN 10,1,53,64" -W "http://s.ytimg.com/yt/swfbin/watch_as3-vflYyTcR7.swf" -p "http://www.youtube.com/watch?v=r6_MDh_cOeU&fmt=18" -y "c6/id/afafcc0e1fdc39e5/itag/34" -o output.flv

A command will lose validity after about 2 hours, because the auth= authentication string has an encoded timelimit in it.

Last edited by Ed999 : 02-27-2011 at 04:49 AM.
Reply With Quote
  #2  
Old 03-12-2011, 03:05 PM
Ed999 Ed999 is offline
Senior Member
 
Join Date: Feb 2009
Posts: 115
Ed999 is on a distinguished road
Default

Re: RTMPE streams at YouTube - Dr Who


Note that my above solution is designed for Windows 7.

You might need to make some changes to the batch files in order to use them with Windows XP, e.g. in the path to the HOSTS file. I don't use XP so I can't tell you what path it uses for its HOSTS file.
Reply With Quote
  #3  
Old 03-12-2011, 03:44 PM
Lilarcor Lilarcor is offline
Junior Member
 
Join Date: Mar 2011
Posts: 2
Lilarcor is on a distinguished road
Default

Re: RTMPE streams at YouTube - Dr Who


Thank you for your support, unfortunately I have yet tried Replay Media Catcher which didn't worked correctly and that's why i was looking at rtmpdump.

@Ed999 I have the last (2.3) release of rtmp dump on window 7 pro 64 bits with Microsoft's .NET framework 4 installed, enough ram and an adequate processor. I though with rtmp dump explorer, it would be easier and unnecessary to run a complicated command. Indeed I understood that rtmpsrv would display directly the command line i needed to run then with rtmpdump.exe.

I'll try your .bat command and keep you informed but i have to specify i would like to record live stream... so how will i be able to start/stop recording whenever i want?
... Moreover is it neccesary to change [127.0.0.1 cp59009.edgefcs.net] by an other address (i don't know how to find) since it's a ustream broadcast?

At the present time i use a try version of Microsoft Expression Encoder 4 Screen Capture, it's quite efficient but i think the video could be more accurate or fluent with a "direct" recording.
Reply With Quote
  #4  
Old 03-13-2011, 06:04 PM
Stream Recorder
 
Posts: n/a
Default

Re: RTMPE streams at YouTube - Dr Who


Quote:
Originally Posted by Lilarcor View Post
Thank you for your support, unfortunately I have yet tried Replay Media Catcher which didn't worked correctly and that's why i was looking at rtmpdump.
What web-page were you trying to record from? What kind of error did you get?
Reply With Quote
  #5  
Old 03-13-2011, 06:18 PM
Stream Recorder
 
Posts: n/a
Default

Re: RTMPE streams at YouTube - Dr Who


Quote:
Originally Posted by Ed999 View Post
Note that my above solution is designed for Windows 7.

You might need to make some changes to the batch files in order to use them with Windows XP, e.g. in the path to the HOSTS file. I don't use XP so I can't tell you what path it uses for its HOSTS file.
The HOSTS file is in the same folder in Windows XP.

Also it would make sense to use %WINDIR% instead of C:\Windows\
Reply With Quote
  #6  
Old 03-21-2011, 08:57 AM
Ed999 Ed999 is offline
Senior Member
 
Join Date: Feb 2009
Posts: 115
Ed999 is on a distinguished road
Default

Re: RTMPE streams at YouTube - Dr Who


@Lilarcor -

Yes, the one piece of information you do need is the server's address, also known as the Host address. But this is usually fairly easy to find, by looking at the HTML source for the internet page which plays the media file that you are interested in.

Alternately, you can usually find it by running 'sniffer' software such as one of the programs URL Snooper (a.k.a. Project URL Snooper) or WinPcap or Wireshark, that capture the packets passing through your internet connection - which you can then examine for the telltale rtmpe:// string.


To tell rtmpdump that a stream is a live stream, you normally have to add the extra
switch -live to the rtmpdump command line.

To stop recording a stream, simply close the Command window (a.k.a. "DOS Box") in which rtmpdump is running! Or simultaneously press the keyboard keys CTRL and BREAK.


But, certainly, if you want an easy life, rtmp streams on many websites can be captured using GUI front-ends for rtmpdump -

http://stream-recorder.com/forum/showthread.php?t=3724

I was just trying to demonstrate how to use rtmpdump on websites where the usual GUI front-end programs don't work.
Reply With Quote
  #7  
Old 03-21-2011, 12:15 PM
Stream Recorder
 
Posts: n/a
Default

Re: RTMPE streams at YouTube - Dr Who


Quote:
Originally Posted by Ed999 View Post
Alternately, you can usually find it by running 'sniffer' software such as one of the programs URL Snooper (a.k.a. Project URL Snooper) or WinPcap or Wireshark, that capture the packets passing through your internet connection - which you can then examine for the telltale rtmpe:// string.[/url]
I recommend to use CooJah instead. Not only it is the easiest way to find RTMPE parameters in Windows, but also it allows to download RTMPE streams with Blader.

Quote:
Originally Posted by Ed999 View Post
But, certainly, if you want an easy life, rtmp streams on many websites can be captured using GUI front-ends for rtmpdump
Command line front-ends like get-flash-videos can also help.
Reply With Quote
  #8  
Old 04-03-2011, 11:43 AM
IKnowNothing IKnowNothing is offline
Junior Member
 
Join Date: Mar 2011
Posts: 11
IKnowNothing is on a distinguished road
Default

Re: RTMPE streams at YouTube - Dr Who


Quote:
Originally Posted by Ed999 View Post
YouTube RTMPE files


Use RTMPsrv.exe v2.3 and RTMPdump.exe v2.3 -

http://rtmpdump.mplayerhq.hu/download/


Note: This solution is for Windows XP/Vista/7 only, because it requires the Windows versions of RTMPsrv.exe v2.3 and RTMPdump.exe v2.3. Those versions only work on Windows XP or later.



Step #1 - Run a .bat file (STEP1.BAT) containing the following -


rem *** Safety checks ***

IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS ATTRIB -R -S -H C:\Windows\System32\drivers\etc\*.*
IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS DEL C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS REN C:\Windows\System32\drivers\etc\NOHOSTS HOSTS
IF EXIST C:\Windows\System32\drivers\etc\NOHOSTS GOTO END

IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX ATTRIB -R -S -H C:\Windows\System32\drivers\etc\*.*
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX DEL C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX REN C:\Windows\System32\drivers\etc\HOSTS_XX HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX GOTO END


rem *** Edit the HOSTS file ***

rem Replace line 1 with this:
rem 127.0.0.1 cp59009.edgefcs.net

ATTRIB -R -S -H C:\Windows\System32\drivers\etc\HOSTS
REN C:\Windows\System32\drivers\etc\HOSTS HOSTS_XX
echo 127.0.0.1 cp59009.edgefcs.net> C:\Windows\System32\drivers\etc\HOSTS
ATTRIB +R +S +H C:\Windows\System32\drivers\etc\HOSTS


rem *** Start RTMPSRV ***

rem Start RTMPSRV.EXE and pipe the URLs it displays to a .BAT file
rem to be used with RTMPDUMP.EXE to download the file

rtmpsrv > RTMPdump_run.bat


:END



Step #2 - Start playing the YouTube page in Internet Explorer -


Example URL (including the &fmt=18 option):

http://www.youtube.com/watch?v=4x0f0iuNwBg&fmt=18



Step #3 - Run a .bat file (STEP3.BAT) containing the following -


rem *** Wait 8 Seconds ***
@CHOICE /T 8 /C yn /D y > NUL


rem *** Edit the HOSTS file ***
rem Restore the normal line 1:
rem 127.0.0.1 localhost

ATTRIB -R -S -H C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX DEL C:\Windows\System32\drivers\etc\HOSTS
IF EXIST C:\Windows\System32\drivers\etc\HOSTS_XX REN C:\Windows\System32\drivers\etc\HOSTS_XX HOSTS
ATTRIB +R +H C:\Windows\System32\drivers\etc\HOSTS


rem *** Run RTMPDUMP v2.3 to download the FLV file ***
CALL RTMPdump_run.bat


rem *** Rename the downloaded file ***
IF EXIST 34.* REN 34.* 34.flv



Example of successful command -

A command must be input as a single line

rtmpdump.exe -r "rtmpe://cp59009.edgefcs.net/youtube?auth=daEb.aabUdHc6bUc0cGbrcqdXcPaFb4d8dQ-bnr.Wh-eS-JxDDJnqd&aifp=YT2008121701&slist=c6/id/afafcc0e1fdc39e5/itag/34" -a "youtube?auth=daEb.aabUdHc6bUc0cGbrcqdXcPaFb4d 8dQ-bnr.Wh-eS-JxDDJnqd&aifp=YT2008121701&slist=c6/id/afafcc0e1fdc39e5/itag/34" -f "WIN 10,1,53,64" -W "http://s.ytimg.com/yt/swfbin/watch_as3-vflYyTcR7.swf" -p "http://www.youtube.com/watch?v=r6_MDh_cOeU&fmt=18" -y "c6/id/afafcc0e1fdc39e5/itag/34" -o output.flv

A command will lose validity after about 2 hours, because the auth= authentication string has an encoded timelimit in it.
I've been playing with these scripts on Windows XP (yes I changed c:\windows to %WinDir%) but put simply

IT DOES NOT WORK

Step 1 fails to populate anything in the RTMPdump_run.bat file even when I manually set up the Hosts file. I know channel 4 is a pig but it even failed with Youtube.

Can someone give an idiot a hand?
I'm using Windows XP and Internet Explorer

So far all I'm doing is running step1.bat in a command window then running IE and playing the video right through. Then when the video finishes I close IE and use Control C to end the step1 batch file.

What am I doing wrong?
Reply With Quote
  #9  
Old 04-03-2011, 12:40 PM
placebo placebo is offline
Moderator - exTerminator
 
Join Date: Aug 2010
Posts: 477
placebo is on a distinguished road
Default

Re: RTMPE streams at YouTube - Dr Who


maybe someone can post valid youtube rtmpe url's.
i cant watch any of the suggested url's. ("The uploader has not made this video available in your country.", and other similar error messages)

you can download youtube videos with DownloadHelper (firefox plugin).

Last edited by placebo : 04-04-2011 at 05:46 AM.
Reply With Quote
  #10  
Old 04-03-2011, 02:36 PM
IKnowNothing IKnowNothing is offline
Junior Member
 
Join Date: Mar 2011
Posts: 11
IKnowNothing is on a distinguished road
Default

Re: RTMPE streams at YouTube - Dr Who


Quote:
Originally Posted by placebo View Post
maybe someone can post valid youtube url's.
i cant watch any of the suggested url's. ("The uploader has not made this video available in your country.", and other similar error messages)

you can download youtube videos with DownloadHelper (firefox plugin).
Me being stupid again - I should have said I'm trying to use rtmpsrv to get the rtmpdump command for ripping Channel 4.

I picked a youtube video at random to check I'd set everything up right and it still didn't work.

I know GetFLV works with Channel 4 (even the demo version) but I think I can't justify the cost when there are free utils that do the job just as well.

Does anyone know of a step by step guide to use rtmpsrv and rtmpdump that actually works?
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 12:45 AM.


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