Opened 16 years ago

Last modified 15 years ago

#1074 new defect

no high resolutions with linux-uvc and tv://

Reported by: jan@… Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc: jan@…, mplayerbugzilla@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

mplayer won't do higher resolutions on my uvc-webcam. When I try with luvcview, I can get the full 1280x1024 though. See this thread for some background: http://thread.gmane.org/gmane.linux.drivers.uvc.devel/2708

jan@jan ~/src/mplayer $ ./mplayer -fps 30 tv://
MPlayer dev-SVN-r26643-4.3.0 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
115 audio & 237 video codecs
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 <olschewski@…>
comment: first try, more to come ;-)

v4l2: ioctl get standard failed: Invalid argument
Selected device: USB2.0 1.3M UVC WebCam

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
==========================================================================
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
FPS forced to be 30.000 (ftime: 0.033).
Starting playback...
v4l2: select timeout ??% ??,?% 0 0
V: 0.0 37/ 37 0% 2% 0.0% 0 0

May 2 15:12:57 jan restoring control 00000000-0000-0000-0000-000000000101/0/2
May 2 15:12:57 jan restoring control 00000000-0000-0000-0000-000000000101/1/3
May 2 15:12:57 jan restoring control 00000000-0000-0000-0000-000000000101/2/6
May 2 15:12:57 jan restoring control 00000000-0000-0000-0000-000000000101/3/7
May 2 15:12:57 jan restoring control 00000000-0000-0000-0000-000000000101/4/8
May 2 15:12:57 jan restoring control 00000000-0000-0000-0000-000000000101/5/9
May 2 15:12:57 jan restoring control 00000000-0000-0000-0000-000000000101/10/5
May 2 15:12:57 jan uvcvideo: Trying format 0x56595559 (YUYV): 640x480.
May 2 15:12:57 jan uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
May 2 15:12:57 jan uvcvideo: Trying format 0x32315659 (YV12): 640x480.
May 2 15:12:57 jan uvcvideo: Unsupported format 0x32315659.
May 2 15:12:57 jan uvcvideo: Trying format 0x32315559 (YU12): 640x480.
May 2 15:12:57 jan uvcvideo: Unsupported format 0x32315559.
May 2 15:12:57 jan uvcvideo: Trying format 0x59565955 (UYVY): 640x480.
May 2 15:12:57 jan uvcvideo: Unsupported format 0x59565955.
May 2 15:12:57 jan uvcvideo: Trying format 0x56595559 (YUYV): 640x480.
May 2 15:12:57 jan uvcvideo: Using default frame interval 33333.3 us (30.0 fps).
May 2 15:12:57 jan uvcvideo: Control 0x00980909 not found.

jan@jan ~/src/mplayer $ luvcview -L
luvcview 0.2.4

SDL information:

Video driver: x11
A window manager is available

Device information:

Device path: /dev/video0

/dev/video0 does not support read i/o
{ pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
{ discrete: width = 640, height = 480 }

Time interval between frame:

{ discrete: width = 352, height = 288 }

Time interval between frame:

{ discrete: width = 320, height = 240 }

Time interval between frame:

{ discrete: width = 176, height = 144 }

Time interval between frame:

{ discrete: width = 160, height = 120 }

Time interval between frame:

{ discrete: width = 1280, height = 960 }

Time interval between frame:

{ discrete: width = 1280, height = 1024 }

Time interval between frame:

Attachments (1)

use_specified_webcam_resolution.patch (1.9 KB ) - added by mplayerbugzilla@… 15 years ago.
Allows mplayer to use the specified resolutions for UVC webcams

Download all attachments as: .zip

Change History (3)

by mplayerbugzilla@…, 15 years ago

Allows mplayer to use the specified resolutions for UVC webcams

comment:1 by mplayerbugzilla@…, 15 years ago

I used the patch from http://archives.free.net.ph/message/20081201.170650.2d3ccdf3.fr.html#mencoder-users and fiddled it so that it applies to trunk.

This fixes the problem for me and mplayer can use the specified resolution now.

comment:2 by mplayerbugzilla@…, 15 years ago

Cc: mplayerbugzilla@… added
Note: See TracTickets for help on using tickets.