We have a video grabbing loop that is able to grab frames from a webcam and then we process the images.
However I can’t seem to get the file open command to work to read in a video file.
The video was shot from a mobile phone, plays fine in vlc on the pc and had a default file extension of .mov which I renamed to .avi, (also tried .mp4 and .mpeg .
videoStreamAddress = “/home/lvuser/deploy/testmovie.mpeg”;
[ INFO:0] VIDEOIO: Enabled backends(3, sorted by priority): V4L2(1000); CV_IMAGES(990); CV_MJPEG(980)
(DEBUG) V4L: opening /home/lvuser/deploy/testmovie.mpeg
Cannot open the video cam /home/lvuser/deploy/testmovie.mpeg
If the string is /dev/video0 it works.
I have done this in the past on a separate co-processor, just fine.
Could the rio not have the v4l codecs to understand how to handle the file?