View Single Post
  #1602  
Old 02-23-2019, 05:40 PM
supersonic80 supersonic80 is offline
Senior Member
 
Join Date: Mar 2016
Posts: 138
supersonic80 is on a distinguished road
Default

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


There is an error in the script (lines: 74 and 75), I assume horacio made it when he was "beautifying" the original script because the original code does not have this error (https://github.com/Damianonymous/mfc...er/convert.js).

The main purpose of convert.js is to convert .flv and .ts files to .mp4. It should never be used for .mp4. The problem here is that horacio's version of mfc-node gives the wrong extension to the files (.mp4 instead of .ts), therefore there is a confusion. The whole thing works only because most of the video players ignore extension and detect the container automatically.

Quote:
Originally Posted by Syl0pt View Post
I have a few questions i'm hoping someone can help me with. I'm trying to use the convert.js script from Horacio's v3.0.2 node, but I'm getting this error:

user ~/Videos/mfc-node-2 $ node convert.js
/home/user/Videos/mfc-node-2/convert.js:61
: [ // speex or something else'-i', srcFile,'-y','-hide_banner','-loglevel','panic','-movflags','+faststart','-c:v', 'copy','-c:a', 'aac','-b:a','64k',dstFile])}
^

SyntaxError: Unexpected token :
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:656:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)

This is my first time trying to use the convert script, so I'm not sure what I'm doing wrong, if anything.
Reply With Quote