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
  #691  
Old 04-04-2017, 01:22 AM
TheUltraLisk TheUltraLisk is offline
Junior Member
 
Join Date: Jul 2016
Posts: 2
TheUltraLisk is on a distinguished road
Default

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


Here is some quick greasemonkey script that gives you livestream URL that you can copy paste into into the cmd and console if you have livestreamer installed.

Code:
// ==UserScript==
// @name        tersttest
// @namespace   ok
// @include     http://www.myfreecams.com/*
// @version     1
// @grant       none
// ==/UserScript==

//alert(11222);


var myVar = setInterval(myTimer, 4000);

function myTimer() 
{
	$('#fvideo').children('param').each(function () {
		var attr = this.getAttribute("name");

		if (attr == "flashvars")
		{
			var lastVideoID = 0;
			var lastRoomID = 0

			var re = /video(\d+)/;
			var re2 = /roomID=(\d+)/;

			var myArray = re.exec(this.value);
			var myArray2 = re2.exec(this.value);

			if (myArray[1])
				var videoID = myArray[1];
			else
				console.error("Unable to get video ID");

			if (myArray2[1])
				var roomID = myArray2[1];
			else
				console.error("Unable to get room ID");


			if ((lastVideoID == videoID) && (lastRoomID == roomID))
			{

			}
			else
			{
				lastVideoID = videoID;
				lastRoomID = roomID;

				if ( $( "#mytest123" ).length ) 
				{

				}
				else
				{
					var para = document.createElement("p");
					para.setAttribute("ID", "mytest123");
					var node = document.createTextNode("");
					para.appendChild(node);
					var aaa = $("#video_controls");
					aaa.append(para);
				}
				var newURL = "livestreamer hlsvariant://http://video" + videoID + ".myfreecams.com:1935/NxServer/ngrp:mfc_" + lastRoomID + ".f4v_mobile/playlist.m3u8";

				// if the URL is new, update it (don't auto update URL as you lose selected text as a user)
				if ($("#mytest123").html() != newURL)
					$("#mytest123").html(newURL);
			}
		}
	});
}
Reply With Quote
  #692  
Old 04-04-2017, 02:38 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 514
j_cool 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 TheUltraLisk View Post
I am really not used to looking at packets, or familiar with flash and its NetConnection(), but it appears that the new HD content is setup so the server sends some JavaScript code to the user, the user runs that code and generates a hash, and the user must send that hash back to myfreecams, otherwise it won't play the new HD video.

I could be completely wrong about all of this, but it seems it might be setup this way just to stop programs like rtmpdump. If that is the case, someone who knows c might need to change rtmpdump to compute this hash and include it in its request.

RTMPDUMPHELPER + Rtmpsuck still work on MFC.

About Rtmpdump...

Sadly, looks like that KSV dumped it long time ago.





RTMP Proxy Server v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
ERROR: Handshake failed
Closing connection... done!

WARNING: Trying different position for client digest!
Processing connect
app : NxServer
flashVer : WIN 25,0,0,127
swfUrl : http://www.myfreecams.com/flash/Video170322.swf
tcUrl : rtmp://video799.myfreecams.com:1935/NxServer
pageUrl : http://www.myfreecams.com/_html/play...&t arget=main
live : no
Playpath : mp4:mfc_119657061.f4v
Saving as : 2017-04-04_09-33-29_mp4_mfc_119657061.flv
WARNING: ignoring too small audio packet: size: 0


rtmpdump -r "rtmp://video799.myfreecams.com:1935/NxServer"
-a "NxServer"
-f "WIN 25,0,0,127"
-W "http://www.myfreecams.com/flash/Video170322.swf"
-p "http://www.myfreecams.com/_html/player.html?broadcaster_id=0&cache_id=1491294790&t arget=main"
-C N:580669623.000000
-C S:
-C N:119657061.000000
-C SOWNLOAD
-C N:19657061.000000
-y "mp4:mfc_119657061.f4v"
-o "2017-04-04_09-33-29_mp4_mfc_119657061.flv"
Reply With Quote
  #693  
Old 04-04-2017, 03:33 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 514
j_cool is on a distinguished road
Default

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


Here are mini videos.

http://www.myfreecams.com/


Here are m3u8s and videos are as good as model's camera.

