LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-17-2017, 02:29 PM   #16
faruk.c
LQ Newbie
 
Registered: Feb 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by Xeratul View Post
"(Scheme function)" shall be replaced by " xterm -e 'pkill mplayer ; mplayer -fs -zoom -tv device=/dev/video0 tv://' "
But, " xterm -e 'pkill mplayer ; mplayer -fs -zoom -tv device=/dev/video0 tv://' " command isn't working for me.
 
Old 04-17-2017, 02:35 PM   #17
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by faruk.c View Post
But, " xterm -e 'pkill mplayer ; mplayer -fs -zoom -tv device=/dev/video0 tv://' " command isn't working for me.
try:

xterm -e mplayer -fs -zoom -tv device=/dev/video0 tv://

do you have even /dev/video0 available with ls (list file) ?
 
Old 04-18-2017, 04:54 AM   #18
faruk.c
LQ Newbie
 
Registered: Feb 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Xeratul View Post
try:

xterm -e mplayer -fs -zoom -tv device=/dev/video0 tv://

do you have even /dev/video0 available with ls (list file) ?
Thanks for reply again, I checked /dev/ folder. In normally, there isn't "video0" in /dev/ folder; after pressing "FN+F6", yes there is "video0" in /dev" folder.

I run command which above, just open xterm with this message: "Can't execvp mplayer: No such file or directory."

I guess, FN key is a switch for on/off and hardware related.
 
Old 04-18-2017, 04:55 AM   #19
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
> I guess, FN key is a switch for on/off and hardware related.

Yes, so it is.
 
Old 04-18-2017, 05:46 AM   #20
faruk.c
LQ Newbie
 
Registered: Feb 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hi everyone,

I found how works FN+F6 for me. This key is hardware related for switching on/off device. I tested it these steps:

1. I pressed FN+F6 and turned on webcam.
2. Restart computer.
3. Try open webcam and yes, webcam opened.

My goal was open webcam at the beginning and I made it.

Thanks too much to everyone!
 
2 members found this post helpful.
Old 04-18-2017, 12:03 PM   #21
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Glad you figured it out, and thank your for posting your solution which helps everyone!

If this thread is resolved, please use the Thread Tools options at top of the first post to mark it as solved.

Good luck!
 
  


Reply

Tags
bash, python, webcam


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
trying to use /dev/uinput to turn on integrated webcam vomv1988 Linux - Software 1 04-07-2013 10:33 PM
[SOLVED] Python TypeError when calling Python program from a Bash script noppeli Programming 2 01-15-2013 08:06 AM
LXer: Turn your Android Phone into a Wireless Camera using IP Webcam for Free LXer Syndicated Linux News 0 09-23-2011 07:41 PM
LXer: Howto Turn your old webcam into a motion-detecting security camera in Linux LXer Syndicated Linux News 0 12-27-2010 06:00 PM
turn off auto exposure on a uvc webcam zoran119 Slackware 7 10-22-2009 06:27 AM

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

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