PDA

View Full Version : Recording RTMP Webcams from cam4(HowTo record XXX/adult web-cam videos from cam4.com)


wazo
07-12-2008, 01:07 AM
Ill put as much information as I think is necessary and will skip the long story of how I figured this out. More to the story though: where there’s a will, there’s a way: Don’t give up!

What is cam4.com (www.cam4.com) & why does there have to be a whole topic on it?
cam4 is a free adult webcam site that, as many other live cam sites, common methods of download will not work for it. It uses the RTMP protocol and a flash player. After searching the web I found no solutions to the problem, and this site has other solutions so I thought I’d just add one more for everyone to enjoy.

Ok, What programs don’t work when recording adult videos from cam4 web-cams?
Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) (Actually this does work, but it will stop downloading prematurely after around 30 seconds, give or take 29 seconds.)
FLV Recorder (http://all-streaming-media.com/record-video-stream/FLV-Recorder-flash-video-stream-recording-software.htm) (Does download, but the saved information is unplayable under any player)
VLC player (http://all-streaming-media.com/record-video-stream/record-streaming-video-windows-media-and-real-video.htm#VLC) (This one was just out on a limb, and it doesn’t not work (under current nightly beta builds (http://nightlies.videolan.org/) as of 7/12/08)
A few other unheard of programs, I don’t even remember the names.

What CAN record adult videos from cam4.com?
Only Orbit (http://all-streaming-media.com/record-video-stream/Download-manager-Orbit-Downloader-Record-HTTP-MMS-RTSP-RTMP-media-streams-Freeware.htm)(which happens to be FREE) will work with proper use and tweakage. So finally....

How do you download live webcam video from Cam4 using freeware Orbit Downloader?!
Step 1: Find the stream you want and open it in a supported browser.
Step 2: Open Orbit (http://all-streaming-media.com/record-video-stream/Download-manager-Orbit-Downloader-Record-HTTP-MMS-RTSP-RTMP-media-streams-Freeware.htm)
Step 3: Start Grab++
Step 4: Refresh the page
Step 5: The stream will now show in Grab, so check the "Cam?*****.flv" stream and hit download.
Step 6: Download for 10-20seconds
Step 7: HIT PAUSE! It will prompt you that you can not resume, click ok and have the download stopped completely. This step IS THE FIX. YOU MUST DO IT.
Step 7 1/2: Go ahead and view the file in Media Player Classic (K Lite Codex). It will say it can’t render the video. (Once in a blue moon it will play) Don’t rename the .flv.ob! file, just force it to open.

Step 8: Resume the download. (This will over write the file and start a new, working download).
Step 9: Without stopping the download you can play the .ob! file with no problems. When the stream quits and/or your done watching it, pause it again and delete it from Orbit ONLY and DON’T REMOVE THE FILE. It will NEVER say its done, you just have to manually stop it, it will still work.

Hope this helped anyone with problems. It MAY work on other websites too, try it out, it wont kill you to try.

A note on audio: Audio problems vary from player to player. Flash Video Player can play the audio, but you cant skip around in the recording. Media Player Classic cant play audio, but you can skip around in the recording. VLC can play audio, but cant play video, and you can skip around in the recording. You have to give a little to get a little in this area, if/when i find a fix, ill let you know.

Note: if I find something else really fixed this, an easier/faster way, or something else ill update. Please leave a comment if this helped you out on any other sites, or just a thank you is well appricated. Also feel free to PM me.

Stream Ripper
07-12-2008, 10:48 PM
Thanks for the tutorial :-) :

I'd also like to add that Screen Capture Software (http://all-streaming-media.com/record-video-from-screen/) programs do work on Cam4 as well...

I just tested Replay Screencast (http://all-streaming-media.com/record-video-stream/Replay-Screencast-one-click-screen-capturing-software.htm) AND WM Capture (http://all-streaming-media.com/record-video-from-screen/WM-Capture-screen-video-capture-software-that-records-with-high-quality.htm) now on cam4 and it worked fine, keep in mind though in the playback you want to keep the window the same size as the cam window, as increasing the size will cause the playback video to get blury.

wazo
07-13-2008, 03:14 PM
Thanks for the tutorial :-) :
I'd also like to add that Screen Capture Software (http://all-streaming-media.com/record-video-from-screen/) programs do work on Cam4 as well...

Did you mean screen? Thats what you linked to.
I actuly started with CamStudio, but quickly got fed up opening other programs or having chat programs pop up in my recordings so I wanted a better way to record. (I was thinking of putting in a back story about how I figured this out and why I wanted to do it, but figured people didn't care about the story as much as they would want the fix.)
Thanks for pointing that out, I forgot to mention that that works aswell.

Stream Ripper
07-14-2008, 09:46 AM
Did you mean screen? Thats what you linked to.
I actuly started with CamStudio, but quickly got fed up opening other programs or having chat programs pop up in my recordings so I wanted a better way to record. (I was thinking of putting in a back story about how I figured this out and why I wanted to do it, but figured people didn't care about the story as much as they would want the fix.)
Thanks for pointing that out, I forgot to mention that that works aswell.

Ah yes I did, typo, and i fixed the link. thank you. :-)

Stream Recorder
07-29-2008, 12:47 AM
Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) 3.0 can perfectly record rtmp flash videos from cam4.
Tutorial: How to record/capture/download/rip/save adult/sex/porn webcam videos from cam4 with Replay Media Catcher (http://all-streaming-media.com/download-porn-videos/record_2_www.cam4.com-How-to-record-adult-sex-porn-webcam-videos-from-cam4.htm)

JiJi
08-05-2008, 02:22 AM
ACK! Is there a way to force Orbit Downloader (http://all-streaming-media.com/record-video-stream/Download-manager-Orbit-Downloader-Record-HTTP-MMS-RTSP-RTMP-media-streams-Freeware.htm) to end / "complete" a stream?

I didn't do the trick for a stream I'm recording that ended just now, and the temp file won't play. I really don't want to lose this one. :(

Or is there a way to add info to the file to have it be recognized as an FLV?

wazo
08-06-2008, 04:42 PM
First off, if you want to force it to end you can hit "Delete" and unclick "Delete actual file" (or something like that) and the file will remain with the temp ending. Rename the file .flv for ease of use and then it will open.
However, if you forgot to use the "trick" then its less of a problem of not having ended, but the stream (as far as the program is concerned) never began. There seems to be a beginning bit that is missed when you cut into the stream (I think it has to do more with their security features than anything after looking through the code).
As far as I know it is theoretically possible to open the file and add that missing beginning code that is needed to play, but I have yet to get down and dirty with that idea. Perhaps I can look at that soon and see if there is a way to "recover" a bad recording.
My sugestion, keep it to see if somebody comes up with a solution in the next few weeks. When I get the chance I can start messing around with "bad" files and see what I can find out.

JiJi
08-07-2008, 07:33 PM
That would be awesome if you could, wazo.

I totally forgot to do the "trick". I didn't realize I hadn't until the session was almost over. *sigh* I have the file tucked away, tho.

I'm no techie, but as far as I know, Windows can't recognize the file as anything specific. Did some Google-ing and came across hex editing. Cross-referencing with working FLV's, I noticed the Orbit temp file was scrambled at the beginning compared to the FLV's. I edited a copy of the temp file a little so as to match what was similar across all other FLV's I had, and now I think it's recognized as an FLV file. Tho, when I tried to run it through virtualdub, vd said it had no video stream. haha *sigh* That's as far as I can go with that.

wazo
08-08-2008, 07:19 PM
JiJi, you are on the right track with hex editing. I don't know about using virtualdub though, I use media player classic myself, it works like a charm.

I went to edit my original post but I guess I can't anymore. Here is an update. The latest beta Klite Codec with media player classic can play the .flv files and audio perfectly. So thats no longer an issue.

Ok. After some testing and research here is how to fix files that won’t play using the method above. (IE, you goofed and forgot to pause it).
Here are the basics you should know: You must modify the beginning of the file, to do this you must use a hex editor. (I recommend Hexplorer, its free. Quick hint for that, you change the font size in View -> Options.) If you want a file that plays like any other, you WILL need some work, if you just want it and don’t mind messing around, then its easier. Here is the basic template of the beginning of any cam4 recorded file:


46 4C 56 01 XX 00 00 00 09 00 00 00 00 09 YY YY
YY 00 00 00 00 00 00 00 12 00 00 87 26 83 26 26


First, replace XX with 01 if your video has no audio. Replace it with 05 if you have audio.
Now for the more complicated part, you must determine the size of the body (the first one only). To do this you must compare the placement of two identical parts, for this we will use ’12 00 00’ as it is in all the bodies. Replace the first two lines with what you have so far, replace the Ys with 0s as a holder. Now press Ctrl + F to open the find dialog and type in ’120000’ into the Hex field. Click on Find All. Don’t be overwhelmed by the results, you only need 2. Click the box with a yellow background and black lines on it. Select “Hexadecimal”. Now double click on the first result. You will get a number in the second column (Before Position) (Ex. 181). Open calculator (or a hex calculator). Select Scientific mode and press F5 (or click “Hex”). Now type in the number you determined and subtract F. This is your body size. Now put this as your Ys but pad it with 0s to fill in the FRONT.
Here is an example. I got 181, subtract F is 172. So that will be 00 01 72. Understand?

My final ended up looking like this:

46 4C 56 01 05 00 00 00 09 00 00 00 00 09 00 01
72 00 00 00 00 00 00 00 12 00 00 87 26 83 26 26


- Save as a .flv file and enjoy.

I have been doing things like this for years, so I find it simple, but beginners may not. Let me know if I need to clean up any parts of the tutorial. For more information on Flash Video headers you can read here: http://osflash.org/flv. I do not feel like repeating all their information (when 99.9% of users wont care anyhow.)

-Wazo

JiJi
08-10-2008, 05:36 PM
Hrmm... I seem to be stuck, I think.

When I double click on the first result (after selecting Hexadecimal) in the navigator, I get a 0. Something tells me that's bad. Did I mess up somewhere?

A screencap:
http://img300.imageshack.us/img300/9314/hex120000ht1.png

-----

I use ffdshow (tryouts) in combo with WMP (convenient brightness and contrast settings) for FLV playback. The latest builds of ffdshow can now decode nellymoser too!

As for virtualdub, there's a plug-in for the latest build that allows vdub to read and edit FLV videos. WMV files as well. :D

wazo
08-11-2008, 05:02 PM
Allright, sorry I guess I explained that wrong. (Thanks for the screen cap). The number your looking for is 1D7E, the result below the first one.

JiJi
08-12-2008, 02:06 AM
I LOVE YOU, wazo!

wazo
08-14-2008, 02:32 AM
Glad I could help.

Peabody
09-15-2008, 11:47 PM
I've been using a variant of Wazo's Method to record Cam4.com, and want to offer information on that.

I think I use Orbit the same way Wazo does. I start the cam, then start Orbit, turn on Browser Monitoring and Grab++ under Tools, then refresh the cam. When the .flv file comes up in Grab++, check that box and hit Download. Then back on the main Orbit window, hit Pause, select Stop the Recording in the box that comes up, then hit Start again. When you are finished recording, hit Pause in Orbit, shut down Grab++, stop Browser Monitoring, delete the FLV file *in Orbit only* but Do Not delete the real file.

Bring up the FLV file in your favorite hex editor, and change the fifth byte of the file from 01 to 05 if this recording contains audio, and save the resulting file as an FLV. (Actually, the final files play the audio anyway without doing this, but it does comply with the spec, so I do it.) Might be nice to have a script or little program that changes the fifth byte of a file to 05, so hex-phobic folks wouldn't have to deal with that.

Then run the whole file through flvtool++, which is a variant of flvtool. The ++ version inserts metadata, makes the file playable, and if you are using it to cut a clip out, it will resequence that clip, thus eliminating the timestamp problems and the Duration changes.

http://rcdn.org:8080/index.php/Flvtool++

flvtool++ <input file> <output file> (<start time> <end time>)

The resulting files play in the latest Real Player, and in Any FLV Player, both video and audio, and are seekable. But audio doesn't work in VLC Player, at least not in the version I have. I don't know about other players.

Generally, the use of flvtool++ seems to work a lot better. I should say, however, that if Cam4 is really bogged down, so that you get long periods of freezing, you may not get a useable recording. There may be a limit on how screwed up the timestamps can get and still recover from it.

Thanks very much to Wazo for figuring all this out, and to the others who contributed to the thread. Hope this new info is useful.

Peabody
10-16-2008, 09:44 AM
When I upgraded from Orbit v2.7.5 to 2.7.7, I lost the ability to capture flv files. Grab++ no longer detects them. Maybe I had something set wrong, but others in their forum seemed to have the same problem. So I went back to 2.7.5.

JiJi
10-16-2008, 08:30 PM
When I upgraded from Orbit v2.7.5 to 2.7.7, I lost the ability to capture flv files. Grab++ no longer detects them. Maybe I had something set wrong, but others in their forum seemed to have the same problem. So I went back to 2.7.5.

Ugh. I thought it was only me. This happened to me as well.

BTW. Check your PM's, Peabody.

Xenicide
11-12-2008, 10:17 AM
Sorry to bring this up again put i got some questions.

The link to flvtool++ doesnt work, but i found one in another place.
But all i got was some files, and you had to have 2 other programs.
One of thoose in turn required another thing called phyton.
Is it suppose to work that way?

In the hex editor i change the fifth byte (04) to 05 on all files, sound or not. Some plays and some dont.

The program i use is Real Player since its the only one i can seek.
But during some (mostly the long ones) it often after a while jump forward. Is that something that flvtool++ fixes?

Something that might matter is that i only let the stream start downloading (after restarting it), and then close the window.
Does it mather if the window is open once you get the stream in grab?
And if i restart the capture it can take a while before downloading, sometimes it wont even start even if the stream is there,
any reason for this?

Btw i got v2.7.6 and it woks.
(But maybe not as it should.)


Lots of questions but i hope i get some answers on some of them.
Thanks.

Peabody
11-14-2008, 10:02 AM
Sorry to bring this up again put i got some questions.

The link to flvtool++ doesnt work, but i found one in another place.
But all i got was some files, and you had to have 2 other programs.
One of thoose in turn required another thing called phyton.
Is it suppose to work that way?

In the hex editor i change the fifth byte (04) to 05 on all files, sound or not. Some plays and some dont.

The program i use is Real Player since its the only one i can seek.
But during some (mostly the long ones) it often after a while jump forward. Is that something that flvtool++ fixes?

Something that might matter is that i only let the stream start downloading (after restarting it), and then close the window.
Does it mather if the window is open once you get the stream in grab?
And if i restart the capture it can take a while before downloading, sometimes it wont even start even if the stream is there,
any reason for this?

Btw i got v2.7.6 and it woks.
(But maybe not as it should.)


Lots of questions but i hope i get some answers on some of them.
Thanks.

You may have ended up with the source code files. The executable is just 68k, and doesn't require other files. This link seems to work now:

http://rcdn.org:8080/images/3/34/Flvtool%2B%2B.zip

In my experience, the jumping forward seems to be a result of the freezing and dropouts you get in the stream from cam4. It is NOT fixed by flvtool++. When the cam4 servers are overloaded, and don't give you a continuous stream, the timestamps in the recorded flv file no longer make any sense to the player. Particularly if video and audio dropouts are independent, as they often are.

What we need is something that will fill in the missing packets with something that has continuous timestamps.

I haven't found a solution to this problem, and as as result I've reverted to using Cam Studio, a free screen capture program. Which, unfortunately, comes with its own sync problems.

I don't know about closing the window. I never tried that.

I also sometimes had the problem with the capture not starting even though the window is up and running. If you are right about being able to close the window, then it looks like Orbit is making a separate duplicate connection to the server to do the capture. And in that case, for some reason it just can't get in again. So, what you are watching is not really what's being captured.

gwenstefni
11-28-2008, 11:56 AM
Flash Media Server is a hub , Flash based applications connect to the hub using Real Time Messaging Protocol RTMP. The server can send and receive data to and from the connected users. Connected clients can make [Remote procedure call s RP on the server-side and the server can call methods on specific clients. A SharedObject can be used to synchronize complicated data structures and call remote methods on multiple clients in one go by having clients subscribe to a shared object. Standard ActionScript objects are transported across the NetConnection using the Action Message Format AMF which is handled transparently by the server and flash client.The server also allows users to receive and publish net streams. When viewing a net stream the user can either create their own to view a remotely stored Flash Video FLV or the server can instantiate a net stream and play a video on it, the latter method means that every user will be at the same point in the video when they subscribe to it as they are all viewing the same stream.
-------------
Gwenstefni

Edited by Mod: No Ads in your posts please. Thank you.

Stream Recorder
03-20-2009, 12:01 AM
The tricks mentioned here are really nice and might help to solve problems with other web-sites. However newer versions of RTMP Flash stream recorders (http://all-streaming-media.com/record-video-stream/record-streaming-video-Adobe-Flash-FLV-videos.htm) have better support of cam4.com. For example, Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) can perfectly record RTMP web-cams from cam4:
Tutorial: How to record adult/sex/porn webcam videos from cam4 with Replay Media Catcher (http://all-streaming-media.com/download-porn-videos/record_2_www.cam4.com-How-to-record-adult-sex-porn-webcam-videos-from-cam4.htm)

chyuzh
03-27-2009, 01:27 AM
i used Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-HTTP-RTMP-FLV-MP3-ripper-recorder.htm) before.
Sometimes when u record the stream from cam4, u will find some videos have no right duration after finished. For example, the timestamp maybe start with no 0:0:0 instead 00: 04:01 or any other.

Now i find a wonderful tool: E.M. Youtube Video Download tool (http://all-streaming-media.com/record-video-stream/EM-Youtube-Video-Download-Tool.htm).
It works great, too. also it can fix the timestamp. and with the right duration.

hope this can help:) :) :)

obsessed
11-12-2009, 04:42 AM
It doesnt work for many web-sites :mad: . Try Jaksta (http://all-streaming-media.com/record-video-stream/Jaksta-Streaming-Media%20Recorder-and-Converter.htm) (Don't forget to use it in the recording mode).

CraigStuffs
01-04-2010, 10:18 PM
So I downloaded a video off of cam4.com and didnt pause and do all of that since normally it was working for me even if I didn't do that... but this time it didnt! So... I opened the file up in hex and inserted this string: 46 4C 56 01 01 00 00 00 09 00 00 00 00 09 00 00 02 00 00 00 00 00 00 01 52 00 00 00 00 0D 09 00 12 12 00 00 00 00 00 00 01 12 00 00 87

It works fine other than the fact there is no sound, and the progress bar doesnt show up right away (it does after you click on pause and play and click the bar though)

Can anyone shed some light on what the next hex strings mean since this I pasted is common to all but the following bits differ...

Thanks in advance! :D

Stream Recorder
01-05-2010, 12:27 AM
So I downloaded a video off of cam4.com and didnt pause and do all of that since normally it was working for me even if I didn't do that... but this time it didnt! So... I opened the file up in hex and inserted this string: 46 4C 56 01 01 00 00 00 09 00 00 00 00 09 00 00 02 00 00 00 00 00 00 01 52 00 00 00 00 0D 09 00 12 12 00 00 00 00 00 00 01 12 00 00 87

It works fine other than the fact there is no sound, and the progress bar doesnt show up right away (it does after you click on pause and play and click the bar though)

Can anyone shed some light on what the next hex strings mean since this I pasted is common to all but the following bits differ...
What program did you use to record from cam4?

I don't have any details about the FLV format, but you can try the following:
Repairing FLV files by remuxing them with freeware FLV Extract and mp4box