Hello,
So, I’m building an app that uses a local webcam as an input.
The webcam is on /dev/video0, every other video interface can access it properly and display the feed (cheese, camset, VLC, OBS, Firefox, …). Hardware’s an ELP HD Digital Camera.
ffmpeg -f v4l2 -list_formats all -i /dev/video0
outputs
[video4linux2,v4l2 @ 0x5feaf97ec100] Compressed: mjpeg : Motion-JPEG : 640x360 1280x720 1920x1080
I’m using Ubuntu 24 and Unity 2023. I’ve also tested with Unity 6 with no success. I have tested this test repo as well, on both Unity versions, with no success either.
Here’s the RT i’m feeding the data to, with actual datas:
using mjpg-streamer and this script - with the same RT - works well.
Which makes me say:
- Unity have access to the webcam (no error message, and, while broken, i have data incoming).
- Webcam feed is OK (other programs access it well).
- RenderTexture is OK (streamed mjpegs from the same device display correctly)
Am i missing something or does Unity have a problem accessing MJPG on Linux ?
Thanks for your help!