LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-13-2006, 08:03 PM   #1
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
Camera Frames Per Second incredibly slow.


On my Smilecam with mplayer, I am getting very low frames per second. I would say about maybe 1 or 2 frames per second. This is with 640x480 and done on two different video display software: camstream and mplayer. Is this normal? This is a usb and serial connection, plus bt878 chipset builtin. I have tried at lower resolutions with a small margine of a performance gain... maybe an extra 2 frames, but that is still pathetic. How do I know if it utilizing USB 2.0? Would that make a difference? Any suggestions?
 
Old 06-14-2006, 01:27 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
USB is crap when handling high data transfers. It only handle short bursts of data. Of course USB 2.0 will be better than 1.1 version, but the speed will not be high enough for video capture. IEEE-1394 is a lot better for high data transfers because it uses a different method to handle data.

Did you try 160x120? I know this resolution is poor, but it needs very little bandwidth. Also did you try to use y800 as the outfmt in mplayer. This will provide black and white pictures.
 
Old 06-14-2006, 08:27 PM   #3
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Could you explain the second to the last sentence a little better. Adding outfmt=y800 does not work... what did you mean? Could you clarify?

Here is the code that I used.

Code:
george@geobox1 ~ $ mplayer tv:// -tv driver=v4l:outfmt=y800:width=352:height=288                                                                                                                                
:device=/dev/video0
MPlayer dev-CVS-060414-22:32-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Sempron/Athlon MP/XP/XP-M Barton,Thorton (Family: 6,                                                                                                                                
 Stepping: 0)
MMX2 supported but disabled
SSE supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX



91 audio & 208 video codecs
Playing tv://.
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi
 comment: under development
Selected device: OV511+ USB Camera
 Capabilites: capture subcapture 
 Device type: 513
 Supported sizes: 64x48 => 640x480
 Inputs: 1
  0: Camera:  (tuner:0, norm:pal)
==================================================================
 WARNING: UNTESTED OR UNKNOWN OUTPUT IMAGE FORMAT REQUESTED (0x30303859)
 This may cause buggy playback or program crash! Bug reports will
 be ignored! You should try again with YV12 (which is the default
 colorspace) and read the documentation!
==================================================================
Using input 'Camera'
ioctl get tuner failed: Invalid argument
Selected input hasn't got a tuner!
ioctl set picture failed: Invalid argument
ioctl get picture failed: Invalid argument
ioctl get picture failed: Invalid argument
ioctl get picture failed: Invalid argument
ioctl get picture failed: Invalid argument
File not found: '/home/george/.mplayer/default.sub'
Failed to open /home/george/.mplayer/default.sub
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 288 (preferred colorspace: Planar Y800)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar Y800 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: using unscaled Planar Y800 -> Planar YV12 special converter
VO: [xv] 352x288 => 352x288 Planar YV12 
Selected video codec: [rawy800] vfm: raw (RAW Y8/Y800)
==========================================================================
Audio: no sound
Starting playback...

ioctl mcapture failed: Invalid argument

ioctl mcapture failed: Invalid argument


MPlayer interrupted by signal 11 in module: video_read_frame
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
george@geobox1 ~ $
 
  


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
Switch runs incredibly slow newuser455 General 7 11-14-2005 09:02 PM
VNC incredibly slow (SuSE) Brian Knoblauch Linux - Software 2 07-30-2005 07:15 PM
Ripping CD's is Incredibly Slow linux-rulz Linux - General 1 05-17-2005 02:08 AM
fedora 1 INCREDIBLY slow yoyoguy2 Fedora 14 02-13-2005 04:06 AM
Suse 9.1 incredibly slow Vorticies Linux - Distributions 4 06-12-2004 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:44 PM.

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