[MPlayer-users] Trying to view TV from an s-video input

Mark Zimmerman mark at foresthaven.com
Mon May 9 04:57:02 CEST 2005


On Fri, May 06, 2005 at 05:55:34AM -0700, RC wrote:
> On Thu, 5 May 2005 20:41:16 -0600
> Mark Zimmerman <mark at foresthaven.com> wrote:
> 
> >  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!
> 
> I suggest you read the above closely...  
> 
> >  Format YUYV   (16 bits, 4:2:2, packed, YUYV): Packed YUY2
> >  Format UYVY   (16 bits, 4:2:2, packed, UYVY): Packed UYVY
> 
> I believe you'll have much better luck with one of these outfmts...  If
> not, you might also try adding "-vf scale" to your command-line,
> perhaps mplayer isn't inserting it properly.
> 

I cannot try the first of these effectively because mplayer says:

Option outfmt: unknown format name: 'yuyv'

and stops. I tried UYVY with mencoder and gathered 5 seconds of output
which I posted at the following URL:

<http://www.frii.com/~markzimm/test.avi>

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.

Thanks for any assistance.




qpc$ mencoder -v -tv driver=v4l2:device=/dev/video1:fps=29.97:input=2:noaudio:outfmt=uyvy:normid=0:norm=0 -ovc lavc -lavcopts vcodec=mpeg4 -o test.mpeg4 tv://
MEncoder 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: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

File not found: 'frameno.avi'
Failed to open frameno.avi
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
STREAM: [null] tv://
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment: 
success: format: 9  data: 0x0 - 0x0
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: UYVY
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: UYVY
v4l2: get fps: 29.000000
v4l2: get width: 640
v4l2: get height: 480
Using a ring buffer for maximum 862 frames, 505 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:0x59565955  size:640x480  fps:29.97  ftime:=0.0334
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp: Packed UYVY)
Trying filter chain: expand lavc
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 expand lavc
VDec: using Packed UYVY as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=0,'MPlayer',0x59565955)
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Packed UYVY to Planar YV12 using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler: 640x480 -> 640x480
REQ: flags=0x401  req=0x0  
REQ: flags=0x401  req=0x0  
videocodec: libavcodec (640x480 fourcc=34504d46 [FMP4])
Selected video codec: [rawuyvy] vfm:raw (RAW UYVY)
==========================================================================
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Forcing audio preload to 0, max pts correction to 0
v4l2: going to capture
*** [scale] Exporting mp_image_t, 640x480x16bpp YUV packed, 614400 bytes
*** [lavc] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [expand] Direct Rendering mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 0/4 D
Pos:   0.1s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 0/5 D
Pos:   0.1s      3f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 0/6 D
<--- lots of these --->
Pos:   5.3s    160f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [194:0] A/Vms 0/6 D/B/S 0/0/0 
Flushing video frames

Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream:  194.227 kbit/s  (24278 bps)  size: 129614 bytes  5.339 secs  160 frames
uninit video: raw
v4l2: 162 frames successfully processed, 0 frames dropped.
v4l2: up to 1 video frames buffered.




More information about the MPlayer-users mailing list