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)

Wacker66 04-19-2017 10:19 PM

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


 
Quote:

Originally Posted by antihero (Post 90999)
hi guys, I'm working on a java recording tool. :)

features:

+ capture in HD (800x600px)
+ filter model-list
+ cam preview
+ auto update model-list
+ record list (auto-record when model goes online)
+ ignore list (models are never recorded)
+ ffmpeg + ffplay
+ output shows full date
+ mac, win & unix support

Are guys you interested?

screenshot:

Looks awesome so far and yes very interested:)

snickerpop2 04-19-2017 11:00 PM

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


 
Quote:

Originally Posted by guestbuy (Post 91012)
I see there is a convert.js like chaturbate-node. Is there a good/automative tool to use to fix time stamps or a way to properly stop the capture so they are showing 24hr time stamps?

I am not a programmer but all the node based recording programs are surprisingly interchangeable.
You can use the convert.js program from chaturbate with all the capmyfreecam forks, not sure about MFC-Node. You will also need the batch convert javascript file. I did this because the one in the MFC recorders did not work for me.

The only changes require are changing the folders from chaturbate ones. Here is mine for references. Just make sure the names match with what folders the are being sent to once the capture is done. Not sure about the 24hr thing


+++++++++++++++++++++++++++++++++
srcDirectory: ./captured # directory where you store your .ts files
dstDirectory: ./captured/converted # directory where do you want to store your .mp4 files
dirScanInterval: 300 # in seconds, min: 5 seconds
deleteAfter: true # if it is false the original file will be stored in the same directory with its .mp4 version


I uploaded my own version of the modifications
https://github.com/forsomefun/CapMyFreeCamsNodeJS
just with everything put together

p.s
Not related to your question, but the main.js file that was update by sstavia seems to work with all the forks as well. Or the one I use. The only difference is that it updates the config file. So it is important to backup your models list. If you plan on going back.

antihero 04-20-2017 06:00 AM

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


 
Ok, I will release my recording tool in the next few days - I'm very
busy at the moment!
and to be honest, I'm not a professional java programmer, I'm doing this as a hobby in my spare time :)

if you have feature requests, post them here.

poose22 04-20-2017 07:04 AM

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


 
Quote:

Originally Posted by antihero (Post 91027)
Ok, I will release my recording tool in the next few days - I'm very
busy at the moment!
and to be honest, I'm not a professional java programmer, I'm doing this as a hobby in my spare time :)

if you have feature requests, post them here.

It is appreciated. Thanks.

Damianonymous 04-21-2017 04:14 PM

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


 
Fix myfreecams.py plugin in Streamlink:https://github.com/streamlink/streamlink

Code:

import json
import random
import re

from streamlink.plugin import Plugin
from streamlink.plugin.api import http
from streamlink.stream import HLSStream

try:
    from websocket import create_connection
    HAS_WEBSOCKET = True
except ImportError:
    HAS_WEBSOCKET = False

DATA_URL = "https://www.myfreecams.com/php/FcwExtResp.php?respkey={respkey}&type={type}&opts={opts}&serv={serv}"
HLS_VIDEO_URL = "http://video{0}.myfreecams.com:1935/NxServer/ngrp:mfc_{1}.f4v_mobile/playlist.m3u8"
WEBSOCKET_SERVERS = [7, 8, 9, 10, 11, 12, 20, 22, 23, 24, 25, 26, 27, 28, 29, 39]

_session_re = re.compile(r'''\04522opts\04522\:(?P<opts>\d+),\04522respkey\04522\:(?P<respkey>\d+),\04522serv\04522\:(?P<serv>\d+),\04522type\04522\:(?P<type>\d+)''')
_url_re = re.compile(r"https?\:\/\/(?:\w+\.)?myfreecams\.com\/(?:\#(?P<username>\w+)|id\=(?P<user_id>\d+))")
# USERNAME URL = https://www.myfreecams.com/#UserName
# CUSTOM ID URL = https://www.myfreecams.com/id=01234567


