Video capture on Linux? [closed]

时光毁灭记忆、已成空白 提交于 2020-01-01 09:54:06

问题


We need to capture live video and display easily on Linux. We need a cheap card or USB device with a simple API. Anyone want to share some experience?


回答1:


Use the video4linux library. I've used it with a c++ program and was able to capture webcam frames within about an hour. (Very easy to use and setup)




回答2:


If you need to program, you're best off using GStreamer, a multimedia framework under Linux.

Cheese, mentioned by jackbravo, is based on GStreamer, as is Flumotion, a streaming server I work on.




回答3:


As mentioned, Use dvgrab to capture from a Firewire interface from the camera, then use tools such as ffmpeg (command line) or kino (simple gui video editor) to process the video as needed. PCI based Firewire cards are relatively inexpensive and easy to find.

Here are some examples:

  • continuous capture from firewire, autosplit every couple of minutes

    dvgrab --size 500 --autosplit <filename>
    
  • watch the camera live

    dvgrab - | mplayer -
    

Be aware that some recent distros (e.g. Fedora8) are using new but half-baked firewire drivers. However, Ubuntu works great.




回答4:


There are "sealed" camera solutions out there with mini-webservers and an ethernet port on the back. Just plug it in to the network, set its IP, and open up a browser... in linux or wherever

If you want to capture in linux, I once had a cheap webcam capturing single frames in a perl script, which could have been modified for real time - though that was about 10 years ago. Anyway, its possible :-/




回答5:


There's the cheese gnome application. Really simple to use. Not too much features, just video capture.




回答6:


openCV will allow you to capture individual frames from a camera and save to disk. If you need to then manipulate these to create a video, I would suggest netpbm, a pretty powerful set of command line tools you can use with some shell scripting to make a video or do whatever it is you need.




回答7:


Another option is to use Firewire (IEEE1394) cameras, such as most common DV camcorders. They tend to work really well and give a lot better video than cheap web cams, and there is a plethora of tools in Linux for working with dv video, such as dvgrab.




回答8:


If you use java, v4l4j makes it very simple to capture frames from any V4L device. It also allows you to control the device from java. I used it with a PTZ webcam (logitech quickam orbit), and I could control usual thigs like brightness, saturation and auto-white balance, but also the tilt and pan of the camera. Very handy !



来源:https://stackoverflow.com/questions/83899/video-capture-on-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!