Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Jul 2017, 12:55
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Install a webcam in Slacko 5.3
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
greengeek


Joined: 20 Jul 2010
Posts: 4613
Location: Republic of Novo Zelande

PostPosted: Sun 15 Jan 2012, 05:15    Post subject:  Install a webcam in Slacko 5.3  

This post details my (successful) attempt at adding a usb webcam to my Toshiba TE2100 laptop running Slacko 5.3

Step 1

Choose a webcam that is “uvc compliant”. These webcams tend to be the newer ones (up to about 3 or 4 years old?). If you choose a non-uvc webcam it will require a specific driver and although they can often be set up on Linux, it is nowhere near as easy as using a uvc compliant webcam.

(More notes regarding uvc and non-uvc webcams at the end of the post. That info might help you choose or reject a particular webcam)

The webcam I chose cost NZ$14 and is a “cheap chinese generic webcam” from Trademe (the New Zealand version of Ebay...)

In case anyone is interested, my particular webcam has a device ID of eb1a:2571 (The device ID of your webcam becomes important in determining whether or not uvc is capable of connecting to it, and it can also help you google information about any problems you might have with whatever device you are using).


Step 2

Install guvcview.pet (courtesy of rcrsn51) Available here -
http://www.murga-linux.com/puppy/viewtopic.php?p=577716#577716
(Ignore the comments about other things you need, there is another .pet I will mention below which covers those...)
(This guvcview pet installs the programme that interfaces with uvc compliant webcams and accepts the video stream via usb from the webcam)

Step 3

Install guvcview-slack-DEP.pet (courtesy of rcrsn51) Available here -
http://www.murga-linux.com/puppy/viewtopic.php?p=577841#577841
(This installs the extra dependencies for guvcview to run on Slacko)

This info highlighted by 01micko at:
http://www.murga-linux.com/puppy/viewtopic.php?t=73594&sid=b0f43fa4168dd45b932b258d73f84f87

Step 4

Turn off the computer.
Plug in the webcam.
Reboot
Run guvcview (in Menu, Multimedia)

You should now see an image from your webcam, and a control window that allows you to finetune the image.