class MyFreeCams(Plugin):
    @classmethod
    def can_handle_url(cls, url):
        return _url_re.match(url)

    def _get_streams(self):
        match = _url_re.match(self.url)
        username = match.group("username")
        user_id = match.group("user_id")

        if not HAS_WEBSOCKET:
            self.logger.error("websocket-client is not installed")
            self.logger.info("You can install it with:")
            self.logger.info("pip install websocket-client")
            self.logger.info("https://pypi.python.org/pypi/websocket-client")
            return

        # https://www.myfreecams.com/_js/serverconfig.js
        xchat = "xchat{0}".format(random.choice(WEBSOCKET_SERVERS))
        ws_host = "wss://{0}.myfreecams.com/fcsl".format(xchat)
        ws = create_connection(ws_host)

        # https://www.myfreecams.com/js/wsgw.js
        # https://www.myfreecams.com/js/FCS.js
        send_msg_hello = "hello fcserver\n\0"
        # FCTYPE_LOGIN = 1
        send_msg_login = "1 0 0 20071025 0 guest:guest\n\0"
        send_msg_ping = "1 0 0 0 0\n\0"
        # FCTYPE_LOGOUT = 99
        send_msg_logout = "99 0 0 0 0"

        ws.send(send_msg_hello)
        ws.send(send_msg_login)

        loop_number = 0
        status_regex = False
        while status_regex is not True:
            if loop_number is 20:
                # quit script after 20 trys
                self.logger.error("Is your connection ok?")
                return

            # send message to the websocket server
            ws.send(send_msg_ping)
            data_ws = ws.recv()

            try:
                mfc_session = _session_re.search(data_ws)
                data_opts = mfc_session.group("opts")
                data_respkey = mfc_session.group("respkey")
                data_serv = mfc_session.group("serv")
                data_type = mfc_session.group("type")

                if mfc_session is not None:
                    status_regex = True
            except:
                loop_number += 1
                self.logger.debug("-- RESEND WEBSOCKET DATA -- {0} --".format(loop_number))

        ws.send(send_msg_logout)
        ws.close()

        if username:
            re_uid = r"\d+"
            re_username = username
        elif user_id:
            re_uid = int(user_id)
            re_username = r"\w+"

        # regex for http data
        _data_channel_re = re.compile(r'''
            \133(?:\s+)?(["'](?P<username>{0})["']\,?\d+,(?P<uid>{1})[^\135]+)\135
            '''.format(re_username, re_uid), re.VERBOSE | re.IGNORECASE)

        # get data from http server
        cookies = {"cid": "3149", "gw": "1"}
        res = http.get(DATA_URL.format(
            opts=data_opts,
            respkey=data_respkey,
            serv=data_serv,
            type=data_type
        ), cookies=cookies)

        data_channel = _data_channel_re.search(res.text)
        data_channel = data_channel.group(0)
        data_channel = json.loads(data_channel)

        # data_channel[0] "nm"
        # data_channel[1] "sid"
        # data_channel[2] "uid"
        # data_channel[3] "vs"
        # data_channel[4] "pid"
        # data_channel[5] "lv"
        # data_channel[6] "camserv"

        if not data_channel:
            # abort if the regex can't find the username
            self.logger.error("Stream is offline or username/user_id is invalid")
            return

        username = data_channel[0]
        uid = int(data_channel[2])
        uid_video = uid + 100000000
        vs = int(data_channel[3])
        camserver = int(data_channel[6])

        self.logger.info("USER ID: {0}".format(uid))
        self.logger.info("USERNAME: {0}".format(username))
        self.logger.debug("VIDEO STATUS: {0}".format(vs))

        if vs is 0:
            # FCVIDEO_TX_IDLE = 0
            if camserver >= 840:
                server = camserver - 500
            elif camserver < 839:
                server = 0

            if server:
                hls_url = HLS_VIDEO_URL.format(server, uid_video)

                self.logger.debug("HLS URL: {0}".format(hls_url))

                for s in HLSStream.parse_variant_playlist(self.session, hls_url).items():
                    yield s

__plugin__ = MyFreeCams

Keep in mind that it requires installation:https://pypi.python.org/pypi/websocket-client

Code:

