Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uvc gadget doesn't worked on mac and windows in MJPEG mode #3

Open
letourng opened this issue Apr 24, 2020 · 3 comments
Open

uvc gadget doesn't worked on mac and windows in MJPEG mode #3

letourng opened this issue Apr 24, 2020 · 3 comments

Comments

@letourng
Copy link

Hello,

I am trying to mount a pi4 as a uvc gadget on my mac OSx laptop and also on my windows laptop.

When I tested with -d option I can see a scrolling test pattern like this https://processors.wiki.ti.com/images/1/12/Luvcview.jpg

But when i launched the following command it doesn't worked:

sudo modprobe g_webcam streaming_maxpacket=1024
./uvc-gadget -u /dev/video2 -v /dev/video0 -f 1 -r 1

When i tested the same command on linux it's working pretty well actually but not on windows/mac. To get the video stream i am using zoom software application.

Could help me to resolve the issue?

@steeley
Copy link

steeley commented Apr 26, 2020

The only thing I could get working is using a USB webcam plugged into PI4 with these commands:
sudo uvc-gadget -u /dev/video2 -v /dev/video0
play on Mac:
ffplay -flags low_delay -fflags nobuffer -f avfoundation -video_size 640x360 -framerate 15 -i "0"

@zainmehdi
Copy link

Any progress on it ? I am having the exact same issue with ubuntu. I am able to get the webcam stream pretty fine on both windows and ubuntu but when I use a video file only get striped patterns. Has anyone got it working with dummy video device ?

@harsh04102002
Copy link

harsh04102002 commented Jun 21, 2023

Hi @letourng , Can you please tell are you playing a video(like .mp4) or still image over that /dev/video2 ? Will appreciate your response .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants