youtube-audio-stream
youtube-audio-stream copied to clipboard
Put the ffmpeg process in a setTimeout
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
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.
I've only tried it on heroku and on my laptop for now, I'll try on ec2 to reproduce.