pip install websocket-client
Works with the modified ihryjfbd .bat script:

Code:

@echo off
setlocal enableDelayedExpansion

set USERNAME=AnonymousUser
set PASSWORD=anonymous

set SECONDS=15

set /p model=Enter username:
set model=%model:https://myfreecams.com/=%
set model=#%model:/=%

set OUT_DIR=MyFreeCams\%model%

if not exist %OUT_DIR% (mkdir %OUT_DIR%)

for /L %%i in (1,1,99) do (
  set N=!time:~9,12!
  set /a N=10000!N! %% 10000
  set rand=!random!
  set /a rand=!rand!* 31/32768+1
  set /a rand=!N!+!rand!
  set /a rand=!rand!*31/131+1
)
set server=edge%rand%

:doCapture
for /r %%F in (*) do if %%~zF==0 @del "%%F"
set ts=%date:/=-%_%time::=-%
set ts=%ts: =%
set output=%OUT_DIR%\%model%_%ts%.ts
set PASSWORD=%PASSWORD:\u003D==%

color 2F && title %model% @ %time% - %server%
cls && echo Capturing: %model% @ %time% - %server% && echo.

streamlink "https://myfreecams.com/%model%/" best --http-header "swfUrl=http://www.myfreecams.com/flash/Video170322.swf" --http-header "flashVer=WIN 25.0.0.148" -o "%OUT_DIR%\%model%_%ts%.ts

for %%r in (%output%) do (
  if %%~zr lss 1 del %output%
  color 4F && title %model% - OFFLINE
)

set /a rand=%random%*31/32768+1
set server=edge%rand%

timeout %SECONDS%
goto doCapture


xxhieixx 04-21-2017 04:45 PM

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


 
Quote:

Originally Posted by antihero (Post 91027)
Ok, I will release my recording tool in the next few days - I'm very
busy at the moment!
and to be honest, I'm not a professional java programmer, I'm doing this as a hobby in my spare time :)

if you have feature requests, post them here.

Very interested to see what you've got going here.

rockingharder 04-21-2017 11:20 PM

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


 
Quote:

Originally Posted by antihero (Post 91027)
Ok, I will release my recording tool in the next few days - I'm very
busy at the moment!
and to be honest, I'm not a professional java programmer, I'm doing this as a hobby in my spare time :)

if you have feature requests, post them here.

That's awesome! Let me know if you need any testers.

marabu 04-21-2017 11:47 PM

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


 
Quote:

Originally Posted by antihero (Post 90999)
hi guys, I'm working on a java recording tool. :)

features:

+ capture in HD (800x600px)
+ filter model-list
+ cam preview
+ auto update model-list
+ record list (auto-record when model goes online)
+ ignore list (models are never recorded)
+ ffmpeg + ffplay
+ output shows full date
+ mac, win & unix support

Are guys you interested?

Me need option for auto record videos by kewords (in topics, tags and talents)

mfmax 04-23-2017 12:23 PM

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


 
Hello friends!

Would it be possible to update the MFCRecorder due to recent changes in the MFC servers? Those who have the code, if they are no longer interested in continuing/updating, could not transfer to others interested in giving continuity? Particularly I think it an excellent program. ;)

mfmax 04-23-2017 01:10 PM

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


 
Quote:

Originally Posted by antihero (Post 91027)
Ok, I will release my recording tool in the next few days - I'm very
busy at the moment!
and to be honest, I'm not a professional java programmer, I'm doing this as a hobby in my spare time :)

if you have feature requests, post them here.

It looks really fantastic!

Here are some suggestions from me:
* More specific data in the main table as full names of country, city, ethnicity, etc...
* The possibility of refining the search through these same items, such as: age (above, below, between, equal to xx years old), specific country, continent, specific ethnicity, search by tags, etc...
* Ability to change the naming style of recording folders...
* Function to save the main table as an .xlsx file or similar...
* Some advanced recording features like pause, restart, limit the number of simultaneous recordings (models), etc...

Thanks in advance for all your effort!!

Damianonymous 04-23-2017 04:55 PM

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


 
Quote:

