Jalle19 / node-ffmpeg-mpegts-proxy

Simple proxy for leveraging ffmpeg to convert any source URL into MPEG-TS over HTTP
GNU General Public License v2.0
167 stars 52 forks source link

error cannot read property 'F_OK' of undefined #35

Closed isayed closed 7 years ago

isayed commented 7 years ago

I am receving the following error trying to run the app using the example in the doc.. i have avconv installed on my machine ..

node-ffmpeg-mpegts-proxy/node_modules/command-exists/lib/command-exists.js:12
    access(commandName, constants.F_OK,
                                 ^
TypeError: Cannot read property 'F_OK' of undefined
    at fileNotExists

Any ideas ? Thanks

Jalle19 commented 7 years ago

Can you remove node_modules and run npm install again?

isayed commented 7 years ago

done and this fixed the problem thanks... i am having another problem though where the stream drops and seeing lots of

avconv exited with code 0
info: avconv started successfully
debug: avconv exited with code 0
info: avconv started successfully
error: avconv exited with code 1

I am also not sure if I can use the module to cache/buffer/preload the stream so that I don't get drops for the m3u8 stream (the main reason I wanted to try this). I tried all sort of config parameters to avconv but can't get this to really work for that. Any thoughts ? Is this a possible use case ?

Thanks again

Jalle19 commented 7 years ago

Try getting the command you want to use to work standalone by directly running ffmpeg. Once you know it works you can configure it as a source.