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

www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)

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

antihero 05-06-2017 02:21 AM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by horacio (Post 91456)
In my opinion, it would be necessary to analyze the python script ...

the python script gets the JSON model data directly from the websocket-server - thats the big different to all the other MFC recorders!

Code:

              server = 0
        print(" => Connecting to MFC Server <= ")
        print ""
        try:
                xchat = [ 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
                          20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
                          33, 34, 35, 36, 39, 40, 41, 42, 43, 44, 45, 46,
                          47, 48, 49, 56, 57, 58, 59, 60, 61
                        ]
                host = "ws://xchat"+str(random.choice(xchat)) + ".myfreecams.com:8080/fcsl"
                ws = create_connection(host)
                ws.send("hello fcserver\n\0")
                ws.send("1 0 0 20071025 0 guest:guest\n\0")
        except:
                print(colored(" => We're fucked <= ", 'yellow', 'on_red'))
                sys.exit()
        rembuf = ""
        quitting = 0
        while quitting == 0:
                sock_buf =  ws.recv()
                sock_buf = rembuf+sock_buf
                rembuf = ""
                while True:
                        hdr = re.search (r"(\w+) (\w+) (\w+) (\w+) (\w+)", sock_buf)
                        if bool(hdr) == 0:
                                break

                        fc = hdr.group(1)

                        mlen = int(fc[0:4])
                        fc_type = int(fc[4:])

                        msg = sock_buf[4:4+mlen]

                        if len(msg) < mlen:
                                rembuf = ''.join(sock_buf)
                                break

                        msg = urllib.unquote(msg)

                        if fc_type == 1:
                                ws.send("10 0 0 20 0 %s\n\0" % camgirl)
                        elif fc_type == 10:
                                read_model_data(msg)
                                quitting = 1

                        sock_buf = sock_buf[4+mlen:]

                        if len(sock_buf) == 0:
                                break
        ws.close()


horacio 05-06-2017 05:08 AM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by antihero (Post 91457)
the python script gets the JSON model data directly from the websocket-server - thats the big different to all the other MFC recorders!

Many thanks for your analysis @antihero. Can this method be applied to other similar recorders like yours camgirlzREC?

John1915 05-06-2017 08:17 AM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
I'm at home now and will start working on my little app. I'm gonna have a better look at the script posted to see if i can find a faster way for doing this.

Just to be clear:
I pulled ALL the data I could find because I thought that's what mfmax and horacio were looking for. I personally made my own "mfc recorder" last week, but because it was supposed to run 24/7 on a NAS, there was no need for a gui and pulling anything aside from name, uid, camserv and vs. If you only want data that's "relevant", I totally agree that my OnlineModels app is currently displaying way too much unnecessary stuff. I can change that easily, would just have to know what people would actually like to have it output and what could be discarded.

UPDATE:
I got this to "work", but am not very happy with the result, so I'll keep looking.
It has reduced the time per model to ~250ms from ~350ms. That's an improvement but still a far cry from refreshing within the matter of seconds.

John1915 05-06-2017 09:32 AM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by horacio (Post 91458)
Many thanks for your analysis @antihero. Can this method be applied to other similar recorders like yours camgirlzREC?

From what I could tell camgirlzREC also doesn't pull the additional data from each model, only the "original list", like OnlineModels-0.1 does.
I'm guessing that it would just take too long to get all the data, since nobody(?) has found a way yet to speed this process up fast enough. As i said before, it could be accomplished by using a cache and loading the additional info when the app is already running. It's just a question if it's even worth the effort, because most people won't use the recorder app to find new models anyways but rather browse the website and then add models by name or id, please correct me if I'm wrong, but at least that's how I would do it.

SoCalGuy82 05-06-2017 09:35 AM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by antihero (Post 91302)
camgirlzREC 1.1.1

changelog:
# when you close the app, all recordings will be stopped

downloads: (ffmpeg and ffmplay included)
win32: http://www28.zippyshare.com/v/U1GdElQ6/file.html
win64: http://www94.zippyshare.com/v/RxnrJ6nL/file.html

exe only: http://www25.zippyshare.com/v/AXE0J4Zy/file.html

Will you be releasing a version for Mac OS X?

antihero 05-06-2017 10:13 AM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by John1915 (Post 91466)
From what I could tell camgirlzREC also doesn't pull the additional data from each model, only the "original list", like OnlineModels-0.1 does.

