Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording (Adult streaming videos)
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #721  
Old 04-19-2017, 10:19 PM
Wacker66 Wacker66 is offline
Junior Member
 
Join Date: Aug 2012
Posts: 24
Wacker66 is on a distinguished road
Default

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


Quote:
Originally Posted by antihero View Post
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
Reply With Quote
  #722  
Old 04-19-2017, 11:00 PM
snickerpop2 snickerpop2 is offline
Junior Member
 
Join Date: Feb 2017
Posts: 2
snickerpop2 is on a distinguished road
Default

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


Quote:
Originally Posted by guestbuy View Post
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.
Reply With Quote
  #723  
Old 04-20-2017, 06:00 AM
antihero antihero is offline
Junior Member
 
Join Date: Jun 2012
Posts: 22
antihero is on a distinguished road
Default

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.
Reply With Quote
  #724  
Old 04-20-2017, 07:04 AM
poose22 poose22 is offline
Junior Member
 
Join Date: May 2011
Posts: 27
poose22 is on a distinguished road
Default

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


Quote:
Originally Posted by antihero View Post
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.
Reply With Quote
  #725  
Old 04-21-2017, 04:14 PM
Damianonymous Damianonymous is offline
Senior Member
 
Join Date: Jan 2017
Posts: 187
Damianonymous is on a distinguished road
Default

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
Reply With Quote
  #726  
Old 04-21-2017, 04:45 PM
xxhieixx xxhieixx is offline
Junior Member
 
Join Date: Apr 2017
Posts: 16
xxhieixx is on a distinguished road
Default

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


Quote:
Originally Posted by antihero View Post
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.
Reply With Quote
  #727  
Old 04-21-2017, 11:20 PM
rockingharder rockingharder is offline
Junior Member
 
Join Date: Oct 2016
Posts: 9
rockingharder is on a distinguished road
Default

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


Quote:
Originally Posted by antihero View Post
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.
Reply With Quote
  #728  
Old 04-21-2017, 11:47 PM
marabu marabu is offline
Junior Member
 
Join Date: Aug 2016
Posts: 6
marabu is on a distinguished road
Default

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


Quote:
Originally Posted by antihero View Post
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)
Reply With Quote
  #729  
Old 04-23-2017, 12:23 PM
mfmax mfmax is offline
Junior Member
 
Join Date: Apr 2017
Posts: 25
mfmax is on a distinguished road
Default

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.
Reply With Quote
  #730  
Old 04-23-2017, 01:10 PM
mfmax mfmax is offline
Junior Member
 
Join Date: Apr 2017
Posts: 25
mfmax is on a distinguished road
Default

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


Quote:
Originally Posted by antihero View Post
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!!
Reply With Quote
Reply Post New Thread
Tags: , , , , , , , , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:36 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons