Play a video in the browser that is being updated in the background?
Hi there, I hope you all are doing well!
I have a video that's being encoded with some FFmpeg flags applied to it in the MKV format, that's running in the background. I'm working on a type of web panel that would preview the video as it's being encoded from MKV to MKV (with new FFmpeg flags).
I've managed to make a Node.js HTTP Streaming script using the tutorial How to Code a Video Streaming Server using NodeJS.
However, it seems like the video is not updating the new content and stops playing after 1 second or so. I've tried to push in new content through pipes however I had no luck (using watchers such as fs.watchFile and test intervals).
Maybe @yoursunny has a solution?
Hoping someone can guide me on the right path, thanks!