|
发表于 2006-5-9 12:27:02
|
显示全部楼层
Post by realtang
渲染是mplayer做的,试试别的vo吧。SDL,DFB,fbdev之类的。
试试把vd_avs.c中的init()函数改成这样:
priv_t *p = (priv_t*)malloc(sizeof(priv_t));
memset(p, 0, sizeof(priv_t));
p->vo_initialized = 0;
p->img_type = MP_IMGTYPE_EXPORT;
sh->aspect = 1.3333;
sh->context = p;
return mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_I420);
0.0.2的没有提供正确的长宽比sh->aspect,可能会使渲染出现问题。
因为我没有avs的标准文档,所以无法知道系统头里面的长宽比到底是怎样约定的,所以暂时把它设死为4:3吧。
没有变化,我的系统上不支持SDL,DFB。当我使用fbdev, 错误信息如下:
VIDEO: [VSVA] 720x576 24bpp 25.000 fps 1498.2 kbps (182.9 kbyte/s)
==========================================================================
Opening video decoder: [libavs] Chinese AVS Video decoder libavs0.0.1
VDec: vo config request - 720 x 576 (preferred csp: Planar I420)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter
VO: [fbdev] 720x576 => 768x576 BGR 24-bit
VDecoder init failed 
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Cannot find codec matching selected -vo and video format 0x56535641
Read DOCS/HTML/en/codecs.html!
========================================================================== |
|