http://m.myfreecams.com/chats


http://video827.myfreecams.com:1935/...=1491297980202

#EXTM3U

#EXT-X-VERSION:3

#EXT-X-STREAM-INF:BANDWIDTH=1190486,CODECS="avc1.77.31,mp4a.40.2 ",RESOLUTION=800x600
chunklist_w682168228_b1190486.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=582000,CODECS="avc1.66.30,mp4a.40.2" ,RESOLUTION=320x240
chunklist_w682168228_b532000.m3u8
Reply With Quote
  #694  
Old 04-04-2017, 10:34 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)


I am using a plugin for Streamlink:

Code:
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/modelobject.php?f={0}&s={1}"
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"\173\04522fileno\04522\:\04522(?P<session>[\d_]+)\04522\175")
_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)
                mfc_session = mfc_session.group("session")

                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"""
            \"nm\"\:\"(?P<username>{0})\"\,
            [^\173\175]+
            \"uid\"\:(?P<uid>{1})\,
            \"vs\"\:(?P<vs>\d+)\,
            [^\173\175]+
            \173
            [^\173\175]+
            \"camserv\"\:(?P<server>\d+)
            """.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(mfc_session, xchat), cookies=cookies)
        data_channel = _data_channel_re.search(res.text)

        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.group("username")
        uid = int(data_channel.group("uid"))
        uid_video = uid + 100000000
        vs = int(data_channel.group("vs"))
        camserver = int(data_channel.group("server"))

        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
Copy the code to the notebook, save as myfreecams.py in the folder ...\Lib\site-packages\streamlink\plugins\ You also probably need to install "pip install websocket-client" https://pypi.python.org/pypi/websocket-client.

To work, you can use the modified ihryjfbd script:

Code:
@echo off
setlocal enableDelayedExpansion

set USERNAME=AnonymousUser
set PASSWORD=anonymous

set SECONDS=30

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.127" -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
  #695  
Old 04-05-2017, 01:57 AM
Moonspell Moonspell is offline
Senior Member
 
Join Date: Sep 2016
Posts: 227
Moonspell 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 Damianonymous View Post
I am using a plugin for Streamlink:

To work, you can use the modified ihryjfbd script:

Code:
@echo off
setlocal enableDelayedExpansion

set USERNAME=AnonymousUser
set PASSWORD=anonymous

set SECONDS=30

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.127" -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


Hmmm... this is should be for rtmpdump? For me, it doesn't work though. Or it needs some specific things in the path?
Reply With Quote
  #696  
Old 04-05-2017, 02:58 AM
ihryjfbd ihryjfbd is offline
Senior Member
 
Join Date: Oct 2015
Posts: 212
ihryjfbd 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 Moonspell View Post
Hmmm... this is should be for rtmpdump? For me, it doesn't work though. Or it needs some specific things in the path?
Yeah he changed my rtmpdump lines to streamlink.
Reply With Quote
  #697  
Old 04-05-2017, 06:03 AM
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)


Quote:
Originally Posted by Moonspell View Post
Hmmm... this is should be for rtmpdump? For me, it doesn't work though. Or it needs some specific things in the path?
Do you have the MyfreeCams plugin? Websocket-client in \Lib\site-packages\... in this folder where Streamlink is used?

Quote:
Originally Posted by ihryjfbd View Post
Yeah he changed my rtmpdump lines to streamlink.
Code:
streamlink "https://chaturbate.com/%model%/" best --http-header "swfUrl=https://chaturbate.com/static/flash/CBV_2p661.swf" --http-header "flashVer=WIN 25.0.0.127" -o "%OUT_DIR%\%model%_%ts%.ts
I'm using this script with Streamlink also for Chaturbate. It seems that MyFreeCams plugin works better with it, I do not see so many errors in the console. You could look at them or change something, I do not know myself completely
Reply With Quote
  #698  
Old 04-05-2017, 12:30 PM
ihryjfbd ihryjfbd is offline
Senior Member
 
Join Date: Oct 2015
Posts: 212
ihryjfbd 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 Damianonymous View Post
Do you have the MyfreeCams plugin? Websocket-client in \Lib\site-packages\... in this folder where Streamlink is used?



