I am currently prototyping a video application with a ZyboZ7 board and a PCam camera. I managed to get the Petalinux demo to work properly and get the images as a binary file using the yavta utility.
For my application, I don't want images as binary files but as buffers, which will be sent over ethernet. To do this, I try to adapt yavta using the source code found at https://github.com/fastr/yavta . At first, I try to make it work with the goal of getting the same result as before (frame as a binary file). I am stuck at this stage. My command is :
Error opening device /dev/video0: neither video capture nor video output supported.
It seems like the source I found is not the one loaded in Petalinux. Do you have any information on how to get the actual source code from Yavta (if it is possible)?
If not, do you have any idea on how to fix this error?
Question
Antoine_q
Hello forum,
I am currently prototyping a video application with a ZyboZ7 board and a PCam camera. I managed to get the Petalinux demo to work properly and get the images as a binary file using the yavta utility.
For my application, I don't want images as binary files but as buffers, which will be sent over ethernet. To do this, I try to adapt yavta using the source code found at https://github.com/fastr/yavta . At first, I try to make it work with the goal of getting the same result as before (frame as a binary file). I am stuck at this stage. My command is :
width=1920 && height=1080 && rate=15
media-ctl /dev/media0 -p
media-ctl -d /dev/media0 -V '"ov5640 2-003c":0 [fmt:UYVY/'"$width"x"$height"'@1/'"$rate"' field:none]' media-ctl -d /dev/media0 -V '"43c60000.mipi_csi2_rx_subsystem":1 [fmt:UYVY/'"$width"x"$height"' field:none]' v4l2-ctl -d /dev/video0 --set-fmt-video=width="$width",height="$height",pixelformat='YUYV'
./yavta -c14 -f YUYV -s "$width"x"$height" -F /dev/video0
The error I am having is :
Error opening device /dev/video0: neither video capture nor video output supported.
It seems like the source I found is not the one loaded in Petalinux. Do you have any information on how to get the actual source code from Yavta (if it is possible)?
If not, do you have any idea on how to fix this error?
Thanks for your time.
Antoine
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now