Originally Posted by mfmax (Post 91079)
Would it be possible to update the MFCRecorder due to recent changes in the MFC servers? Those who have the code, if they are no longer interested in continuing/updating, could not transfer to others interested in giving continuity? Particularly I think it an excellent program. ;)

Little chance that the owner of the latest version will come back to work on the program http://stream-recorder.com/forum/member.php?u=125810

KillerBee 04-23-2017 05:10 PM

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


 


Thought I'd share info on my tool I made to anyone that wants it. I wanted a minimal UI to alert me when models were online and to record them.

I have 2 monitors so the info window always stays at the side of one of them and you open the control panel as needed.


The program uses nodeJS to grab the model data and there is a watch list for the models. Program watches for the model to come online then calls a bat file to run ffmpeg to record. You can alter the bat file easily enough for other programs like streamlink. You can stop the recording process too for each individual model from the control panel.


Some features I added in are some logic on grabbing model data so if no model is online then it will increase the duration of updates until a model is online again.

Tray alerts when watched models change state.

Added pushover app support so you can get notifications on your phone when models comes online / change state.



I'm tweaking it a bit more at the moment then will upload it somewhere for you all.

I just added the command window when launching ffmpeg.exe has model being recorded in the title.
If the model changed their name then it get changed automatically in the watchlist.
Sorts the watchlist on exit. Just helpful if you add more models to tidy it up a bit.


The new feature I'm trying to add is control some features via TCP. So if you grab an app/tool to send data via TCP then you'll be able to add new models/remove models/request info etc while away from your PC via commands. Just working out best way to do this.

I don't have a large watchlist so the window is long enough for me but for others might not be. I'll have to add in a way to display more models.

I'll try to add these features asap and write some docs for it. Away for a few days though so might be a week until i can upload it.

OntintheGod 04-24-2017 08:46 AM

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


 
Quote:

Originally Posted by mfmax (Post 91079)
Hello friends!

Would it be possible to update the MFCRecorder due to recent changes in the MFC servers? Those who have the code, if they are no longer interested in continuing/updating, could not transfer to others interested in giving continuity? Particularly I think it an excellent program. ;)


MFCRecorder = MFCDump ?

dahdiesel 04-24-2017 09:07 AM

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


 
Quote:

Originally Posted by OntintheGod (Post 91097)
MFCRecorder = MFCDump ?


it was a great program.. but... not working anymore since mfc's patch

mfmax 04-24-2017 01:21 PM

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


 
Quote:

Originally Posted by KillerBee (Post 91086)


Thought I'd share info on my tool I made to anyone that wants it. I wanted a minimal UI to alert me when models were online and to record them.

I have 2 monitors so the info window always stays at the side of one of them and you open the control panel as needed.


The program uses nodeJS to grab the model data and there is a watch list for the models. Program watches for the model to come online then calls a bat file to run ffmpeg to record. You can alter the bat file easily enough for other programs like streamlink. You can stop the recording process too for each individual model from the control panel.


Some features I added in are some logic on grabbing model data so if no model is online then it will increase the duration of updates until a model is online again.

Tray alerts when watched models change state.

Added pushover app support so you can get notifications on your phone when models comes online / change state.



I'm tweaking it a bit more at the moment then will upload it somewhere for you all.

I just added the command window when launching ffmpeg.exe has model being recorded in the title.
If the model changed their name then it get changed automatically in the watchlist.
Sorts the watchlist on exit. Just helpful if you add more models to tidy it up a bit.


The new feature I'm trying to add is control some features via TCP. So if you grab an app/tool to send data via TCP then you'll be able to add new models/remove models/request info etc while away from your PC via commands. Just working out best way to do this.

I don't have a large watchlist so the window is long enough for me but for others might not be. I'll have to add in a way to display more models.

I'll try to add these features asap and write some docs for it. Away for a few days though so might be a week until i can upload it.


Interesting. Make it available to us!

mfmax 04-24-2017 01:36 PM

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


 
Quote:

Originally Posted by Damianonymous (Post 91085)
Little chance that the owner of the latest version will come back to work on the program http://stream-recorder.com/forum/member.php?u=125810


