tmarrinan / node-demux

GNU General Public License v3.0
8 stars 7 forks source link

Getting RGB from YUV source #6

Closed acgourley closed 8 years ago

acgourley commented 8 years ago

I need to get the RGB888 values so that I can move these frames into some graphics packages inside node which expect that as input. After some research I see I can use libav's sws_context approach to do this. Is this what you would suggest? If not, do you see something easier? Thanks!

tmarrinan commented 8 years ago

Yes, this seems like a good approach (if needing RGB in the node server). Otherwise, I've used YUV buffers client-side in a browser and use a WebGL shader to do the conversion from YUV to RGB.