[MPlayer-users] Trying to view TV from an s-video input
Mark Zimmerman
mark at foresthaven.com
Fri May 6 04:41:16 CEST 2005
On Thu, May 05, 2005 at 06:04:59AM -0700, RC wrote:
> On Wed, 4 May 2005 20:01:22 -0600
> Mark Zimmerman <mark at foresthaven.com> wrote:
>
> > I have tried all of the outfmt= options but none
> > are any good.
>
> Run mplayer with "-v" and the mplayer output should list the formats
> your card is capable of. You should also set the norm.
>
OK, I have done so but I am not sure what to do with the listed
formats. Here they are:
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
The BGR24 format (outfmt=bgr24) gives this:
==================================================================
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!
==================================================================
and strange colors. RGB24 gives this:
v4l2: set format: RGB24
v4l2: ioctl set format failed: Invalid argument
outfmt=rgb565 gives:
Option outfmt: unknown format name: 'rgb565'
and so on. It seems clear that there are 24 bits per pixel based on
looking at the results, but I do not think it is RGB nor BGR. I cannot
find a 24 bit YUV-ish format to use.
If there is a way to force a color space conversion it might be
useful.
Here is some more complete console output in case it proves useful:
yer -v -tv
driver=v4l2:device=/dev/video1:input=2:noaudio:outfmt=rgb24:normid=0:norm=0
-vo xv tv://
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:input=2:noaudio:outfmt=rgb24:normid=0:norm=0'
'-vo' 'xv' 'tv://'
init_freetype
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('.conf') -> '/home/mark/.mplayer/.conf'
Playing tv://.
STREAM: [null] tv://
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment:
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
v4l2: set format: RGB24
v4l2: ioctl set format failed: Invalid argument
v4l2: set input: 2
Selected norm id: 0
v4l2: set norm: NTSC-M
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: 0 [0, 255]
v4l2: set Hue: 0 [0, 255]
v4l2: set Saturation: 0 [0, 255]
v4l2: set Contrast: 0 [0, 255]
[V] filefmt:9 fourcc:0x42475218 size:640x480 fps:29.00
ftime:=0.0345
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
[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.
Starting playback...
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
uninit video: raw??% ??% ??,?% 0 0
v4l2: 61 frames successfully processed, 0 frames dropped.
v4l2: up to 1 video frames buffered.
vo: uninit ...
More information about the MPlayer-users
mailing list