131 / h264-live-player

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

Video distortion from RTSP camera #89

Open kovenko opened 3 years ago

kovenko commented 3 years ago

I connected an RTSP H.264 IP camera, added a config, the image is distorted. Can you tell me what I'm doing wrong? Thank

    "-rtsp_transport", "tcp",
    '-re',
    "-i", "rtsp://10.3.1.230:554/user=admin&password=&channel=1&stream=0.sdp",
    "-video_size", '1280x720',
    "-an",
    '-pix_fmt', 'yuv420p',
    '-c:v',  'libx264',
    '-vprofile', 'baseline',
    '-f' ,'h264',
    '-'
];

ffmpeg -rtsp_transport tcp -re -i rtsp://10.3.1.230:554/user=admin&password=&channel=1&stream=0.sdp -video_size 1280x720 -an -pix_fmt yuv420p -c:v libx264 -vprofile baseline -f h264 -

image

kovenko commented 3 years ago

Change width & height const server = http.createServer(app); const silence = new WebStreamerServer(server, { width : 1280, height: 720, });