LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-09-2011, 01:40 PM   #1
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Rep: Reputation: 0
Is "Motion detection" sw linked to liberaries?


Hello,
How is Motion Detection software interpreted, and who is responsible for the interpretation operation?
Is motion.conf linked to a specific libraries?

I'd be grateful If I get some help.
Thanks in advanced.
 
Old 05-09-2011, 01:43 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Motion detection is done however the developers of the motion detection software you are using designed it to work. motion.conf is presumably a text configuration file, so it not linked to anything, as it's not code. If you want to study the motion code, then you should get the source from their project page and read it. You can also do something like "ldd /usr/bin/motion" and that will technically show you what library options are linked to it, but that's hardly the way to start learning about motion detection.
 
1 members found this post helpful.
Old 05-09-2011, 01:56 PM   #3
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
I just want to have an overview .. I want answer for my questions that in my mind.
e.g.
Quote:
videodevice /dev/video0
Quote:
input 8
videodevice /dev/video0 #How it know that mean listen to get an input for device video0?
input 8 #How it know that means, the input is USB webcam ?
Who is translate that script file (motion.conf)? Who understand it to execute it?

Last edited by MODYSAMA; 05-09-2011 at 03:04 PM.
 
Old 05-09-2011, 02:26 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by MODYSAMA View Post
videodevice /dev/video0 #How it know that mean listen to get an input for device video0?
input 8 #How it know that means, the input is USB webcam ?
Who is translate that script file (motion.conf)? Who understand it to execute it?
The motion detection software interprets that file (it is not a script, it is a configuration file). It knows how to interpret that file, because the developers (that designed both, the software and the configuration file) have written it in that way.
 
1 members found this post helpful.
Old 05-09-2011, 03:01 PM   #5
MODYSAMA
Member
 
Registered: Dec 2010
Posts: 144

Original Poster
Rep: Reputation: 0
Code:
$ sudo apt-get install motion
I installed it usinf that command.

I found motion.conf +4 thread.conf (case I am going to control more than 1 webcam) in /etc/motion
I don't know where is the source of the software, Do you have where find it to understand it parallel to the configuration file?
 
0 members found this post helpful.
Old 05-09-2011, 03:40 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by MODYSAMA View Post
I don't know where is the source of the software, Do you have where find it to understand it parallel to the configuration file?
You can install the source in your current directory with
Code:
apt-get source motion
 
1 members found this post helpful.
Old 05-09-2011, 04:41 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by MODYSAMA View Post
Code:
$ sudo apt-get install motion
I installed it usinf that command.

I found motion.conf +4 thread.conf (case I am going to control more than 1 webcam) in /etc/motion
I don't know where is the source of the software, Do you have where find it to understand it parallel to the configuration file?
Please be aware that you can find this stuff out for yourself very very easily by just googling for it. You have just picked on one arbitrary bit of software, it is not a standard, it is just some developers writing a bunch of code as they see fit. If you think that a configuration file is some magical standard, I really think you need to take a step back from it and learn more of the basics.
 
1 members found this post helpful.
  


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
How to know if a symbol refers to a static linked library with "nm" jose_luis_fdez_diaz Linux - Newbie 1 04-23-2011 08:42 PM
Help! "Motion" Configuration with USB webCam. MODYSAMA Linux - Newbie 1 01-11-2011 08:41 AM
Error with "SDL_MouseMotionEvent *motion = event->motion;" aatwell Programming 3 11-30-2007 01:46 PM
Disabling hardware detection of "reboot" and "power" buttons Sabinou Linux - General 3 08-21-2006 07:03 PM
music/sound in general plays in "slow motion" tvstonydanza Linux - General 0 01-29-2004 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 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