View Single Post
  #1  
Old 02-27-2011, 01: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 03:49 AM.
Reply With Quote