LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-09-2010, 04:16 AM   #1
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Rep: Reputation: 15
problems with mplayer and webcams


I have three webcams of which, only one will work with recent kernels and Mplayer.

The working model is the built-in UVC camera in the Eeepc.

The other models are:

Quickcam messanger: stv06xx
pixart pac7311

these both seem to load all the appropiate modules and create the video devs, but fail to actually display anything with Mplayer.

I have tried several kernels (from 2.6.31.5 to 2.6.34), rebuilt Mplayer, updated gcc and glibc, all to no avail.

The UVC camera is on an Eeepc surf 4g, (32 bit Dothan core)
Other systems I have tried are both 64 bit quad processors (Xeon, and Core2)
Linux on the Xeon was built from the ground up, and the Core2 is running Slackware64 13/13.1

Is this an Mplayer problem, or have the kernel people concentrated on UVC to the detriment of other cameras? Should I be trying an older kernel ~2.6.24.xx ?

Any suggestions or thoughts?

Last edited by mudflap; 06-09-2010 at 01:19 PM.
 
Old 06-09-2010, 04:45 AM   #2
halvy
Member
 
Registered: Aug 2005
Location: Boston Massachussets, USA
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 893

Rep: Reputation: 41
Post

Does it work in other software?

You'll probably have better answers if you search the appropriate forums also for the items involved (ie. mplayer's, the web cam manufactures.. etc.)

Either way good luck and lettuce know
 
Old 06-09-2010, 12:42 PM   #3
gbowden
Member
 
Registered: Dec 2003
Location: Spain
Distribution: Slackware 14.1
Posts: 146

Rep: Reputation: 26
Post

Hi, try the following and see if it works:

Code:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -vc rawyv12
That's what I use to get a picture on my webcam, it uses the pac207 chip.

Regards,
 
1 members found this post helpful.
Old 06-09-2010, 02:06 PM   #4
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Original Poster
Rep: Reputation: 15
to halvy:

No, although I have tried this in a GUI, Mplayer is the only viewer I am aware of which can be invoked from the command-line and does not require X. I will try another if you can suggest one?

---

to gbowden:

Thanks, a variation on your suggestion seems to work for the Pixart chipset but not that Logitech:

LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so \
mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -vo fbdev2
 
Old 06-10-2010, 08:28 AM   #5
dhubsith
Member
 
Registered: Dec 2006
Location: New Mexico, USA
Distribution: Slackware
Posts: 62

Rep: Reputation: 15
You might need libv4l. Recent kernels no longer have the firmware some webcams need. My webcam is a Logitech 4000 Pro, without libv4l all I get is a green screen, but with libv4l installed it works as it should.

Here is my mplayer command:

mplayer -tv driver=v4l2:normid=0:width=640:height=480:fps=15 tv:// -nocache -vo xv
 
Old 06-11-2010, 03:13 AM   #6
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Original Poster
Rep: Reputation: 15
Yes I have libv4l thanks.And thanks for the command options, but no good leads there.
 
Old 06-11-2010, 03:35 AM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
This is a gstreamer command that you can use. If it works then it points to the problem being mplayer rather than video driver modules:

gst-launch v4l2src ! ffmpegcolorspace ! xvimagesink
 
Old 06-11-2010, 04:36 AM   #8
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Rep: Reputation: 37
Quote:
Originally Posted by mudflap View Post
I have three webcams of which, only one will work with recent kernels and Mplayer.

The working model is the built-in UVC camera in the Eeepc.

The other models are:

Quickcam messanger: stv06xx
pixart pac7311

these both seem to load all the appropiate modules and create the video devs, but fail to actually display anything with Mplayer.

I have tried several kernels (from 2.6.31.5 to 2.6.34), rebuilt Mplayer, updated gcc and glibc, all to no avail.

The UVC camera is on an Eeepc surf 4g, (32 bit Dothan core)
Other systems I have tried are both 64 bit quad processors (Xeon, and Core2)
Linux on the Xeon was built from the ground up, and the Core2 is running Slackware64 13/13.1

