[MPlayer-users] Trying to view TV from an s-video input
mark at foresthaven.com
Sat May 21 22:01:10 CEST 2005
On Mon, May 09, 2005 at 08:52:24PM -0700, RC wrote:
> On Sun, 8 May 2005 20:57:02 -0600
> Mark Zimmerman <mark at foresthaven.com> wrote:
> > Console output from this run follows; it appears to be free of errors
> > but if you look at the short clip (5 seconds) you will see what I have
> > been talking about. I am hoping that if someone more knowledgable than
> > me looks at this then the problem might be obvious to them.
> Yeah, that's interesting... All red, and slowed-down to about half
> speed. I've certainly never seen anything even remotely close to that,
> even though I've done a lot of capture. It must be a bug in the v4l2
> drivers for your card.
That turned out not to be the case. I stopped messing with mplayer for
a while and set up tvtime instead. It worked fine once I figured out
the right settings so I applied these to mplayer and I get a good
picture. The important thing for this card was to apply the right
settings for brightness, contrast, hue, and saturation.
A few oddities: I can set outfmt=bgr24 or outfmt=rgb24 and I get a
good picture in both cases. However, rgb24 is not really supported and
I get an ioctl error. bgr24 is supported by the card but I get the
"WARNING: UNTESTED OR UNKNOWN OUTPUT IMAGE FORMAT REQUESTED ..."
message which I ignore since I get a good picture. Perhaps it is just
'untested' and I am the first to test it.
Also, I get a lot of combing so apparently '-vf pp=lb' is not
functional in this context.
Right now, audio is working only via direct passthrough in alsa so I
get sound if I view in real time. Since my goal is to set up mencoder
for recording I still need to figure out how to tell it to get the
audio from the sound card line input. This may spawn a new thread on
Following is yet another console output showing how things work now.
MPlayer 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
CommandLine: '-v' '-tv' 'driver=v4l2:device=/dev/video1:fps=29.97:input=2:normid=0:brightness=60:contrast=25:hue=99:saturation=55:outfmt=bgr24:width=640:height=480' 'alsa' '-vf' 'pp=lb' 'tv://'
get_path('font/font.desc') -> '/home/mark/.mplayer/font/font.desc'
Font /home/mark/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/mark/.mplayer/input.conf'
Parsing input config file /home/mark/.mplayer/input.conf
Input config file /home/mark/.mplayer/input.conf parsed: 59 binds
get_path('alsa.conf') -> '/home/mark/.mplayer/alsa.conf'
File not found: 'alsa'
Failed to open alsa
get_path('.conf') -> '/home/mark/.mplayer/.conf'
STREAM: [null] tv://
STREAM: Description: Null stream
STREAM: Author: Albeu
TV detected! ;-)
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: pcHDTV HD3000 HDTV
Tuner cap: STEREO LANG2
Tuner rxs: STEREO
Capabilites: video capture VBI capture device tuner read/write streaming
supported norms: 0 = NTSC-M; 1 = NTSC-JP; 2 = PAL-BG; 3 = PAL-DK; 4 = PAL-I; 5 = PAL-M; 6 = PAL-N; 7 = PAL-Nc; 8 = PAL-60; 9 = SECAM-L; 10 = SECAM-DK;
inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
Current input: 2
Format GREY ( 8 bits, 8 bpp, gray): Planar Y800
Format RGB555 (16 bits, 15 bpp RGB, le): RGB 15-bit
Format RGB555X (16 bits, 15 bpp RGB, be): Unknown
Format RGB565 (16 bits, 16 bpp RGB, le): RGB 16-bit
Format RGB565X (16 bits, 16 bpp RGB, be): Unknown
Format BGR24 (24 bits, 24 bpp RGB, le): BGR 24-bit
Format BGR32 (32 bits, 32 bpp RGB, le): BGRA
Format RGB32 (32 bits, 32 bpp RGB, be): RGBA
Format YUYV (16 bits, 4:2:2, packed, YUYV): Packed YUY2
Format UYVY (16 bits, 4:2:2, packed, UYVY): Packed UYVY
Current format: BGR24
v4l2: current audio mode is : MONO
WARNING: UNTESTED OR UNKNOWN OUTPUT IMAGE FORMAT REQUESTED (0x42475218)
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!
v4l2: set format: BGR24
v4l2: set input: 2
Selected norm id: 0
v4l2: set norm: NTSC-M
v4l2: set width: 640
v4l2: set height: 480
Selected channel list: europe-east (including 133 channels)
Current frequency: 0 (0.000)
==> Found video stream: 0
v4l2: get format: BGR24
v4l2: get fps: 29.000000
v4l2: get width: 640
v4l2: get height: 480
Using a ring buffer for maximum 2 frames, 1 MB total size.
v4l2: set Brightness: 153 [0, 255]
v4l2: set Hue: 252 [0, 255]
v4l2: set Saturation: 140 [0, 255]
v4l2: set Contrast: 63 [0, 255]
[V] filefmt:9 fourcc:0x42475218 size:640x480 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/home/mark/.mplayer/sub/'
get_path('default.sub') -> '/home/mark/.mplayer/default.sub'
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x960 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours LAYER FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
DPMSDisable stat: 1
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp: BGR 24-bit)
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 BGR 24-bit as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=0,'MPlayer',0x42475218)
SwScaler: using unscaled BGR 24-bit -> Planar YV12 special converter
REQ: flags=0x437 req=0x0
VO: [xv] 640x480 => 640x480 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at 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 177 for hw scaling
[xv] dx: 0 dy: 0 dw: 640 dh: 480
Selected video codec: [rawbgr24] vfm:raw (RAW BGR24)
Audio: no sound
Freeing 0 unused audio chunks.
v4l2: going to capture
*** [scale] Exporting mp_image_t, 640x480x24bpp BGR packed, 921600 bytes
*** [vo] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
[xv] dx: 0 dy: 0 dw: 640 dh: 480
v4l2: 3305 frames successfully processed, 0 frames dropped.
v4l2: up to 1 video frames buffered.
Successfully enabled DPMS
vo: uninit ...
More information about the MPlayer-users