Giter VIP home page Giter VIP logo

mfc-node's Introduction

mfc-node

mfc-node lets you follow and record your favorite models' shows on myfreecams.com

This is an attempt to create a script similar to capturbate-node based on different pieces of code found on the Internet.

alt screenshot

Credits:

Requirements

Node.js used to run mfc-node, hence the name. (Tested on 4.4.7 and 6.3.1)

ffmpeg

Attention

Even thought this version of the script should be able to use an old version of config.yml file from previous releases you should make a backup of old config.yml file before pulling the code.

Setup

  1. Install Node.js (tested with 4.6.x and 6.3.x).
  2. Download and unpack the code.
  3. Open console and go into the directory where you unpacked the files.
  4. Install requirements by running npm install in the same directory as main.js is.
  5. Edit config.yml file and set desirable values for captureDirectory, completeDirectory, modelScanInterval.
  6. Install ffmpeg. For Windows users, copy ffmpeg.exe into same directory as main.js is.

Running

  1. Open console and go into the directory where you unpacked the files.

  2. Run node main.js.

  3. Open http://localhost:9080 in you browser. The list of online models will be displayed with a set of allowed commands for each model:

    • Include - if you want to record the model
    • Exclude - if you don't want to record the model anymore
    • Delete - if you are not interested in the model and wanna hide her permanently

Note: This is not a real-time application. Whenever your include, exclude or delete the model your changes will be applied only with the next iteration of mainLoop function of the script. mainLoop runs every 30 seconds (default value for modelScanInterval).

Note: There is no auto reload feature, you have to reload the list manually (big red button), however, keep in mind the script updates the list internally every 30 seconds (modelScanInterval), therefore sometimes you'll have to wait 30 seconds to see your updates.

Note: Be mindful when capturing many streams at once to have plenty of space on disk and the bandwidth available or you’ll end up dropping a lot of frames and the files will be useless.

Converting

There is a simple script to convert .ts files. Just edit convert.yml file and set proper values for srcDirectory (should be the same with completeDirectory) and dstDirectory, and run node convert.js in a separate console window.

For advanced users

There are several special URLs that allow implementing some operations with a model even if she is offline.

Include

http://localhost:9080/models/include?nm=modelname
http://localhost:9080/models/include?uid=12345678

Exclude

http://localhost:9080/models/exclude?nm=modelname
http://localhost:9080/models/exclude?uid=12345678

Delete

http://localhost:9080/models/delete?nm=modelname
http://localhost:9080/models/delete?uid=12345678

mfc-node's People

Contributors

deliciousoppai avatar sstativa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.