VLC with "vlc v4l2:///dev/video1" simply works and the same goes for mplayer (mplayer tv:// -tv driver=v4l2:device=/dev/video1)
Could you help me out a little?
log for mplayer:
Code: Select all
Playing tv://.
get_path('sub/') -> '/home/apache/.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 <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 Live!
Capabilites: video capture read/write streaming
supported norms:
inputs: 0 = zc3xx;
Current input: 0
Format unknown (0x4745504a) ( 0 bits, JPEG): Unknown 0x4745504a
Current format: unknown (0x4745504a)
v4l2: set format: YVU420
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
v4l2: get format: unknown (0x4745504a)
v4l2: Cannot get fps
v4l2: get width: 640
v4l2: get height: 480
Using a ring buffer for maximum 2 frames, 0 MB total size.
v4l2: ioctl set mute failed: Invalid argument
v4l2: set Brightness: 128 [0, 255]
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: set Contrast: 128 [0, 256]
[V] filefmt:9 fourcc:0x4745504A size:640x480 fps:25.000 ftime:=0.0400
get_path('sub/') -> '/home/apache/.mplayer/sub/'
X11 opening display: localhost:10.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1920x1200 with depth 24 and 32 bpp (":10.0" => remote display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[VO_XV] Using Xv Adapter #0 (NV17 Video Texture)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 8192x8192
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
v4l2: going to capture
[mjpeg @ 0x889d6a0]mjpeg decode frame unused 0 bytes
[mjpeg @ 0x889d6a0]mjpeg decode frame unused 0 bytes
[mjpeg @ 0x889d6a0]mjpeg decode frame unused 0 bytes
[mjpeg @ 0x889d6a0]mjpeg decode frame unused 0 bytes
[mjpeg @ 0x889d6a0]mjpeg decode frame unused 0 bytes
[mjpeg @ 0x889d6a0]mjpeg decode frame unused 0 bytes
[mjpeg @ 0x889d6a0]marker=d8 avail_size_in_buf=115788
[mjpeg @ 0x889d6a0]buffer too small, expanding to 115788 bytes
[mjpeg @ 0x889d6a0]marker parser used 0 bytes (0 bits)
[mjpeg @ 0x889d6a0]marker=db avail_size_in_buf=115786
[mjpeg @ 0x889d6a0]index=0
[mjpeg @ 0x889d6a0]qscale[0]: 6
[mjpeg @ 0x889d6a0]index=1
[mjpeg @ 0x889d6a0]qscale[1]: 13
[mjpeg @ 0x889d6a0]marker parser used 132 bytes (1056 bits)
[mjpeg @ 0x889d6a0]marker=c4 avail_size_in_buf=115652
[mjpeg @ 0x889d6a0]class=0 index=0 nb_codes=12
[mjpeg @ 0x889d6a0]class=0 index=1 nb_codes=12
[mjpeg @ 0x889d6a0]class=1 index=0 nb_codes=251
[mjpeg @ 0x889d6a0]class=1 index=1 nb_codes=251
[mjpeg @ 0x889d6a0]marker parser used 418 bytes (3344 bits)
[mjpeg @ 0x889d6a0]marker=c0 avail_size_in_buf=115232
[mjpeg @ 0x889d6a0]sof0: picture: 640x480
[mjpeg @ 0x889d6a0]component 0 2:1 id: 0 quant:0
[mjpeg @ 0x889d6a0]component 1 1:1 id: 1 quant:1
[mjpeg @ 0x889d6a0]component 2 1:1 id: 2 quant:1
[mjpeg @ 0x889d6a0]pix fmt id 21111100
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=4,'MPlayer',0x50323234)
[swscaler @ 0x89982a0]using unscaled yuv422p -> yuyv422 special converter
REQ: flags=0x437 req=0x0
VO: [xv] 640x480 => 640x480 Packed YUY2 [zoom]
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 310 for hw scaling
Code: Select all
[0xb6e03d08] v4l2 demux debug: Trying direct kernel v4l2
[0xb6e03d08] v4l2 demux debug: opening device '/dev/video1'
[0xb6e03d08] v4l2 demux debug: V4L2 device: WebCam Live! using driver: zc3xx (version: 2.8.0) on usb-0000:00:1d.1-2
[0xb6e03d08] v4l2 demux debug: the device has the capabilities: (X) Video Capure, ( ) Audio, ( ) Tuner, ( ) Radio
[0xb6e03d08] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[0xb6e03d08] v4l2 demux debug: video input 0 (zc3xx) has type: External analog input *
[0xb6e03d08] v4l2 demux debug: device supports chroma JPEG [JPEG, JPEG]
[0xb6e03d08] v4l2 demux debug: device supports size 320x240
[0xb6e03d08] v4l2 demux debug: device supports size 640x480
[0xb6e03d08] v4l2 demux debug: '/dev/video1' is a video device
[0xb6e03d08] v4l2 demux debug: Extended control API supported by v4l2 driver
[0xb6e03d08] v4l2 demux debug: Available control: Brightness (980900)
[0xb6e03d08] v4l2 demux debug: integer control
[0xb6e03d08] v4l2 demux debug: valid values: 0 to 255 by steps of 1
[0xb6e03d08] v4l2 demux debug: default value: 128
[0xb6e03d08] v4l2 demux debug: current value: 128
[0xb6e03d08] v4l2 demux debug: Available control: Contrast (980901)
[0xb6e03d08] v4l2 demux debug: integer control
[0xb6e03d08] v4l2 demux debug: valid values: 0 to 256 by steps of 1
[0xb6e03d08] v4l2 demux debug: default value: 128
[0xb6e03d08] v4l2 demux debug: current value: 128
[0xb6e03d08] v4l2 demux debug: Available control: Gamma (980910)
[0xb6e03d08] v4l2 demux debug: integer control
[0xb6e03d08] v4l2 demux debug: valid values: 1 to 6 by steps of 1
[0xb6e03d08] v4l2 demux debug: default value: 4
[0xb6e03d08] v4l2 demux debug: current value: 4
[0xb6e03d08] v4l2 demux debug: Available control: Auto Gain (980912)
[0xb6e03d08] v4l2 demux debug: boolean control
[0xb6e03d08] v4l2 demux debug: default value: 1
[0xb6e03d08] v4l2 demux debug: current value: 1
[0xb6e03d08] v4l2 demux debug: Available control: Sharpness (98091b)
[0xb6e03d08] v4l2 demux debug: integer control
[0xb6e03d08] v4l2 demux debug: valid values: 0 to 3 by steps of 1
[0xb6e03d08] v4l2 demux debug: default value: 2
[0xb6e03d08] v4l2 demux debug: current value: 2
[0xb6e03d08] v4l2 demux debug: using streaming i/o (mmap)
[0xb6e03d08] v4l2 demux debug: found default width and height of 640x480
[0xb6e03d08] v4l2 demux debug: will try to find optimal width and height.
[0xb6e03d08] v4l2 demux debug: Found maximum framerate of -1,000000
[0xb6e03d08] v4l2 demux debug: Found optimal dimensions for framerate -1,000000 of 640x480
[0xb6e03d08] v4l2 demux debug: Driver requires at most 115790 bytes to store a complete image
[0xb6e03d08] v4l2 demux debug: Interlacing setting: progressive
[0xb6e03d08] v4l2 demux debug: added new video es JPEG 640x480