ws-qvh icon indicating copy to clipboard operation
ws-qvh copied to clipboard

WS-QVH buffer format and help

Open krishtoautomate opened this issue 2 years ago • 3 comments

Hi Can you help me, how ws-qvh works and what format, it is buffering its raw data. so i can use AVFOUNDATION ios library to mimic same.

krishtoautomate avatar Feb 01 '22 18:02 krishtoautomate

Hi. ws-qvh sends raw h264 NAL-units with additionally four bytes at the beginning ([]byte{00, 00, 00, 01}) over Web Socket. One NALU per message. That's all.

drauggres avatar Feb 01 '22 20:02 drauggres

I have pure swift version using AVFoundation, I ll see if I can stream to websocket. how port is managed? random?

krishtoautomate avatar Feb 01 '22 21:02 krishtoautomate

https://github.com/NetrisTV/ws-qvh/blob/dde948424463b4255c27e2897fa7c70eae691cc7/main.go#L23-L30

drauggres avatar Feb 02 '22 08:02 drauggres