Closed RSATom closed 8 years ago
+1
For frame accurate rendering I have implemented a streaming app that sends the frames decoded on the server to a web client via WebSockets. The client then uses these frames as WebGL textures. *Note: this does require very high bandwidth networks ( > 1 Gbps)
I the websocketio library (https://github.com/tmarrinan/websocketio) that I developed for the streaming. It's very similar to socket.io, but outperforms it for binary streaming.
Did you try something like Full HD with client and server on the same host? Is it possible get good fps?
Yes - if server and client are the same (connect to server using localhost), then the framerate is good. It is also good if you have an internal network with > 1 Gbps connecting a server to a client that is on a different machine. 4K videos can get a bit choppy depending on your CPU (decoding time alone comes into play, along with streaming and rendering)
What hardware did you use in this test? What cpu load did you have?
I've run it on a number of machines: for example
CPU load will typically be noticeable while the video is decoding - not sure on exact percentages
i.e. more than 10-20% ? Right?
Yes
Thank you for info.
please look at https://github.com/RSATom/webgl-video-renderer (it's
wcjs-renderer
without dependency fromWebChimera.js
). renderer usage example: https://github.com/RSATom/wcjs-ugly-demoIf you will have any questions, or will need help - I (and some other guys) will be glad to help you.