youtube-audio-stream icon indicating copy to clipboard operation
youtube-audio-stream copied to clipboard

Put the ffmpeg process in a setTimeout

Open karimmakhloufi opened this issue 3 years ago • 2 comments

To avoid the maximum call stack range error when multiple simultaneous calls are made or even when used in a cue with only 1 worker.

I did time it and a 1h30 video and did not see any performance drop

karim@karim-laptop  ~/Work/streamtube/xp  time node index.js node index.js 52,42s user 3,99s system 112% cpu 50,100 total karim@karim-laptop  ~/Work/streamtube/xp  time node index.js node index.js 52,34s user 4,13s system 115% cpu 48,956 total

karimmakhloufi avatar Mar 12 '21 01:03 karimmakhloufi

Have you tested on the real server yet. I try ec2 aws amazon build and it often stops. Is there a way to fix it.

tbkunboy avatar Mar 16 '21 08:03 tbkunboy

I've only tried it on heroku and on my laptop for now, I'll try on ec2 to reproduce.

karimmakhloufi avatar Mar 16 '21 16:03 karimmakhloufi