If you close down guvcview and run Skype instead, you should be able to choose “options” within the Skype menu and test the webcam. If you experience a problem where guvcview correctly accesses the webcam but Skype does NOT appear to link to the webcam, you may still be able to use the webcam for Skype purposes by running guvcview at the same time as Skype, and using the “share a portion of the screen” function within the Skype options. (As suggested by 666philb at http://www.murga-linux.com/puppy/viewtopic.php?p=574243#574242)


Other Notes:

If you want to know if your webcam is supported by uvc, you may find this site useful

http://www.ideasonboard.org/uvc/

If you want to know the device ID for your webcam, plug it into your usb and then open up a terminal and type dmesg. You should see the messages refer to a number something like the format of eb1a:2571. Each different device has a different number depending on manufacturer and model.



If you are wanting to use a Logitech webcam you may find the chart on this other website useful for identifying what your webcam is actually called: (even though the site is intended for Windows users it has useful Logitech model info)

http://logitech-en-amr.custhelp.com/app/answers/detail/a_id/3428/~/webcam-software-and-driver-support-for-windows

Some models (despite having a common name) may work or not work depending on manufacturing date. See the notes on the website.

Other info that may be of interest:
http://www.murga-linux.com/puppy/viewtopic.php?t=21464
slacko_webcam.JPG
 Description   
 Filesize   45.66 KB
 Viewed   10939 Time(s)

slacko_webcam.JPG


Last edited by greengeek on Tue 19 Feb 2013, 04:28; edited 2 times in total
Back to top
View user's profile Send private message 
tytower

Joined: 24 Feb 2007
Posts: 440
Location: Green Island Cairns for the winter

PostPosted: Tue 05 Jun 2012, 04:56    Post subject: Re: Install a webcam in Slacko 5.3  

greengeek wrote:

If you want to know the device ID for your webcam, plug it into your usb and then open up a terminal and type dmesg. You should see the messages refer to a number something like the format of eb1a:2571. Each different device has a different number depending on manufacturer and model.


Better to use "lsusb"

_________________
Neither my Family nor my Property are Government issues. Governments should do what they were designed to do Manage the larger issues best done by Governments
To stop corruption give them 3 times the penalty. Get their agreement on first employment.
Back to top
View user's profile Send private message 
linbie

Joined: 09 Jan 2010
Posts: 63

PostPosted: Sun 27 Jan 2013, 04:12    Post subject: EyeToy - Works  

Works a treat with an old PS 2 eyetoy (nimtel type - i.e black)
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1300
Location: Japan

PostPosted: Wed 05 Jul 2017, 03:40    Post subject:  

Did someone get this to work an a later Slacko?

After installing guvcview-1.5.0-s.pet and guvcview_slack_DEP-1.5.0.pet all I get is an error message
Code:
# guvcview
guvcview 1.5.0
Fatal:g_thread NOT supported


Distro:Slacko5.6
HW:Netbook HP Mini 210, 1GB
Camera: ELECOM UCAM-DLK 130TBK
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4613
Location: Republic of Novo Zelande

PostPosted: Wed 05 Jul 2017, 04:19    Post subject:  

On Slacko 5.6 I use the guvcview pet available from OscarTalks repo here:
http://smokey01.com/OscarTalks/
Hopefully that will get you going - or is there some specific feature in the earlier guvcview pet that you need?
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1300
Location: Japan

PostPosted: Wed 05 Jul 2017, 06:08    Post subject:  

Thanks. Unfortunately still no luck. Most of the messages may be mere warnings but the final "segmentation fault" looks deadly.
Code:
# guvcview
guvcview 1.7.3
file guvcview_video.mkv has extension type 1
file guvcview_image.jpg has extension type 0
file guvcview_image.jpg has extension type 0
Video file suffix detected: 0
Image file suffix detected: 0
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
video device: /dev/video0
vid:064e
pid:f100
driver:uvcvideo
device doesn't seem to support uvc H264 (0)
Init. HP Webcam-50 (location: usb-0000:00:1d.7-4)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
checking muxed H264 format support
device doesn't seem to support uvc H264 (0)
checking format: MJPG
Format unavailable: MJPG
Init v4L2 failed !!
Init video returned -2
trying minimum setup ...
   format: YUYV
   resolution: 640 x 480
   framerate: 1/24
video device: /dev/video0
vid:064e
pid:f100
driver:uvcvideo
device doesn't seem to support uvc H264 (0)
Init. HP Webcam-50 (location: usb-0000:00:1d.7-4)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/24,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/24,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/24,
checking muxed H264 format support
device doesn't seem to support uvc H264 (0)
checking format: YUYV
fps is set to 1/24
drawing controls

Segmentation fault
#
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4613
Location: Republic of Novo Zelande

PostPosted: Wed 05 Jul 2017, 13:41    Post subject:  

Hmmm. It may not be the fault of Slacko 5.6
Do you have the option of testing with a different camera and/or different PC?

I don't understand why it is wanting a server socket or why jack is needed - I do not have jack in my system and have not experienced these problems. Maybe I just got lucky with my hardware combination.

EDIT : Well as it turns out I do get error messages. I just did not pay attention to them. No segmentation fault though:

Code:
uvcview
guvcview 1.7.3
file guvcview_video.mkv has extension type 1
file guvcview_image.jpg has extension type 0
Could not open /root/.config/guvcview/video0 for read,
 will try to create it
write /root/.config/guvcview/video0 OK
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
video device: /dev/video0
vid:04f2
pid:b008
driver:uvcvideo
device doesn't seem to support uvc H264 (0)
Init. Chicony USB 2.0 Camera (location: usb-0000:00:1a.7-4)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
checking muxed H264 format support
device doesn't seem to support uvc H264 (0)
checking format: MJPG
Format unavailable: MJPG
Init v4L2 failed !!
Init video returned -2
trying minimum setup ...
   format: YUYV
   resolution: 640 x 480
   framerate: 1/30
video device: /dev/video0
vid:04f2
pid:b008
driver:uvcvideo
device doesn't seem to support uvc H264 (0)
Init. Chicony USB 2.0 Camera (location: usb-0000:00:1a.7-4)
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 640, height = 480 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 352, height = 288 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 320, height = 240 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 176, height = 144 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 160, height = 120 }
   Time interval between frame: 1/30, 1/20, 1/15, 1/10, 1/5,
{ discrete: width = 1280, height = 800 }
   Time interval between frame: 2/15, 1/5,
{ discrete: width = 1280, height = 1024 }
   Time interval between frame: 2/15, 1/5,
checking muxed H264 format support
device doesn't seem to support uvc H264 (0)
checking format: YUYV
fps is set to 1/30
drawing controls

fps is set to 1/30

GUVCVIEW Signals:
  SIGUSR1: Video stop/start capture
  SIGUSR2: Image capture
  SIGINT (ctrl+c): Exit
examples:
   kill -s SIGUSR1 'pid'
   killall -s USR2 guvcview

Checking video mode 640x480@32bpp : OK
Back to top
View user's profile Send private message 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 572

PostPosted: Wed 05 Jul 2017, 16:07    Post subject:  

Code:
root# guvcview
guvcview 1.7.1

works in my tahr-6.0.2~6.0.5

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4613
Location: Republic of Novo Zelande

PostPosted: Thu 06 Jul 2017, 14:23    Post subject:  

