131 / h264-live-player

A live h264 player for the browser (ideal for raspberrypi / raspicam )
MIT License
1.08k stars 251 forks source link

some resolution video's image is broken #79

Closed rura6502 closed 4 years ago

rura6502 commented 4 years ago

image

some video's image is not working, this images resolution is 1922x1082. I already matched video size. That video was get from this command.

 .\ffmpeg.exe -i MYRTSP_FROM_CAMERA -an -sn -vf scale=1922:1082 -c:v libx264 -vprofile baseline -bufsize 6M -b:v 300k -r 10 -pix_fmt yuv420p -tune zerolatency -preset ultrafast -g 120 -f rawvideo 1922_1082_5sec.h264

I found out some resolution not working

I want to stream rstp to my webpage and I set the video size for fitting my webpage. please help me. thanks.

YellowQC commented 4 years ago

have you resolved this problem?i got it,too

rura6502 commented 4 years ago

@huangqichao nope

rura6502 commented 4 years ago

I solved this problem. firstly, using value which can print clearly and edit the size using css style. you should use same video output size, canvas size. and then edit canvas element css size.