Jelle,
2009/3/15 Jelle de Jong <[email protected]>
> I changed the topic, to make the discussion more transparent. To bad
> google has no text only feature, it makes using gmail and mailinglist
> conventions a bit hard.
>
> Paulo Assis wrote:
> > I've tried mencoder on my sphere AF but wasn't able to capture from the
> > camera:
> >
> > 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!
> > Excepção de vírgula flutuante (Floating point exception)
>
> Paulo could you first try to go back to the basics, and check if you can
> display an image out of your webcam with mplayer, also please make
> reports or the output of the commands, else i can never know what goes
> wrong. Setting LANG=en_GB would also help before executions of the
> commands :-D And thank you so much for helping.
>
Mplayer works fine with the following command:
mplayer tv:// -tv
driver=v4l2:device=/dev/video0:width=800:height=600:fps=25
see mplayer.log
but fails for the ones below.
>
> # first command
> $ mplayer -identify -benchmark -v tv:// -tv
> driver=v4l2:device=/dev/video0:adevice=/dev/dsp1:immediatemode=0:forceaudio
>
see mplayer_1.log
>
> # second command
> mplayer -identify -benchmark -v tv:// -tv
>
> driver=v4l2:device=/dev/video1:adevice=/dev/dsp2:immediatemode=0:forceaudio:width=800:height=600
>
see mplayer_2.log
>
> # third command
> $ mencoder tv:// -tv
>
> driver=v4l2:device=/dev/video0:adevice=/dev/dsp1:immediatemode=0:forceaudio:width=800:height=600:fps=25
> -oac lavc -ovc lavc -lavcopts
> acodec=libmp3lame:abitrate=128:vcodec=mpeg4:vbitrate=2240:threads=4 -of
> lavf -lavfopts format=avi -o output7.avi
>
see mencoder.log
>
> Make sure auto exposure and all other fps decreasing features are off.
> Thanks in advance of the reports, I really need to get mplayer and
> mencoder working on higher resolutions and frame rates.
>
> >
> > This is could mean two things auto exposure is set and fps changes with
> > ambient light conditions or a CPU with low horsepower.
>
> auto exposure was not on, if cpu horsepower is an issue this would be
> extreme bad, I also tried to use mencoder and mplayer on a fast headless
> server but since i cant get higher resolution or fps i cant test it
> correctly.
>
I could only get 640x480, this limit seems to be hardcoded in mplayer.
>
> >
> > The problem is not the load, CPU time is scheduled by the system, in the
> > case of single core CPUs they really need to be fast enought to process
> > video frames and audio and still run all other system processes, for
> > multicore CPUs these tasks can be easily scheduled between different
> > cores, so you don't need a fast CPU as much.
> > A fast transfer disk also helps.
> >
> > I made some experiments with mpeg encoding in guvcview some time ago and
> > I was able to make it work, but I never released the code, since it had
> > some heavy requirements for hardware. It's just easy to capture with a
> > lightweight encoder ( or even better without any encoding) and compress
> > the resulting file later, since this doesn't cause any frame drop.
>
> I would really like if I can just connect mencoder, mplayer and ffmpeg to
> the the guvcview tool, but since guvciew is a GUI tool I cant really use
> it. I can only use it for some testing on the client desktops
>
Like I said live video mpeg encoding requires a lot of cpu power, you wont
find many apps out there that can deliver this, with the quality you want.
>
> > Any v4l2 tool should work ! but only libwebcam will enable extension
> > controls.
>
> What are the extension controls, why are those not v4l2? I will try to
> make libwebcam work. Does the Creative Cam Optia AF also work with these
> tools?
>
these are vendor specif controls, they are defined in the uvc spec and the
linux-uvc driver has support for them.
Since they are vendor specific, they cannot be defined in the v4l2 API, so
they need to be mapped into a valid control, but applications must be aware
of them.
> > No, QuickCam Vision Pro has hardware autofocus, in the Pro 9000
> > autofucus is done in software, just like the sphere AF, so unless you
> > are using guvcview only the Vision will enable autofocus.
>
> Ok sounds I will buy the Creative Cam Optia AF or QuickCam Vision Pro
> since both seem to be the only 2MP+ webcams with hardware autofocus
> correct?
>
They are the ones I know.
>
> Thanks in advance for the test reports,
>
> Jelle de Jong
>
>
Best regards,
Paulo
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (Family: 6, Model: 23, Stepping: 7)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/jorge/.mplayer/codecs.conf'
Reading /home/jorge/.mplayer/codecs.conf: Can't open '/home/jorge/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-runtime-cpudetection --target=i586-linux --prefix=/usr --confdir=/etc/mplayer --mandir=/usr/share/man --win32codecsdir=/usr/lib/win32 --enable-largefiles --disable-libdvdcss-internal --enable-smb --enable-ftp --enable-cdparanoia --enable-radio --enable-lirc --enable-joystick --enable-xf86keysym --disable-tremor-internal --enable-liba52 --enable-musepack --enable-speex --enable-libvorbis --enable-mad --enable-mp3lib --enable-theora --enable-libdv --enable-libmpeg2 --enable-tv-v4l2 --enable-alsa --enable-ossaudio --enable-esd --enable-arts --enable-pulse --enable-nas --enable-xinerama --enable-menu --enable-xv --enable-vm --enable-gl --enable-xmga --enable-mga --enable-3dfx --enable-tdfxfb --enable-sdl --enable-aa --enable-caca --enable-dxr3 --enable-xvmc --with-xvmclib=XvMCW --enable-ggi --enable-fbdev --disable-ivtv --enable-freetype --enable-gif --enable-png --enable-jpeg --enable-liblzo --enable-fribidi --enable-ladspa --enable-gui --enable-mencoder
CommandLine: '-identify' '-benchmark' '-v' 'tv://' '-tv' 'driver=v4l2:device=/dev/video0:adevice=/dev/dsp1:immediatemode=0:forceaudio'
init_freetype
get_path('font/font.desc') -> '/home/jorge/.mplayer/font/font.desc'
font: can't open file: /home/jorge/.mplayer/font/font.desc
Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/jorge/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/jorge/.mplayer/input.conf'
Can't open input config file /home/jorge/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 81 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
get_path('.conf') -> '/home/jorge/.mplayer/.conf'
Playing tv://.
get_path('sub/') -> '/home/jorge/.mplayer/sub/'
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <[email protected]>
comment: first try, more to come ;-)
v4l2: ioctl get standard failed: Invalid argument
Selected device: UVC Camera (046d:0994)
Capabilites: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Format MJPEG ( 0 bits, MJPEG): Unknown 0x47504a4d
Format YUYV (16 bits, YUV 4:2:2 (YUYV)): Packed YUY2
Current format: YUYV
v4l2: set format: YVU420
v4l2: ioctl set format failed: Invalid argument
v4l2: set format: YUV420
v4l2: ioctl set format failed: Invalid argument
v4l2: set format: UYVY
v4l2: ioctl set format failed: Invalid argument
v4l2: set format: YUYV
v4l2: set input: 0
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
Selected norm : pal
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
==> Found video stream: 0
ID_VIDEO_ID=0
v4l2: get format: YUYV
v4l2: get fps: nan
v4l2: get width: 640
v4l2: get height: 480
ioctl dsp getfmt: 0
Supported formats: 4b1f9
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 1)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 1
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 16384
v4l2: set audio samplerate: 44100
v4l2: get audio format: 9
==> Found audio stream: 0
ID_AUDIO_ID=0
v4l2: get audio samplerate: 44100
v4l2: get audio samplesize: 2
v4l2: get audio channels: 2
TV audio: 2 channels, 16 bits, 44100 Hz
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
MPlayer interrupted by signal 8 in module: demux_open
ID_SIGNAL=8
- 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.
vo: x11 uninit called but X11 not inited..
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (Family: 6, Model: 23, Stepping: 7)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/jorge/.mplayer/codecs.conf'
Reading /home/jorge/.mplayer/codecs.conf: Can't open '/home/jorge/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-runtime-cpudetection --target=i586-linux --prefix=/usr --confdir=/etc/mplayer --mandir=/usr/share/man --win32codecsdir=/usr/lib/win32 --enable-largefiles --disable-libdvdcss-internal --enable-smb --enable-ftp --enable-cdparanoia --enable-radio --enable-lirc --enable-joystick --enable-xf86keysym --disable-tremor-internal --enable-liba52 --enable-musepack --enable-speex --enable-libvorbis --enable-mad --enable-mp3lib --enable-theora --enable-libdv --enable-libmpeg2 --enable-tv-v4l2 --enable-alsa --enable-ossaudio --enable-esd --enable-arts --enable-pulse --enable-nas --enable-xinerama --enable-menu --enable-xv --enable-vm --enable-gl --enable-xmga --enable-mga --enable-3dfx --enable-tdfxfb --enable-sdl --enable-aa --enable-caca --enable-dxr3 --enable-xvmc --with-xvmclib=XvMCW --enable-ggi --enable-fbdev --disable-ivtv --enable-freetype --enable-gif --enable-png --enable-jpeg --enable-liblzo --enable-fribidi --enable-ladspa --enable-gui --enable-mencoder
CommandLine: '-identify' '-benchmark' '-v' 'tv://' '-tv' 'driver=v4l2:device=/dev/video1:adevice=/dev/dsp2:immediatemode=0:forceaudio:width=800:height=600'
init_freetype
get_path('font/font.desc') -> '/home/jorge/.mplayer/font/font.desc'
font: can't open file: /home/jorge/.mplayer/font/font.desc
Bitmap font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/jorge/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/jorge/.mplayer/input.conf'
Can't open input config file /home/jorge/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 81 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
get_path('.conf') -> '/home/jorge/.mplayer/.conf'
Playing tv://.
get_path('sub/') -> '/home/jorge/.mplayer/sub/'
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <[email protected]>
comment: first try, more to come ;-)
v4l2: unable to open '/dev/video1': No such file or directory
v4l2: ioctl set mute failed: Bad file descriptor
v4l2: 0 frames successfully processed, 0 frames dropped.
v4l2: up to 0 video frames buffered.
BENCHMARKs: VC: 0.000s VO: 0.000s A: 0.000s Sys: 100.041s = 100.041s
BENCHMARK%: VC: 0.0000% VO: 0.0000% A: 0.0000% Sys:100.0000% = 100.0000%
vo: x11 uninit called but X11 not inited..
Exiting... (End of file)
MEncoder 2:1.0~rc2-0ubuntu17 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (Family: 6, Model: 23, Stepping: 7)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <[email protected]>
comment: first try, more to come ;-)
v4l2: ioctl get standard failed: Invalid argument
Selected device: UVC Camera (046d:0994)
Capabilites: 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!
Floating point exception
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz (Family: 6, Model: 23, Stepping: 7)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <[email protected]>
comment: first try, more to come ;-)
v4l2: ioctl get standard failed: Invalid argument
Selected device: UVC Camera (046d:0994)
Capabilites: 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
v4l2: ioctl query control failed: Invalid argument
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Packed YUY2)
VDec: using Packed YUY2 as output csp (no 0)
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 49/ 49 ??% ??% ??,?% 0 0
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel