Studio 13.37This forum is for the discussion of Studio 13.37.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I would like to capture an image or a brief movie from a webcam, but I don't know which Studio1337 utility is best for this? I tried typing guvcview into a console but came up with an error:
"guvcview: error while loading shared libraries: libavcodec.so.52: cannot open shared object file: No such file or directory"
I am not familiar with most of the programs in the multimedia menu so would appreciate any suggestions which one should I use?
pls post the name model of your webcam and its usb details from this command pls
also is this a inbuilt web cam or on a lead?
Thanks aus9, the webcam is inbuilt in an Acer Aspire One (model KAV60, D250-0BQk) and the lsusb output is:
Code:
sh-4.1# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 1e3d:2096
Bus 001 Device 003: ID 04f2:b084 Chicony Electronics Co., Ltd
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
so I guess the Chicony entry will be the webcam. I think it is uvc compliant as I seem to remember having used guvcview on this netbook when testing other distros.
I thought there might be an equivalent program already installed in Studio 1337.
I just loaded Skype as a trial and it works, so the camera is obviously hooked up and working ok, so I just need a program to access the data stream and let me take a pic or an avi.
You can use the Mplayer for capture image from webcam.
Thank you. I just tried the Gnome Mplayer that is installed in Studio1337 but I can't see how to make it display the webcam image. Do you think I would need a plugin of some type? Or maybe a specific version of Mplayer?
Which part of the menu allows selection of webcam please? thx
Sorry for the delay in replying guys. I will try all suggestions soon. Starting with the "the tv://" command:, yes thanks, it does work! The image displays and I was able to use the prtsc key to capture the screenshot.
console response was:
Code:
sh-4.1# mplayer tv://
mplayer: Symbol `ff_codec_bmp_tags' has different size in shared object, consider re-linking
MPlayer SVN-r33785-4.5.2 (C) 2000-2011 MPlayer Team
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: Webcam
Capabilities: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
V: 0.0 4421/4421 ??% ??% ??,?% 0 0
v4l2: ioctl set mute failed: Invalid argument
v4l2: 4423 frames successfully processed, 401 frames dropped.
Exiting... (Quit)
sh-4.1#
Yes thanks, that worked great. I tried it first by just installing the guvcview pet but on it's own that didn't work (missing library) so I installed the DEP pet aswell and then it was good to go. Managed to record still image and avi aswell. Fantastic.
Just realised that the inbuilt webcam is not going to help me record the screen image (facing the wrong way of course...) - I will have to work out how to ignore the inbuilt cam and activate an external wired one.
Quote:
if the module loads ok try running as a local user the command ....gucview....in a terminal and report any errors pls
Thanks aus9. Guvcview working perfectly now. And sound working too (although it has a sort of slight warbling sound. Will investigate that later)
but if you mean screen image....there a lot of screen shot software ...both command and gui
Actually I'm hoping to be using 3 things - the webcam will be handy for some avi recordings and static screenshots will be handy for others. also I have another thread request for a "screen grabber" of the type that records mouse actions and screen contents. Theres a couple of options there but I have to skill up on the slack-build process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.