Based on the functions of MFCRecorder, wouldn't be possible to write a similar new tool? I know there are many capable people around here.

xxhieixx 04-24-2017 04:25 PM

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


 
Quote:

Originally Posted by dahdiesel (Post 91098)

it was a great program.. but... not working anymore since mfc's patch

aaand that's how I ended up here :rolleyes:

KillerBee 04-24-2017 04:31 PM

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


 
Quote:

Originally Posted by mfmax (Post 91111)
Interesting. Make it available to us!

See my post a few up for a brief description.

I've include some instructions in a readme.txt file. If you aren't comfortable installing packages such as Nodejs/python etc then i'd stay away from this.

Will continue adding a few more features.


Download link:
MFCer.rar

kobayashi maru 04-25-2017 01:37 AM

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


 
Quote:

Originally Posted by xxhieixx (Post 91116)
aaand that's how I ended up here :rolleyes:

I can patch it if someone pm me the changed socket and the new src .stream link,also i can make it capture hd streams if available.

antihero 04-25-2017 03:03 AM

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


 
Quote:

Originally Posted by mfmax (Post 91112)
Based on the functions of MFCRecorder, wouldn't be possible to write a similar new tool? I know there are many capable people around here.

I will release a similar record-tool in the next few days. Stay tuned :)

Preview:

mfmax 04-25-2017 06:18 AM

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


 
Quote:

Originally Posted by KillerBee (Post 91117)
See my post a few up for a brief description.

I've include some instructions in a readme.txt file. If you aren't comfortable installing packages such as Nodejs/python etc then i'd stay away from this.

Will continue adding a few more features.


Download link:
MFCer.rar


Thanks! I will try it.

mfmax 04-25-2017 06:46 AM

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


 
Quote:

Originally Posted by antihero (Post 91125)
I will release a similar record-tool in the next few days. Stay tuned :)

Preview:


We look forward to it! Looks like a really amazing job. :)

Wacker66 04-25-2017 10:17 PM

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


 
Quote:

Originally Posted by antihero (Post 91125)
I will release a similar record-tool in the next few days. Stay tuned :)

Preview:

Looks awesome so far, looking forward to giving it a try once you release it. Will it record the HD feeds from MFC? MFCRecorder did not do that.

emmcode 04-26-2017 05:50 AM

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


 
Hi all,

I'm an experienced developer and have recently got the source code to the MFCRecorder app but as most of you are aware it's stopped working due to changes in how MFC exposes the json containing the models list.

I've had a look over the mfc-node project and it seems that they have changed the URL and fileno parameters required to get this file.

So, as before you have to connect to the URL: ws://xchat20.myfreecams.com:8080/fcsl

via a socket and sens the usual handshaking stuff but instead of looking for fileno in the response there are now four params: -

respkey,type,opts & serv

Also, the url containing the models JSON is: -

http://www.myfreecams.com/php/FcwExtResp.php?

with the above params appended via the query string.

BUT, even with these changes I get a 404 when trying to download the models JSON via the C# code.

Does anyone have any ideas what I'm missing, do I need to include some cookie etc.

Any help is much appreciated!!!

cuteskater 04-26-2017 06:35 AM

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


 
Hey guys, why all that? Just use the nice "pay" Tool tubedigger.

http://www.tubedigger.com/:D

Here is a Video how nice this works

https://my.pcloud.com/publink/show?c...oPR93Pl8fg74pV

supersonic80 04-26-2017 07:04 AM

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


 
Have you tried to open your URL in the browser? I don't think it is cookies, because I've just copied the url from Chrome and successfully opened in Safari.

Quote:

Originally Posted by emmcode (Post 91155)
Hi all,

I'm an experienced developer and have recently got the source code to the MFCRecorder app but as most of you are aware it's stopped working due to changes in how MFC exposes the json containing the models list.

I've had a look over the mfc-node project and it seems that they have changed the URL and fileno parameters required to get this file.

So, as before you have to connect to the URL: ws://xchat20.myfreecams.com:8080/fcsl

via a socket and sens the usual handshaking stuff but instead of looking for fileno in the response there are now four params: -

respkey,type,opts & serv

