h264-live-player icon indicating copy to clipboard operation
h264-live-player copied to clipboard

got a noisy stream image

Open iloveyou99 opened this issue 8 years ago • 2 comments

Thank you for the nice project! I want to use my own WebSocket Server IIS to send the H264 to the client by websokcet . Hence, I use your live-player only for displaying the frames in a Chrome browser. After i used the player ,I can get streams and the player can draw streams on canvas , everything work very well . But sometimes the image drawing in canvas get noisy image to much . my ffmpeg command : ffmpeg -re -rtbufsize 1500M -f dshow -i video="AVerMedia HD Capture C985 Bus 2" -framerate 30 -pix_fmt yuv420p -c:v libx264 -profile:v baseline -coder 0 -wpredp 0 -tune zerolatency -s 320x240 -f rawvideo

normal image: _000

noisy image: _001

test page : https://blive2.crazybet.win/h264liveshow.html all function of buttons in this test page is disable, and player will auto play.

i spilt streams with 00 00 00 00 nal in my IIS server . please give me a advice ,thank you for your help

iloveyou99 avatar Jun 21 '17 07:06 iloveyou99

Are you dropping frame on your IIS server ? Can you post some of the server (streamer) code ?

I guess frame dropping is the reason behind this issue, yet it's best to skip frame rather than to have a delay (if you attempt real-time video feedback) - nice integration, though

131 avatar Jun 21 '17 08:06 131

iis websocket server is only broadcasting to all client when get byte message : void onmessage(byte [] data ) {
if (ws.ReadyState == WebSocketState.Open) { ws.broadcast(data ); //send to server }

 }

iloveyou99 avatar Jun 21 '17 09:06 iloveyou99