[MPlayer-users] FreeBSD mencoding

Charles Henrich henrich at sigbus.com
Mon Oct 13 09:14:12 CEST 2003


I wrote this module quite some time ago now, and have been very unsuccessful
in getting it to work in the latest go-round of mencoder.  Has anyone else out
there gotten this to work?  When I use the lavc encoder I get 100% bad frames,
if I tell it to just raw copy the stream it chugs along beautifully, so im
wondering if something has changed in the core that requires a certain command
line argument to work, or if I just need to figure out if its something I need
to change in the driver?  my mencoder -v session:

12:09am capture# ./mencoder -v tv:// -tv input=0:noaudio:driver=bsdbt848:width=640:height=480:norm=ntsc -o /cap/video/mpegs/test1.avi -ovc lavc
MEncoder 1.0pre2-2.95.4 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 698.1 MHz (Family: 6,
Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf':
No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such file or directory
init_freetype
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: bsdbt848
 name: Brooktree848 Support
 author: Charles Henrich
 comment: in development
Selected norm: ntsc
Selected channel list: europe-east (including 133 channels)
Current frequency: 0 (0.000)
==> Found video stream: 0
START
[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 -vop 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=58564944 [DIVX])
Selected video codec: [rawuyvy] vfm:raw (RAW UYVY)
==========================================================================
Writing AVI header...
Forcing audio preload to 0, max pts correction to 0
*** [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
get_path('subfont.ttf') -> '/root/.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.
Pos:   0.0s    316f ( 0%)  30fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 0/0 D/B/S 0/315/315
Writing AVI index...
Fixing AVI header...

Video stream: 4297.444 kbit/s  (537180 bps)  size: 17924 bytes  0.033 secs 316 frames
uninit video: raw
DEMUXER: freeing demuxer at 0x84ba000
DEMUXER: freeing sh_video at 0x84a9100


       Charles Henrich           Digital Domain          henrich at msu.edu

                         http://www.sigbus.com/~henrich



More information about the MPlayer-users mailing list