Also, the url containing the models JSON is: -

http://www.myfreecams.com/php/FcwExtResp.php?

with the above params appended via the query string.

BUT, even with these changes I get a 404 when trying to download the models JSON via the C# code.

Does anyone have any ideas what I'm missing, do I need to include some cookie etc.

Any help is much appreciated!!!


Damianonymous 04-26-2017 07:18 AM

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


 
Quote:

Originally Posted by cuteskater (Post 91156)
Hey guys, why all that? Just use the nice "pay" Tool tubedigger.

http://www.tubedigger.com/:D

Here is a Video how nice this works

https://my.pcloud.com/publink/show?c...oPR93Pl8fg74pV

Many forum members do not even need these applications. The whole fun in this forum is to find free ways to record :) People are doing things here that my brain burns as I read it and trying to understand. That is why this is the best forum on the net, do not disturb us even hundreds of spambots :D

emmcode 04-26-2017 07:26 AM

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


 
re: supersonic80's post....

I used fiddler to get the URL that the mobile site uses to get the models JSON and when I pasted into a browser (chrome) I got a 404...

http://www.myfreecams.com/php/FcwExt...=1493199950826

??

Damianonymous 04-26-2017 07:38 AM

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


 
Have you seen the MyFreeCams plugin in Streamlink? Maybe it will help ...

Code:

import json
import random
import re

from streamlink.plugin import Plugin
from streamlink.plugin.api import http
from streamlink.stream import HLSStream

try:
    from websocket import create_connection
    HAS_WEBSOCKET = True
except ImportError:
    HAS_WEBSOCKET = False

DATA_URL = "https://www.myfreecams.com/php/FcwExtResp.php?respkey={respkey}&type={type}&opts={opts}&serv={serv}"
HLS_VIDEO_URL = "http://video{0}.myfreecams.com:1935/NxServer/ngrp:mfc_{1}.f4v_mobile/playlist.m3u8"
WEBSOCKET_SERVERS = [7, 8, 9, 10, 11, 12, 20, 22, 23, 24, 25, 26, 27, 28, 29, 39]

_session_re = re.compile(r'''\04522opts\04522\:(?P<opts>\d+),\04522respkey\04522\:(?P<respkey>\d+),\04522serv\04522\:(?P<serv>\d+),\04522type\04522\:(?P<type>\d+)''')
_url_re = re.compile(r"https?\:\/\/(?:\w+\.)?myfreecams\.com\/(?:\#(?P<username>\w+)|id\=(?P<user_id>\d+))")
# USERNAME URL = https://www.myfreecams.com/#UserName
# CUSTOM ID URL = https://www.myfreecams.com/id=01234567


