libde265.js icon indicating copy to clipboard operation
libde265.js copied to clipboard

Added a websocket livestream demo

Open nicholashaydensmith opened this issue 10 years ago • 2 comments

I created a new demo that uses a really simple python2.7 tornado server that live streams the h265 video via binary websocket. I'm really interested in this project.

Get tornado with 'pip2 install tornado'. Then just start the demo by visiting localhost:8080. This will initialize a websocket connection that will stream the video via websocket for a given chunk size and fps (hard coded in the lib right now). Still needs some work, maybe some api for fps that the client app can control. When I got this up and running I got excited and wanted to share, but it arguably still needs a bit of work. It doesn't properly flush the video and seems to lag when run unbounded (fps > processor can decode). I've just set the fps to 30 for now. Maybe a pull request is premature, but thought it would be nice to get a second set of eyes on this sooner than later. Is this something you guys would be interested in accepting if I polished it up?

nicholashaydensmith avatar Oct 24 '15 19:10 nicholashaydensmith

Hello, I am trying view my live streaming in your demo page but dont work

I run with change the port to 1955

python livevideoserver.py

and then with ffmpeg ffmpeg -re -i Vídeos/Big\ Hero\ 6.mkv -f hevc -c:v nvenc_hevc -b:v 200k -r 30 -s 640x480 http://localhost:1955

or

ffmpeg -re -i Vídeos/Big\ Hero\ 6.mkv -f hevc -c:v libx265 -b:v 200k -r 30 -s 640x480 http://localhost:1955 Where is my error?

Thanks for all

Best regards

jalowin avatar Apr 13 '16 15:04 jalowin

this demo is worked for me But @jalowin I am not sure why you need push stream by ffmpeg? from this demo, it seems load from a local file "spreedmovie.hevc" this demo access hevc data from websocket, so you must need open http://localhost:8080/ to access streaming

cochiachang avatar Apr 10 '23 11:04 cochiachang