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

RTMPE streams at YouTube - Dr Who

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

Ed999 02-27-2011 01:15 AM

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.

Ed999 03-12-2011 02:05 PM

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.

Lilarcor 03-12-2011 02:44 PM

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.

Stream Recorder 03-13-2011 05:04 PM

Re: RTMPE streams at YouTube - Dr Who


 
Quote:

Originally Posted by Lilarcor (Post 26111)
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?

Stream Recorder 03-13-2011 05:18 PM

Re: RTMPE streams at YouTube - Dr Who


 
Quote:

Originally Posted by Ed999 (Post 26109)
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\

Ed999 03-21-2011 07:57 AM

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.

Stream Recorder 03-21-2011 11:15 AM

Re: RTMPE streams at YouTube - Dr Who


 
Quote:

Originally Posted by Ed999 (Post 26344)
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 (Post 26344)
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.

IKnowNothing 04-03-2011 10:43 AM

Re: RTMPE streams at YouTube - Dr Who


 
Quote:

Originally Posted by Ed999 (Post 25673)
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?

placebo 04-03-2011 11:40 AM

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).

IKnowNothing 04-03-2011 01:36 PM

Re: RTMPE streams at YouTube - Dr Who


 
Quote:

Originally Posted by placebo (Post 26879)
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?


All times are GMT -6. The time now is 04:31 AM.