class MyFreeCams(Plugin):
    @classmethod
    def can_handle_url(cls, url):
        return _url_re.match(url)

    def _get_streams(self):
        match = _url_re.match(self.url)
        username = match.group("username")
        user_id = match.group("user_id")

        if not HAS_WEBSOCKET:
            self.logger.error("websocket-client is not installed")
            self.logger.info("You can install it with:")
            self.logger.info("pip install websocket-client")
            self.logger.info("https://pypi.python.org/pypi/websocket-client")
            return

        # https://www.myfreecams.com/_js/serverconfig.js
        xchat = "xchat{0}".format(random.choice(WEBSOCKET_SERVERS))
        ws_host = "wss://{0}.myfreecams.com/fcsl".format(xchat)
        ws = create_connection(ws_host)

        # https://www.myfreecams.com/js/wsgw.js
        # https://www.myfreecams.com/js/FCS.js
        send_msg_hello = "hello fcserver\n\0"
        # FCTYPE_LOGIN = 1
        send_msg_login = "1 0 0 20071025 0 guest:guest\n\0"
        send_msg_ping = "1 0 0 0 0\n\0"
        # FCTYPE_LOGOUT = 99
        send_msg_logout = "99 0 0 0 0"

        ws.send(send_msg_hello)
        ws.send(send_msg_login)

        loop_number = 0
        status_regex = False
        while status_regex is not True:
            if loop_number is 20:
                # quit script after 20 trys
                self.logger.error("Is your connection ok?")
                return

            # send message to the websocket server
            ws.send(send_msg_ping)
            data_ws = ws.recv()

            try:
                mfc_session = _session_re.search(data_ws)
                data_opts = mfc_session.group("opts")
                data_respkey = mfc_session.group("respkey")
                data_serv = mfc_session.group("serv")
                data_type = mfc_session.group("type")

                if mfc_session is not None:
                    status_regex = True
            except:
                loop_number += 1
                self.logger.debug("-- RESEND WEBSOCKET DATA -- {0} --".format(loop_number))

        ws.send(send_msg_logout)
        ws.close()

        if username:
            re_uid = r"\d+"
            re_username = username
        elif user_id:
            re_uid = int(user_id)
            re_username = r"\w+"

        # regex for http data
        _data_channel_re = re.compile(r'''
            \133(?:\s+)?(["'](?P<username>{0})["']\,?\d+,(?P<uid>{1})[^\135]+)\135
            '''.format(re_username, re_uid), re.VERBOSE | re.IGNORECASE)

        # get data from http server
        cookies = {"cid": "3149", "gw": "1"}
        res = http.get(DATA_URL.format(
            opts=data_opts,
            respkey=data_respkey,
            serv=data_serv,
            type=data_type
        ), cookies=cookies)

        data_channel = _data_channel_re.search(res.text)
        data_channel = data_channel.group(0)
        data_channel = json.loads(data_channel)

        # data_channel[0] "nm"
        # data_channel[1] "sid"
        # data_channel[2] "uid"
        # data_channel[3] "vs"
        # data_channel[4] "pid"
        # data_channel[5] "lv"
        # data_channel[6] "camserv"

        if not data_channel:
            # abort if the regex can't find the username
            self.logger.error("Stream is offline or username/user_id is invalid")
            return

        username = data_channel[0]
        uid = int(data_channel[2])
        uid_video = uid + 100000000
        vs = int(data_channel[3])
        camserver = int(data_channel[6])

        self.logger.info("USER ID: {0}".format(uid))
        self.logger.info("USERNAME: {0}".format(username))
        self.logger.debug("VIDEO STATUS: {0}".format(vs))

        if vs is 0:
            # FCVIDEO_TX_IDLE = 0
            if camserver >= 840:
                server = camserver - 500
            elif camserver < 839:
                server = 0

            if server:
                hls_url = HLS_VIDEO_URL.format(server, uid_video)

                self.logger.debug("HLS URL: {0}".format(hls_url))

                for s in HLSStream.parse_variant_playlist(self.session, hls_url).items():
                    yield s

__plugin__ = MyFreeCams


supersonic80 04-26-2017 08:16 AM

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


 
Hmm...
I used Developers Tools in Chrome and the link worked perfectly, however my link did not have this param '_=1493199950826'

Quote:

Originally Posted by emmcode (Post 91160)
re: supersonic80's post....

I used fiddler to get the URL that the mobile site uses to get the models JSON and when I pasted into a browser (chrome) I got a 404...

http://www.myfreecams.com/php/FcwExt...=1493199950826

??


WHOOKIDSON 04-26-2017 11:07 AM

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


 
Quote:

Originally Posted by emmcode (Post 91160)
re: supersonic80's post....

I used fiddler to get the URL that the mobile site uses to get the models JSON and when I pasted into a browser (chrome) I got a 404...

http://www.myfreecams.com/php/FcwExt...=1493199950826

??

How long are you waiting to put the URL in your browser? I believe the link expires after 1 min or so (not entirely sure) but I just tested it 2 times and it worked for me with Chrome and Firefox. I went to the mobile site and clicked refresh then when I saw the json URL I copied and paste into Chrome and Firefox. It definitely shows up (models list etc etc). I waited maybe 1min after that and tried to paste the same link again but it was expired (404).

Edge 04-26-2017 12:49 PM

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


 
Quote:

Originally Posted by emmcode (Post 91155)
Hi all,
...
Does anyone have any ideas what I'm missing, do I need to include some cookie etc.

Any help is much appreciated!!!

