LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-27-2004, 06:25 PM   #1
maldini1010
Member
 
Registered: Sep 2004
Location: Montreal
Posts: 53

Rep: Reputation: 15
capture video for linux


Hi all,

I have just been introduce to the open source world. However im having some difficulties in understanding how it all works. Is there some sort of procedure? For instance once I download the software( say a video capture program) and I want to compile,build..... the code in order to integrated in to my already existing project, I always run into many problems, since the downloaded codes already come with a bunch of make, configure. on and on..........


Ps if you guys wrote any code to capture from a usb camera on linux, please let me know it would be greatly appriciated.

Thanks alot.
maldini1010
 
Old 11-27-2004, 08:21 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
If you download a "source" package (usually called [something].tar.gz) you will have to read the "README" and "INSTALL" files. the "INSTALL" file usually says "These are generic instructions" at the top, if it does say that then you can bet it will tell you to do this:

1. Extract the archive:
cd /path/to/[something].tar.gz
gunzip -v [something].tar.gz
cd ./[something]
./configure
make
su
[password]
make install

Read any errors that may occur carefully, errors usually mean something else (a "dependancy") is required on your system.
If all goes well then your software is correctly installed.

As for video capture software, you will have to search the forums. Your camera should, when plugged in, have created a node in /dev folder; usually something like /dev/video0 or /dev/input/video0, any piece of software can now access your camera.
I use mplayer
Here is my code for using mplayer to display the output of my camera:
Code:
mplayer -tv driver=v4l:device=/dev/video1:width=352:height=288 -vf pp=li tv://
To capture the stream:
Code:
mencoder -tv driver=v4l:device=/dev/video1:width=352:height=288 -vf pp=li -oac=lavc -ovc=lavc -o ~/capture.avi tv://
(mencoder is part of mplayer)

Last edited by Tuttle; 11-27-2004 at 09:03 PM.
 
Old 01-17-2005, 12:44 PM   #3
maldini1010
Member
 
Registered: Sep 2004
Location: Montreal
Posts: 53

Original Poster
Rep: Reputation: 15
thank you, mplayer was very useful
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best linux video capture card jamessp007 Linux - Hardware 4 04-24-2016 11:09 PM
Linux Screen/Video Capture ? stakcbr Linux - Software 7 04-12-2013 12:36 PM
Best analogue video capture card for use with linux slothpuck Linux - Hardware 5 09-04-2005 03:55 PM
linux video capture and encoding it to divx dwaldie Linux - Newbie 2 04-14-2004 07:46 AM
Capture support for dvd and video capture in linux is it even going to be real ever? maximalred Linux - Distributions 3 07-06-2003 07:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration