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

Some pixels are shifted on the resulting frame #29

Open
a-petit opened this issue Aug 16, 2016 · 1 comment
Open

Some pixels are shifted on the resulting frame #29

a-petit opened this issue Aug 16, 2016 · 1 comment

Comments

@a-petit
Copy link

a-petit commented Aug 16, 2016

Hello,

I'm testing fswebcam with a Logitech Webcam C930e on ubuntu 16.04 LTS.

Running :

fswebcam -r 1920x1080 --no-banner --no-title --jpeg 95 -d /dev/video1 /tmp/output.jpg -v

produce the following verbose log :

--- Opening /dev/video1...
Trying source module v4l2...
/dev/video1 opened.
src_v4l2_get_capability,87: /dev/video1 information:
src_v4l2_get_capability,88: cap.driver: "uvcvideo"
src_v4l2_get_capability,89: cap.card: "Logitech Webcam C930e"
src_v4l2_get_capability,90: cap.bus_info: "usb-0000:00:14.0-2"
src_v4l2_get_capability,91: cap.capabilities=0x84200001
src_v4l2_get_capability,92: - VIDEO_CAPTURE
src_v4l2_get_capability,103: - STREAMING
No input was specified, using the first.
src_v4l2_set_input,181: /dev/video1: Input 0 information:
src_v4l2_set_input,182: name = "Camera 1"
src_v4l2_set_input,183: type = 00000002
src_v4l2_set_input,185: - CAMERA
src_v4l2_set_input,186: audioset = 00000000
src_v4l2_set_input,187: tuner = 00000000
src_v4l2_set_input,188: status = 00000000
src_v4l2_set_pix_format,520: Device offers the following V4L2 pixel formats:
src_v4l2_set_pix_format,533: 0: [0x56595559] 'YUYV' (YUYV 4:2:2)
src_v4l2_set_pix_format,533: 1: [0x47504A4D] 'MJPG' (Motion-JPEG)
Using palette MJPEG
src_v4l2_set_mmap,672: mmap information:
src_v4l2_set_mmap,673: frames=4
src_v4l2_set_mmap,722: 0 length=4147200
src_v4l2_set_mmap,722: 1 length=4147200
src_v4l2_set_mmap,722: 2 length=4147200
src_v4l2_set_mmap,722: 3 length=4147200
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Disabling banner.
Clearing title.
Setting output format to JPEG, quality 95
Writing JPEG image to '/tmp/output.jpg'.

Up to here everything looks fine but the output's pixels appears shifted :

output

Do someone have any idea of what's happening ?

On the same environmet, the webcam works fine with FFmpeg and web apps that make use of the device through navigator.

@mmiscool
Copy link

mmiscool commented Oct 2, 2019

I am seeing this same problem on the raspberry pi.

I have used the options to skip frames and lowered the FPS but still get the image tearing.

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

2 participants