[MPlayer-users] Green bar/flickering at top of USB video capture

Keith Lawson lawsonk at lawson-tech.com
Sat Oct 18 21:33:09 CEST 2008


Hello,

I'm trying to capture video from a USB capture card connected to a DVD 
player connected to a composite input. The mencoder command I'm using is:

mencoder -tv driver=v4l2:width=720:height=576:norm=NTSC-M -nosound -ovc 
lavc -lavcopts vcodec=mpeg4:vbitrate=6000 -o testcap.avi -vf pp=fd tv://

(full mencoder -v output below)

The resulting video has a green bar or flickering at the top of the 
picture:

http://www.beavertabs.com/~keith/testcap.avi

Am I missing something in the mencoder command or would this perhaps be a 
driver issue?

Keith.

/opt/src/mplayer/mencoder -v -tv driver=v4l2:width=720:height=576:norm=NTSC-M -nosound
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=6000 -o testcap.avi -vf pp=fd tv://
MEncoder dev-SVN-r27776-4.3.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz (Family: 6, Model: 
15, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Configuration: --prefix=/opt
init_freetype
get_path('font/font.desc') -> '/home/keith/.mplayer/font/font.desc'
font: can't open file: /home/keith/.mplayer/font/font.desc
font: can't open file: /opt/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
success: format: 9  data: 0x0 - 0x0
TV file format 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: Trident TVMaster TM5600/6000
  Tuner cap:
  Tuner rxs: MONO
  Capabilites:  video capture  tuner  read/write  streaming
  supported norms: 0 = PAL; 1 = PAL-M; 2 = PAL-N; 3 = PAL-Nc; 4 = PAL-60; 5 
= NTSC-M; 6 = NTSC-M-JP; 7 = SECAM;
  inputs: 0 = Television; 1 = Composite; 2 = S-Video;
  Current input: 0
  Format YUYV   (16 bits, 4:2:2, packed, YVY2): Packed YUY2
  Format UYVY   (16 bits, 4:2:2, packed, UYVY): Packed UYVY
  Format unknown (0x30364d54) ( 0 bits, A/V + VBI mux packet): Unknown 
0x30364d54
  Current format: YUYV
v4l2: current audio mode is : MONO
v4l2: set format: YVU420
v4l2: ioctl set format failed: Invalid argument
v4l2: set format: YUV420
v4l2: ioctl set format failed: Invalid argument
v4l2: set format: UYVY
v4l2: set input: 0
Selected norm : NTSC-M
v4l2: set norm: NTSC-M
v4l2: set width: 720
v4l2: ioctl set width failed: Invalid argument
v4l2: set height: 576
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.970030
v4l2: get width: 720
v4l2: get height: 480
Using a ring buffer for maximum 761 frames, 501 MB total size.
v4l2: ioctl set mute failed: Invalid argument
v4l2: set Brightness: 54 [0, 255]
v4l2: set Hue: 0 [-128, 127]
v4l2: set Saturation: 112 [0, 255]
v4l2: set Contrast: 119 [0, 255]
[V] filefmt:9  fourcc:0x59565955  size:720x480  fps:29.970  ftime:=0.0334
[file] File size is 0 bytes
STREAM: [file] testcap.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=fd]
[expand] query(Planar YV12) -> 1
[expand] query(Planar I420) -> 1
[expand] query(Planar IYUV) -> 1
[expand] query(Planar 444P) -> 0
[expand] query(Planar 422P) -> 0
[expand] query(Planar 411P) -> 0
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 480 (preferred colorspace: Packed UYVY)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp 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 pp expand lavc
VDec: using Packed UYVY as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (720x480->720x480,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 @ 0x8be9c40]BICUBIC scaler, from uyvy422 to yuv420p using MMX2
[swscaler @ 0x8be9c40]using 4-tap MMX scaler for horizontal luminance 
scaling
[swscaler @ 0x8be9c40]using 4-tap MMX scaler for horizontal chrominance 
scaling
[swscaler @ 0x8be9c40]using 1-tap MMX "scaler" for vertical scaling (YV12 
like)
[swscaler @ 0x8be9c40]720x480 -> 720x480
REQ: flags=0xC01  req=0x0
REQ: flags=0x401  req=0x0
REQ: flags=0x401  req=0x0
videocodec: libavcodec (720x480 fourcc=34504d46 [FMP4])
Selected video codec: [rawuyvy] vfm: raw (RAW UYVY)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
v4l2: going to capture
*** [scale] Exporting mp_image_t, 720x480x16bpp YUV packed, 691200 bytes
*** [pp] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [lavc] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar, 518400 
bytes
get_path('subfont.ttf') -> '/home/keith/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
get_path('subfont.ttf') -> '/home/keith/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Muxer frame buffer sending 1 frame(s) to the muxer.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing 
vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing 
vprp header.
^CPos:  11.3s    338f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [5509:0] 
A/Vms 0/11 D/B/S 0/0/0
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing 
vprp header.

Video stream: 5509.376 kbit/s  (688672 B/s)  size: 7766797 bytes  11.278 
secs  338 frames
Uninit video: raw
v4l2: ioctl set mute failed: Invalid argument
v4l2: 340 frames successfully processed, -339 frames dropped.
v4l2: up to 2 video frames buffered.



More information about the MPlayer-users mailing list