video4linux

Cross-Platform webcam access [closed]

柔情痞子 提交于 2020-01-01 03:06:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a cross-platform video capture library, for webcam access. One that wraps V4L/V4L2 on Linux, DirectShow on Windows, and QuickTime on the Mac. C or C++ is preferred, but I can work in Java or Python if those have better options for libraries. 回答1: The OpenCV (Open Source Computer Vision) works

Why can I stream h264 encoded video from webcam to BOTH display and file, but NOT raw video?

ぃ、小莉子 提交于 2020-01-01 00:43:10
问题 I want to stream raw video from a Logitech C920 webcam and while both displaying and saving the video to file using GStreamer 1.0. This works if I stream h264 encoded video from the camera (the camera provides hardware encoded h264), but it fails if I stream raw video from the camera. However, if I only display, or only save to file, streaming raw video works. Why does it work with a h264 video stream but not with a raw video stream? h264 encoded video stream from camera to BOTH display and

Raspberry Pi ffmpeg video4linux2, v4l2 mmap no such device

江枫思渺然 提交于 2019-12-24 07:58:08
问题 On my Raspberry pi I've installed ffmpeg. At the begin I type uv4l --driver raspicam --auto-video_nr --width 640 --height 480 --encoding jpeg to run driver. Then I check if devoce0 is registered: ls -la /dev/video* and it returns video0 so it is registered. Then I type command to run server: ffmpeg -v verbose -r 5 -s 640x480 -f video4linux2 -i /dev/video0 http://localhost/webcam.ffm and the camera lights up for a while and then turns off and I get error like bellow: [video4linux2, v4l2] mmap:

Cross-Platform webcam access [closed]

ε祈祈猫儿з 提交于 2019-12-03 06:23:38
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I'm looking for a cross-platform video capture library, for webcam access. One that wraps V4L/V4L2 on Linux, DirectShow on Windows, and QuickTime on the Mac. C or C++ is preferred, but I can work in Java or Python if those have better options for libraries. The OpenCV (Open Source Computer Vision) works under Linux, Windows and Mac OS X. I use OpenCV under Mac OS X and it works very well with the built-in iSight of my

Why can I stream h264 encoded video from webcam to BOTH display and file, but NOT raw video?

…衆ロ難τιáo~ 提交于 2019-12-03 03:58:23
I want to stream raw video from a Logitech C920 webcam and while both displaying and saving the video to file using GStreamer 1.0. This works if I stream h264 encoded video from the camera (the camera provides hardware encoded h264), but it fails if I stream raw video from the camera. However, if I only display, or only save to file, streaming raw video works. Why does it work with a h264 video stream but not with a raw video stream? h264 encoded video stream from camera to BOTH display and file (WORKS): gst-launch-1.0 -v v4l2src device=/dev/video0 \ ! video/x-h264,width=640,height=480