My initial testing of 1.7.3 was done in a Slacko 5.6 derivative but that is not really a fair test so I also tried guvcview in a pristine boot of Slacko 5.6 and the result was the same.

I wonder if there could be any issue with locale? (I assume your locale is Japan...)

I have seen a number of posts lately highlighting strange issues that occur due to selection of locale so just thought I would mention it as a potential contributor.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1300
Location: Japan

PostPosted: Fri 07 Jul 2017, 03:42    Post subject:  

B.K. Johnson wrote:
works in my tahr-6.0.2~6.0.5
Which pet?
greengeek wrote:
I wonder if there could be any issue with locale?
Unlikely. I always start with a pristine Puppy and keep the locale as is, so it's "us"?

I also tried with a different Netbook (Lenovo IdeaPad S10-2). Same "segmentation fault" failure.
The camera works in Tahrpup with the VLC media player, but VLC is a bit heavy and may not be suitable for the task. What I need is a simple surveillance camera. Shooting 1 frame/sec or even less would be enough.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4613
Location: Republic of Novo Zelande

PostPosted: Fri 07 Jul 2017, 06:11    Post subject:  

What result do you get from the following?:
Code:
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30


EDIT : - also some interesting suggestions here:
https://askubuntu.com/questions/102755/how-do-i-use-ffmpeg-to-take-pictures-with-my-web-camera

EDIT2 : - I just tried running:
Code:
mplayer tv:// -tv driver=v4l2:device=/dev/video0
and at the same time I ran TAS and selected multiple frames at 1 second intervals - selection "region" only and grabbing the mplayer window. Hacky, but functional.

EDIT3 : - This post may be useful. Works for me: https://ubuntuforums.org/showthread.php?t=1939703&p=12451243#post12451243

Last edited by greengeek on Fri 07 Jul 2017, 15:18; edited 1 time in total
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1300
Location: Japan

PostPosted: Fri 07 Jul 2017, 09:22    Post subject:  

greengeek wrote:
What result do you get from the following?:
Code:
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30
The built-in camera responds. The same when I try the examples in your linked pages.

I need a way to tweak ffmpeg into using the attached external camera.
lsusb command tells me
Code:
# lsusb
Bus 001 Device 007: ID 056e:700f Elecom Co., Ltd
Bus 001 Device 003: ID 064e:f100 Suyin Corp.
Bus 001 Device 004: ID 0bda:0159 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0518:0001 EzKEY Corp. USB to PS2 Adaptor v1.09
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Elecom is in the list. Now what?
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4613
Location: Republic of Novo Zelande

PostPosted: Fri 07 Jul 2017, 15:28    Post subject:  

Not sure. Does it help to use device=/dev/video1 instead of device=/dev/video0? Does anything happen?

EDIT : Do you get valid outputs from either of the following syntax(es)?

Code:
ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 output.mkv

Code:
ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video1 output.mkv


EDIT2 : This may be worth a try:
Code:
ffmpeg -f video4linux2 -i /dev/video0 -vframes 1 test.jpg

Code:
ffmpeg -f video4linux2 -i /dev/video1 -vframes 1 test.jpg
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1300
Location: Japan

PostPosted: Sat 08 Jul 2017, 05:09    Post subject:  

greengeek wrote:
Not sure. Does it help to use device=/dev/video1 instead of device=/dev/video0?
Yes Very Happy
Works at least on one of my machines. I haven't figured out how to get the correct /dev/video# for a given device, but these are minor issues. Now I have to fine-tune the ffmpeg code and wrap it into a script.

Thanks for your help. Nevertheless the mysterious guvcview issue remains...
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4613
Location: Republic of Novo Zelande

PostPosted: Sun 09 Jul 2017, 03:33    Post subject:  

MochiMoppel wrote:
I haven't figured out how to get the correct /dev/video# for a given device, but these are minor issues.
Most of the answers I have seen seem to require v4l2-ctl utility but I don't have it in my system or know how big/intrusive/puppycompatible it is.
Two examples:
https://superuser.com/questions/1053314/v4l2-identifying-dev-video-via-lsusb
and:
https://askubuntu.com/questions/348838/check-available-webcams-via-command-line

Looks like there are potentially some clues here:https://stackoverflow.com/questions/4290834/how-to-get-a-list-of-video-capture-devices-web-cameras-on-linux-ubuntu-c/4290924#4290924

Maybe even a good answer here:
https://superuser.com/questions/902027/how-to-find-link-between-dev-video-and-lsusb-output
Specifically:
Quote:
Checking /sys/class/video4linux/video$N/name and /sys/class/video4linux/video$N/device/driver/* will give give you data, that you will let you find the lsusb line.


for the adventurous:
https://askubuntu.com/questions/715333/assign-webcam-to-a-specific-dev-video
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0911s ][ Queries: 13 (0.0050s) ][ GZIP on ]