Code:
streamlink "https://chaturbate.com/%model%/" best --http-header "swfUrl=https://chaturbate.com/static/flash/CBV_2p661.swf" --http-header "flashVer=WIN 25.0.0.127" -o "%OUT_DIR%\%model%_%ts%.ts
I'm using this script with Streamlink also for Chaturbate. It seems that MyFreeCams plugin works better with it, I do not see so many errors in the console. You could look at them or change something, I do not know myself completely
It shouldn't be any different really since streamlink uses the rtmpdump.exe in it's programs files x86 folder anyway along with ffmpeg.
Reply With Quote
  #699  
Old 04-05-2017, 06:12 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)


Streamlink to Chaturbate with rtmpdump needs KSW compilation, so that plugin has not yet been created. Also, the official MyFreeCams plug-in was not created because it only works with Websocket-Client. In both cases, the user would be forced to install products from the outside.
Reply With Quote
  #700  
Old 04-06-2017, 08:54 AM
trkient8 trkient8 is offline
Junior Member
 
Join Date: Feb 2017
Posts: 6
trkient8 is on a distinguished road
Default

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


B?© trai h??n 1 tuổi bị thang cuốn s??n bay k?©o đứt cổ tay

Chiá»?u 6/4, má»™t b?© trai 17 th??ng tuổi trong khi chá??y ch??i trong ph??ng chá»? ga quốc n?´i s??n bay T??n S??n Nhá??t - TPHCM Ä‘?? bị thang cuốn k?©o gá?§n đứt cổ tay phá??i.

Ná??n nh??n l?* ch??u b?© V.N.K.P., qu?? á»? H?* TÄ©nh.



Theo th?´ng tin ban Ä‘á?§u, l??c 15h13 ng?*y 6/4, b?© V.N.K.P. Ä‘i c??ng má?? l?* T.T.N. (sinh nÄ?m 1991) ra s??n bay l?*m thủ tá»?c cho chuyá??n bay Ä‘i Ä?ồng Há»›i (Quá??ng B?¬nh) l??c 17h30. Sau khi ho?*n th?*nh thủ tá»?c an ninh, 2 má?? con ch??u P. Ä‘i v?*o khu vá»±c c??ch ly Ä‘á»? ngồi chá»? chuyá??n bay.

Tá??i ph??ng chá»?, ch??u P. tá»± chá??y Ä‘i ch??i. Ä?á??n 15h55, nghe thá??y tiá??ng k??u kh??c, má»?i ng?°á»?i trong ph??ng chá»? chá??y Ä‘á??n th?¬ thá??y ch??u b?© ng?? xuống thang cuốn cá??m ứng tá»± Ä‘á»™ng, bị thang cứa gá?§n l?¬a cổ tay phá??i.

Sá»± việc xá??y ra qu?? nhanh, khi nghe má»?i ng?°á»?i k??u l??n th?¬ má?? ch??u b?© má»›i biá??t. Nh??n vi??n h?*ng kh?´ng Ä‘?? lá?*p tức c?? má?·t c??ng nh??n vi??n y tá?? há»— trá»? cho b?© P., c??ng s?? cứu v?* Ä‘?°a ch??u b?© Ä‘i bệnh viện.

Nh?* chức tr??ch s??n bay cho biá??t, vị tr?* xá??y ra tai ná??n đối vá»›i ch??u b?© l?* thang cuốn ná?±m á»? khu vá»±c cá»*a ra m??y bay số 3. Ä???y l?* khu vá»±c phá»?c vá»? cho nhiá»?u h??ng h?*ng kh?´ng kh??c nhau. Tuy nhi??n, tá??i thá»?i Ä‘iá»?m xá??y ra sá»± việc, khu vá»±c n?*y kh?´ng thá»±c hiện phá»?c vá»? cho chuyá??n bay n?*o n??n quá?§y Ä‘?°á»?c Ä‘??ng lá??i.

Ä??°á»?c biá??t, nh??n vi??n của h??ng vá?*n chuyá»?n h?*ng ho?? Ä‘?? Ä‘i c??ng má?? con chị N. Ä‘á??n bệnh viện Ä‘á»? há»— trá»?, chÄ?m s??c h?*nh kh??ch của m?¬nh.

Nguồn Dantri.vn
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:52 PM.


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