strukturag / libde265.js

JavaScript-only version of libde265 HEVC/H.265 decoder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

streaming support?

soliton4 opened this issue · comments

hi, is there a way to support decoding of a stream?
i want to encode a video stream using avconv. i transport the output to the browser using stdout and socket.io.

a demo what i am doing can be watched here:
https://www.youtube.com/watch?v=nDuHEMA5uSw

is it possible to use the libde265 for this purpouse?
thx

Sure, you can push the raw H.265 bitstream into the decoder class in arbitrary chunks. Check the decoder loop of the RawPlayer class for an example (passes chunks of 4096 bytes into the decoder).

You could send the chunks from the server to the client using WebSockets or similar.