Closed Saad-Imtiaz closed 1 month ago
Hi, I guess the virtual camera cannot negotiate the resolution. You can try to remove the caps for the camera source or change the virtual camera output to 640x480. To remove the caps remove: ' video/x-raw, width=640, height=480 ! ' For additional issue please open a topic in our Community https://community.hailo.ai/
Okay, so I was able to solve my problem, it was a video format issue, I added the YUY2 format into the hailo_rpi_common.py (changed the lines from 162-166):
elif source_type == 'usb':
source_element = (
f'v4l2src device={video_source} name={name} ! '
'video/x-raw, format=YUY2, width=640, height=360 ! '
)
and when starting the stream of my CCTV camera I used this command:
ffmpeg -re -i rtsp://username:password@192.168.1.201:554/stream1 -r 30 -f v4l2 -vcodec rawvideo -pix_fmt yuyv422 /dev/video10
Hello,
I am trying to run it on a virtual camera source (using RTSP.to-webcam) to make my CCTV Camera output to dev/video8, but its giving me the following error :
I tested the camera feed using the
ffplay -f v4l2 /dev/video8
And it is showing the camera feed perfectly fine.