Is this an Mplayer problem, or have the kernel people concentrated on UVC to the detriment of other cameras? Should I be trying an older kernel ~2.6.24.xx ?

Any suggestions or thoughts?
My webcam is 046d:08f0 Logitech Qickcam Messenger. The stv06xx driver should work with it, but it does not
- as you say nothing is displayed at all. I get it to work only with
the quickcam driver, which is available in the kernel as a deprecated
module. Try
Code:
rmmod stv06xx
modprobe quickcam
If "modprobe quickcam" does not work, try "modprobe quickcam_messenger".

Regards,
Martin
 
Old 06-11-2010, 07:37 PM   #9
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Original Poster
Rep: Reputation: 15
046d:08f0 corresponds to my camera, and the module is quickcam_messanger.
Today I am booted to a 2.6.31.6 kernel.

the simplest of many command-line variations I have tried is:

mplayer tv:// -vo fbdev2 /dev/video0 (or video1)

LD_PRELOAD seems to make no difference in this case, and I have tried many of the -tv (and other) options. but the magic combination eludes me.

I have tried with both the gspca_stv06xx & quickcam_messanger modules, and receive more entertaining error messages from the gspca_06xx module but ultimately get the same result.
 
Old 06-11-2010, 10:59 PM   #10
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
I got my camera (using gspca_spca561) working with the help of information found here:
http://hansdegoede.livejournal.com/
I thought the camera was not working but it was.
It was just outputting a very dark image and I could not adjust the brightness.
I had to get an updated version of libv4l with software whitebalance and gamma correction.

Also, are the error messages you are seeing similar to:
FATAL: Error inserting it87
(/lib/modules/2.6.29-15.fc11.x86_64/kernel/drivers/hwmon/it87.ko):
Device or resource busy

ACPI: I/O resource it87 [0x295-0x296] conflicts with ACPI region IP__
[0x295-0x296]
ACPI: Device needs an ACPI driver

That is mentioned on that page as well.

Maybe there is something on that page that might lead you to an answer.
HTH
 
Old 06-12-2010, 03:55 AM   #11
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Original Poster
Rep: Reputation: 15
aocab:

the error mnessages with the quickcam_messenger are:

v4l2: ioctl query capabilities failed: Invalid argument
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.


dive:

"gst-launch v4l2src ! ffmpegcolorspace ! xvimagesink" gives this error:

ERROR: pipeline could not be constructed: no element "v4l2src".

So this indicates the problem lies with the kernel?
 
Old 06-12-2010, 11:28 AM   #12
aocab
Member
 
Registered: Nov 2009
Location: Heart of Texas
Distribution: Slackware-current
Posts: 138

Rep: Reputation: 30
@mudflap...
I searched google for the error messages you are getting
and I came across a few posts that mentioned:

That you need to compile mplayer with v4l2 disabled and v4l1 enabled.

But should that really matter if you are preloading v4l1compat?
Have you tried using v4l2convert?

# v4l1compat.so library wrapper adds v4l1 applicatiom compatibility
# to v4l2 drivers (such as the new gspca and the uvc driver) and it
# also handles conversion from cam specific formats to generic video
# formats for v4l2 applications. If you only want the conversion,
# without the v4l1 compatibility you can use "v4l2convert.so"
# instead of v4l1compat.so .

HTH
 
  


Reply


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
Webcams? SlowCoder Linux - Hardware 5 09-05-2007 02:29 PM
Running two USB webcams/Linux compatible IR sensitive webcams doctorelectron Linux - Hardware 1 06-07-2006 08:30 AM
Mplayer/Mplayer-plugin problems Buffbannana049 Fedora 3 07-12-2005 11:22 PM
Problems with webcams Ross Clement Linux - Hardware 3 06-09-2005 04:09 PM
Webcams ByrneDale Linux - Hardware 1 03-24-2005 04:46 AM


All times are GMT -5. The time now is 12:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration