Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
RTMPE streams at YouTube - Dr WhoYouTube 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. |
#2
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr WhoNote 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. |
#3
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr WhoQuote:
Also it would make sense to use %WINDIR% instead of C:\Windows\ |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr WhoQuote:
Quote:
|
#6
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr WhoI can't understand why the hassle. To see anything decent you have to go private. or just watch the bs. To go private you have to have coins. I'm not getting the whole picture. Are you saying that that program will pick up all kind of streams? Even the private ones?
|
#7
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr WhoQuote:
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? |
#8
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr Whomaybe 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. |
#9
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr WhoQuote:
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? |
#10
|
|||
|
|||
Re: RTMPE streams at YouTube - Dr WhoQuote:
1) Won't work with 99.99% of YouTube vids. This tutorial is only for those which use RTMPE streaming, which is almost none, but Lionsgate films for example will stream some of their movies via RTMPE. Hence why the command prompt window doesn't get populated by anything. 2) This method no longer works anyway. Flash 10 handshakes (rtmpe handshake 9) are now required for YouTube. I'm patiently waiting. |
Tags: capture, dowloader, download, record, recorder, rtmpe, save, secure rtmp, stream, streaming, video, you tube, youtube |
Thread Tools | |
Display Modes | |
|
|