You can get multiples of message 81 (if I remember correctly) which contains the respkey for the URL. Only the first one will be valid. Why this happens, I don't know, it sometimes happens if you use MFC in the browser, as well, verified via Wireshark.

vengus 04-26-2017 11:10 PM

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


 
Is it possible for any of these recorders to put the model status in a txt file?

I was using something called MfcChecker. I got it from this forum a couple of years ago. All it did was check for models in a watchlist.txt and then give their status i.e. Offline, Online, Group....

I used it to notify me when a particular model went to group so I didn't have to sit through hours of nothing in public. MfcChecker stopped working a week or two ago. I can look through the code and see where the issue is, but I have no idea what it's doing or how to fix it. It's doing a loop to generate a file no, but now it returns nothing.

Just wondering if I could get something else to do the same thing. Or maybe someone knows how to fix it? I don't think the original author posts on this fourm anymore, but this is where I got it.

simcom02 04-27-2017 10:20 AM

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


 
the main problem is, that mfc changed their handshake protocol, which was used for several tools (mfcchecker, mfcdump, etc ... )

afair elegro was one of the developers but his inbox is full - and i don΄t have the source files of his nice tool to fix - extend the protocol

ELEGRO if you read this please send me a PN - thx

-the previous tool ~camgirlzREC looks promising - looking forward to it

cheers
R

antihero 04-27-2017 03:25 PM

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


 
hey guys,

I am releasing my recording-tool camgirlzREC 1.0

features:
+ always capture best video-streams (up to 800x600px)
+ search model-list
+ videostream preview
+ auto update model-list
+ record list (auto-record when model goes online)
+ ignore list (models are never recorded)
+ auto-record by keywords, cam-score, viewers or ranking
+ start/stop records
+ simultaneous recordings limitation
+ recording-files shows full date
+ start programm in tray

keyboard shortcuts:
s … start/stop record live-stream
v … view live-stream
a … add Model to record-List
i … add Model to ignore-List
o … open record folder
p … open profile in web-browser
c … open chatroom in web-browser

prerequisites:
java JRE 1.7 (or higher)
ffmpeg.exe and ffmplay.exe

screenshot:


downloads: (ffmpeg and ffmplay included)
win32: http://www58.zippyshare.com/v/0Lv74oYc/file.html
win64: http://www58.zippyshare.com/v/sFeQUiZz/file.html

please note, I assume no liability for any lawsuits or damages that may arise in any way or form from using this software. I have created this application for fun as a technical challenge and not to infringe on any copyrights.

xxhieixx 04-27-2017 04:28 PM

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


 
Quote:

Originally Posted by antihero (Post 91208)
hey guys,

I am releasing my recording-tool camgirlzREC 1.0

Thank You kind sir! :D

gharris001 04-27-2017 06:33 PM

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


 
[quote=antihero;91208]hey guys,

I am releasing my recording-tool camgirlzREC 1.0

It is up and running! It looks great and I love the search and the ability to add models by name.

Thanks so much!

Wacker66 04-27-2017 10:05 PM

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


 
Quote:

Originally Posted by antihero (Post 91208)
hey guys,

I am releasing my recording-tool camgirlzREC 1.0

Thanks dude, this works perfect. A big improvement over MFCRecorder. I was hoping never to install Java on my PC since it's not needed for anything but oh well.

Nemesis 04-28-2017 02:21 AM

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


 
Yeah thanks, camgirlzREC works, but my system can't find the downloaded files, i tried with the WinExplorer and SpeedCommander, only if i open the recording folder with camgirlzREC! The files are there and i can play them, but i can't copy or move them, also when i delete them, they are not in my dumpster. My system also don't show the rec folder or the model folders, is it only me, or have you guys the same issues...?:confused:

Damianonymous 04-28-2017 03:13 AM

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


 
Quote:

Originally Posted by antihero (Post 91208)
hey guys,

I am releasing my recording-tool camgirlzREC 1.0

It looks great, works well and most importantly - easy to install and use. Time to test, I think the place in my folders for this application is among the best (mfc-node, capturebate-node, chaturbate-master, etc.) ;)


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