I'm guessing that it would just take too long to get all the data, since nobody(?) has found a way yet to speed this process up fast enough.

Yes, I'm parsing the data from this url:
'http://www.myfreecams.com/php/FcwExtResp.php?' + fileno

I think there is also a fast way, to get the data from all models at once from the websockset server. But i don't know how to do it...

mfc-node 2.0 (https://github.com/sstativa/mfc-node/releases) parse the data of all models in about 2 sec.

Quote:

mfc-node
List of changes:

WebSocket was replaced by MFCAuto package (with a recent update on myfreecams servers, it is hard to get data such as age, city, country, etc. by using WebSocket connection, however MFCAuto knows how to retrieve this data)
MFCAuto: https://github.com/ZombieAlex/MFCAuto

John1915 05-06-2017 12:56 PM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by antihero (Post 91468)
mfc-node 2.0 (https://github.com/sstativa/mfc-node/releases) parse the data of all models in about 2 sec.

First of all, Thank You! for bringing this to my attention!
I downloaded and ran mfc-node but unfortunately, this is the result, that i got:



It seems like the latest MFC update did also affect this script.
For now, i will make the download of additional data optional via command line argument and handle it on a per model basis. IMHO the information you get from the standard query should be enough for 99% of use cases, and the people who NEED that extra data, should be okay with having to wait 5-10 minutes for it to be downloaded. (like I mentioned, caching this data and only pulling it for newly signed in models should give you refresh times of ~5 seconds while having this extra bit of information)

John1915 05-06-2017 04:57 PM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Here is version 0.2 of OnlineModels:

OnlineModels-0.2.4.exe
http://www76.zippyshare.com/v/h9kXsNwh/file.html
OnlineModels-0.2.4-source.zip
http://www76.zippyshare.com/v/Ej03YuG7/file.html

Changes:
- you can download additional data over the websocket query by starting "OnlineModels-0.2.4.exe all" (usually takes around 8 minutes)
- additional data is: msg, age, blurb, chat_bg, city, country, ethnic, occupation, kbit, lastnews, mg, missmfc
- starting the program without the "all" parameter will output a file similar to version 0.1
- there is some more useful output in the console (progress when downloading additional data; total time needed)
- some "under the hood" changes to make the code less shitty
- added some javadoc entries and comments to enhance readability

Plans for version 0.3:
- add txt output
- add functionality to select output data (e.g.: only output name, userid, topic and download url)

If you have any recommendations/bug reports/feature requests, feel free to contact me either via pm or by replying in this thread.

supersonic80 05-06-2017 05:25 PM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by John1915 (Post 91470)
First of all, Thank You! for bringing this to my attention!
I downloaded and ran mfc-node but unfortunately, this is the result, that i got:

There are two versions of the script, the "master" version was affected by recents changes, however "v2" version (can be found in releases) uses MFCAuto package which returns "extended" data.

I don't know to much about MFCAuto, but in my opinion it extract basic data then collect additional data by monitoring changes and adding them to the list of the models (but this is slow process).

horacio 05-06-2017 06:01 PM

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


 
Quote:

Originally Posted by John1915 (Post 91474)

Changes:
- you can download additional data over the websocket query by starting "OnlineModels-0.2.4.exe all" (usually takes around 8 minutes)
- additional data is: msg, age, blurb, chat_bg, city, country, ethnic, occupation, kbit, lastnews, mg, missmfc
- starting the program without the "all" parameter will output a file similar to version 0.1
- there is some more useful output in the console (progress when downloading additional data; total time needed)
- some "under the hood" changes to make the code less shitty
- added some javadoc entries and comments to enhance readability

Plans for version 0.3:
- add txt output
- add functionality to select output data (e.g.: only output name, userid, topic and download url)

If you have any recommendations/bug reports/feature requests, feel free to contact me either via pm or by replying in this thread.

OnlineModels-0.2.4.exe working fine. Now, I'm clear why we should wait about 8 minutes if they want to have all the data.
Many thanks for accepting my proposal about the file name. I'm very glad what you're planning for version 0.3 so for now I do not have any extra requirement.
In version 0.3, everyone can choose exactly the data they are interested in, even in plain text file, thats super!


All times are GMT -6. The time now is 10:58 AM.