I have a usb camera that isn't directly identified as a camera by the pi but it streams on /dev/video0. I updated the command to the following:
ffmpeg -f v4l2 -framerate ${fps} -video_size ${config.video.width}x${config.video.height} -i /dev/video0 -c:v libx264 -preset ultrafast -b:v ${bitrate} -tune zerolatency -pix_fmt yuv420p -f mpegts udp://${config.host}:${config.port_udp}
I am able to test it using the ffplay command but I am not able to see the video feed on the website. The data is being transmitted and i can see the fps and bitrate in the corner of the screen.
I have a usb camera that isn't directly identified as a camera by the pi but it streams on /dev/video0. I updated the command to the following:
ffmpeg -f v4l2 -framerate ${fps} -video_size ${config.video.width}x${config.video.height} -i /dev/video0 -c:v libx264 -preset ultrafast -b:v ${bitrate} -tune zerolatency -pix_fmt yuv420p -f mpegts udp://${config.host}:${config.port_udp}
I am able to test it using the ffplay command but I am not able to see the video feed on the website. The data is being transmitted and i can see the fps and bitrate in the corner of the screen.