Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
[TUTORIAL] how to simply use rtmpsrv and exampleNow, I'm not a pro on this, I'll try it with an example, and try to start with the basics in case you're not familiar with urlsnooper and rtmpdump.
Apparently you must have downloaded and installed/extracted both softwares. On a side note, I have to mention that with the most recent version of rtmpdump this is not working for me, as it tells me there is file missing. So in my example I am using a version prior to 2.2, I use 2.1c. Say, you're a friend of the "daily show with Jon Stewart" and you would like to download it from comedy central. >Open Urlsnooper > choose the tab "search" >choose "sniff network" > protocol filter "multimedia files" >load the website, make sure you have an empty cache private browsing in Firefox mode is pretty convenient for this. http://www.thedailyshow.com/full-epi...-david-remnick In case the video isn't online anymore at some point just choose another daily show episode, it should work as well too. now the website is loading and if you followed the above steps urlsnooper should be catching a lot of adresses now. This is a quick process. Just go to “file” and choose “save All Urls to a file”, you will need several urls later on. Look for the host. The host address is the crucial part when you use rtmpsrv.exe, it can’t work without the host address. In this case that is cp9950.edgefcs.net. You have to copy this line from one of the urls you just copied to a text file. Keep in mind this is the host of comedy central, other networks have other hosts of course. They do look somewhat similar. Now you have to open a file that is on your computer, it is part of your windows system. It's a ansi-file, that consists of a readme text and one commandline : 127.0.0.1 localhost In most cases you will be able to open this file by applying the run command: %SystemRoot%\system32\drivers\etc\hosts Make sure to save copy of the original hosts-file before you go on! After getting the .bat file that you want use with rtmpdump.exe you must change the hosts file to its original state! Now that you have opened the hosts-file that's part of your system, exchange the command localhost with (in this case) cp9950.edgefcs.net It will now look like this: 127.0.0.1 cp9950.edgefcs.net >Save the file. Before you can go to the final step of rtmpsrv.exe you should do one thing for your own convinience: Make a .bat file for when you want to use rtmpsrv.exe. It’s simple. >Open the editor >paste rtmpsrv >rtmpdump.txt >save it as rtmpsrv.bat in the same folder where your rtmpsrv.exe is. Now when you want to start rtmpsrv you don’t click on rtmpsrv.exe but on rtmpsrv.bat instead. Now when you start rtmpsrv.bat rtmpsrv.exe will start and it will create a new txt-file in the folder and write your desired command. You can then just rename this txt.file as xyz.bat. >Start rtmpsrv.bat >Reload the website of the video If you've done everything right, the video will not start now, but instead the commandline of rtmpsrv.exe will give you the exact command that can be used to download the video with rtmpdump.exe. A new txt file should have been created that consists of the command that can be used with rtmpdump.exe to download the video. Just rename this file as mentioned aboved to xyz.bat (<example). Then change the hosts-file to its original state : 127.0.0.1 localhost Now, the video in my example consits of several parts, several qualities and there is a trailer in advance. If you choose a video that only consists of one part and one quality you can skip this step and continue at Finally:. If your video as in this case has severaly options however follow this: If you just started the download now by starting xyz.bat you would only be downloading the part of the video that starts at the very beginning which is only a trailer. The solution to this problem is simple. In the command rtmpsrv.exe gave you it says: Go back to the urls that you copied drom Urlsnooper and have a look at the rtmpe-files. You will see 4 different a ”acts” (=parts) in different qualties. Choose the 4 parts you want in the particular quality you want. You dont need the whole line from rtmpe... but instead cut out the part from mtvorigin up to .mp4 Paste this line where the wrong video address is, keep the mp4: part in the beginning. For each part you need the same line of command, that rtmpsrv gave you. It just gave you the wrong video, just exchange this video with the parts you want: It will look like this: rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "WIN 10,0,45,2" -W "http://media.mtvnservices.com/player/release/?v=4.2.2" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.thedailyshow.com/full-episodes/mon-april-5-2010-reza-aslan" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/dailyshow/TDS/season_15/episode_043/ds_15043_act2_768x432_1720.mp4" -o output.flv Before it looked like this, I highlighted the difference: rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "WIN 10,0,45,2" -W "http://media.mtvnservices.com/player/release/?v=4.2.2" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.thedailyshow.com/full-episodes/mon-april-5-2010-reza-aslan" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/fulleppromos/sp_200th_640x480_600.mp4" -o output.flv Remember, you have to make this change for all 4 parts of the video to download the whole episode, so basically you write a little script. rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "WIN 10,0,45,2" -W "http://media.mtvnservices.com/player/release/?v=4.2.2" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.thedailyshow.com/full-episodes/mon-april-5-2010-reza-aslan" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/dailyshow/TDS/season_15/episode_043/ds_15043_act1_768x432_1720.mp4" -o output.flv rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "WIN 10,0,45,2" -W "http://media.mtvnservices.com/player/release/?v=4.2.2" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.thedailyshow.com/full-episodes/mon-april-5-2010-reza-aslan" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/dailyshow/TDS/season_15/episode_043/ds_15043_act2_768x432_1720.mp4" -o output.flv rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "WIN 10,0,45,2" -W "http://media.mtvnservices.com/player/release/?v=4.2.2" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.thedailyshow.com/full-episodes/mon-april-5-2010-reza-aslan" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/dailyshow/TDS/season_15/episode_043/ds_15043_act3_768x432_1720.mp4" -o output.flv rtmpdump -r "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -a "ondemand?ovpfv=1.1" -f "WIN 10,0,45,2" -W "http://media.mtvnservices.com/player/release/?v=4.2.2" -t "rtmpe://cp9950.edgefcs.net:1935/ondemand?ovpfv=1.1" -p "http://www.thedailyshow.com/full-episodes/mon-april-5-2010-reza-aslan" -C Z: -y "mp4:mtvnorigin/gsp.comedystor/com/dailyshow/TDS/season_15/episode_043/ds_15043_act4_768x432_1720.mp4" -o output.flv Now save this file as xyz.bat and save it in the same folder as your rtmpdump.exe is. Finally: Start xyz.bat and your download will start. Let me know if you find any mistakes, as I said, I aint a pro, and it’s pretty early in the morning (CET ). Regards hobo P.S. For the daily show you could also use a basic script that you can easily adapt. See http://stream-recorder.com/forum/tut...8141#post18141 |
#2
|
|||
|
|||
How to use rtmpsrv to download from the BBC iPlayerThese instructions enable you to find the URL address of an RTMP
stream, i.e. the real address of a BBC iPlayer radio or tv show, using a program called RTMPSRV.EXE, and you then use that address with the main program (RTMPDUMP.EXE) to download that show - 1. Use Get_iPlayer to download the RTMP stream info for the BBC radio or tv show which you want to record: insert the 8-digit PID (Programme ID) number from the URL address of the iPlayer page for that show, in place of the 8 zero's in this command - perl get_iplayer.pl --type=radio --streaminfo PID:00000000 > BBC.txt 2. All you need from the text file which the previous step creates is the HOST address, but that step is unnecessary 99% of the time because for the BBC iPlayer the host address is normally this: bbcmedia.fcod.llnwd.net 3. Edit your computer's HOSTS file, as follows: (a) Go to START > RUN and type this in the box, then click OK: C:\WINDOWS\COMMAND\ATTRIB.EXE -R -S -H C:\WINDOWS\HOSTS (b) Go to START > RUN and type this in the box, then click OK: EDIT C:\WINDOWS\HOSTS (c) Disable the line in the HOSTS file that reads "127.0.0.1 localhost" by putting a # at the start of that line (d) Type in the following line, immediately underneath that line: 127.0.0.1 bbcmedia.fcod.llnwd.net (e) Save the changes: File > Save NB: When it's all over, put your HOSTS file back to normal by reversing all these changes. 4. Download the program RTMPDUMP version 2.2d from this link: http://rtmpdump.mplayerhq.hu/downloa...2d-windows.zip The .zip file includes RTMPSRV.exe as well as RTMPDUMP.exe, so run RTMPSRV.exe (by double-clicking it). 5. Open the iPlayer page that plays the radio or tv show you want to download, and start it playing. This is an example of the page URL address (you must substitute the show's 8-digit PID number for the 8 zero's in this example) - http://www.bbc.co.uk/iplayer/console/00000000 6. Now look at the window in which RTMPSRV is running. It will start displaying the true RTMP address of the tv or radio show that the iPlayer is trying to play in the other window. Command Format: rtmpdump -r "rtmp://[server]:[port]/[application]?[authString]" -a "[application]?[authString]" -f "[Flash Version]" -W "[swfUrl]" -p "[iPlayer page URL]" -y "[mp4: to .mp4 playpath]" -o file.flv Command Example: rtmpdump -r "rtmp://bbcmedia.fcod.llnwd.net:1935/a1414/e3?as=adobe -hmac-sha256&av=1&te=connect&mp=bbc7/secure_auth/RBN2_bbc_-_thursd ay_1930_b00sg0w7_2010_05_20_19_26_38.mp4&et=127493 4408&fmta-token =2b4b12633bfd205b3d7f3060c0f827c37ae18080883697444 853b3c7866b40ee" -a "a1414/e3?as=adobe-hmac-sha256&av=1&te=connect&mp=bbc7/secure_ auth/RBN2_bbc_-_thursday_1930_b00sg0w7_2010_05_20_19_26_38.mp4&et = 1274934408&fmta-token=2b4b12633bfd205b3d7f3060c0f827c37ae18080883 697444853b3c7866b40ee" -f "WIN 9,0,260,0" -W "http://www.bbc.co.uk /emp/9player.swf?revision=18182_20020" -p "http://www.bbc.co.uk/ iplayer/console/b00sg1gl" -y "mp4:bbc7/secure_auth/RBN2_bbc7_-_th ursday_1930_b00sg0w7_2010_05_20_19_26_38.mp4" -o filename.flv 7. Write a batch (.BAT) file called RTMP_SRV.BAT to run RTMPSRV.EXE and pipe its output into a second .BAT file, one that can be used then to actually download the iPlayer show - This is the content of RTMP_SRV.BAT:- rtmpsrv > rtmpdump_run.bat If you run RTMPSRV.EXE by double-clicking on the batch file RTMP_SRV.BAT, it will save all its output into RTMPDUMP_run.bat - but remember: it is saving the URL address of the iPlayer show, not the actual show itself! Note: You can NOT run RTMPDUMP_run.bat to download the iPlayer show until you have re-edited your HOSTS file back to its original state (or you'll get an error message). Note: There will be many copies of the download command saved into the batch file RTMPDUMP_run.bat so you must delete all except one! Otherwise the batch file will keep deleting (i.e. overwriting) the download every time it completes! 8. Finally, you must change the file extension of the downloaded file from .MP4 to .FLV because it is really a Flash FLV file! A Flash audio or video file will play in GOM Player or in Applian FLV Player . There are tools to extract the MP4 file from inside the FLV wrapper, if you want to do that (e.g. FFMPEG.EXE). |
#3
|
|||
|
|||
Re: [TUTORIAL] how to simply use rtmpsrv and exampleAddendum - RTMPdump v2.1d is the final version that can run in Windows 98 / 98SE / ME.
Subsequent versions of RTMPdump (including RTMPdump v2.2d) only run under Windows XP. (If you are running Windows XP, you'll need to get RTMPdump v2.2d or later). |
#5
|
|||
|
|||
Re: [TUTORIAL] how to simply use rtmpsrv and exampleQuote:
Firstly, let me make it clear that I don't use Windows XP and that, accordingly, it is entirely possible that RTMPDUMP v2.1d (and earlier versions) may be able to run on WinXP. However, on trying out RTMPDUMP v2.2d in Windows 98 I got the error message that usually indicates the presence of an XP-only program. Secondly, on trying out RTMPDUMP v2.1d in Windows 98 I encountered no problems. I am still running it successfully on Windows 98SE. After a number of months of using v2.1d, and having been told (can't remember where!) that v2.1d is the last version which will run on Win98 (and believing that development of RTMPDUMP had been discontinued in favour of FLVSTREAMER, so my informant may have been Phil Lewis) I happened by chance across RTMPDUMP v2.2d. On trying that out in Win98SE, I got this error message - Fault in MSVCRT.DLL In Windows 98, that .dll file is a Windows system file. In earlier versions of RTMPDUMP I notice that .dll files were added to some distributions. This was successful in providing functions that Windows 98 does not have. And every time RTMPDUMP needed an extra .dll file, Windows displayed a notice announcing that, and saying which file was missing. But this time, for the first time, I met a fault in a Windows system file, not a simple "missing dll" notice. Why this behaviour is occuring is a mystery to me. But I notice that the filesize of v2.1d is 495KB, whereas the size of v2.2d is 387KB. Evidently a lot of changes have occured between v2.1d and v2.2d. I was unable to locate any intermediate versions to test. I am, however, sure that my informant specifically said that it was v2.1d which was the final Windows 98 version. Strangely, although RTMPdump v2.2d would not run under Windows 98, the accompanying program RTMPSRV v2.2d did run (when used with RTMPDUMP v2.1d). All my tests were carried out on the BBC's flash iPlayer (using the "listen again" podcasts of radio shows, not the live streams). |
#6
|
|||
|
|||
Re: [TUTORIAL] how to simply use rtmpsrv and exampleThe hard drive in my last Win98 machine died a couple months ago, and I don't feel like installing it again. Certainly it's not worth putting a new IDE drive in such an old machine, or trying to find media to install from, or a license key... So unless someone else feels like investigating, that's that. How anyone can manage to run a 12 year old Windows OS on the internet today is amazing in itself, given the number of viruses that would descend on the box within seconds of it going online.
|
#7
|
|||
|
|||
Re: [TUTORIAL] how to simply use rtmpsrv and exampleQuote:
That's quite all right, I was only making a note for the convenience of other users running Win9x as to what's the latest version which will run on this O/S. This is simply a standard service that Win98 users provide for each other. The O/S is more popular than perhaps your message implies. It runs extremely fast on a modern processor (at least twice as fast as Vista!). And because NT software can't run on it, it's quite immune to viruses designed for WinXP. There are, of course, such things as Windows 98 firewalls, too. I at least am very grateful for the fact that all versions up to 2.1d already run on Win98. Win98SE is increasing its user-base again, since the release of a Microsoft program called Microsoft Virtual PC 2007 which enables Win9x to be run in a virtual machine. (But beware of "Windows Virtual PC" in Windows 7, which is not the same thing at all!) All I can say is, if anyone on the rtmpdump development team is running Microsoft Virtual PC 2007 (a free download from Microsoft) and cares to do so, it's possible to test RTMPDUMP on Win98 on an XP/Vista system. I don't think there are any FAT32 / NTFS compatibility issues in doing so. Win98 uses an MS development called Microsoft Layer for Unicode (a dll file called UNICOWS.DLL) which provides unicode support in Win98. It just requires the dll to be in the same folder as rtmpdump.exe in order to work. RTMPDUMP v2.1d doesn't require it. But it could be relied on, like any other system file, by any current build of rtmpdump, and would make the program execute in Win98 without the hassle of removing any unicode. I'm told that the MSLU loader has a very simple method for loading unicows.dll: it makes a single call to LoadLibraryA. It does so without any path, so that if you happen to load it first in your code the loader will pick up the one selected. As I say, this dll is presumed to be always in the rtmpdump folder. I realise there are other issues to consider, but unicode support at least need not be one of them. No offense intended. I just wanted to point out that, due to these recent developments, Win98 support is not quite completely impossible. |
#8
|
|||
|
|||
Re: [TUTORIAL] how to simply use rtmpsrv and exampleI don't know what errors you ran into. I just installed a fresh Win98SE in a virtualbox and rtmpdump-2.2e runs perfectly fine there. Though I have to wonder what use it is, without installing a ton of updates that Microsoft no longer distributes, just to get a new enough browser and flash client, let alone media players and codecs...
|
#9
|
|||
|
|||
Re: [TUTORIAL] how to simply use rtmpsrv and exampleAs I mentioned above, Windows 98SE throws up the error "Fault in MSVCRT.DLL". I'm glad to learn your virtual installation didn't produce that error: unfortunately I'm not running a virtual installation.
I'm now told that a later version of rtmpdump (i.e. later than v2.1d) might run on Win98, with the kernel extender (KernelEx) installed, although I haven't yet been able to test this myself. But you're under estimating Win98SE. All the updates Microsoft ever issued are available at Code:
http://www.mdgx.com/spx/98alive.htm Code:
http://kb2.adobe.com/cps/406/kb406791.html |
#10
|
|||
|
|||
Re: [TUTORIAL] how to simply use rtmpsrv and exampleThis is the best thread here on the forum for using rtmpdump (=using rtmpsrv!!). A similar thread is here:
http://stream-recorder.com/forum/the...p-t4622p2.html I am a Windows user. For Linux users, here's another nice tutorial, quite similar: http://constcuriosity.blogspot.com/2...-rtmpdump.html Let's be clear, parts of the tutorial are outdated because rtmpdump has evolved (now at Version 2.3). But knowing how it worked in earlier versions (2.2, 2.1,etc.) helped me understand how to use the current version 2.3. Actually very simple to use. And you dont need any sniffer, right? rtmpsrv does the sniffing for you and it does the command creation for you. Then you re-edit the hosts file back to the original state before you copy paste the ready (full) command line etc lala. my god. downloading protected RTMP (RTMPE, RTMPS,etc.) streams has never been easier!! THANKS TO ALL. |
Tags: comedy central, download, rtmpsrv, tutorial |
Thread Tools | |
Display Modes | |
|
|