|
发表于 2006-4-27 14:46:04
|
显示全部楼层
crash on debian platform
Post by realtang
前段时间一直做DVD文件流分析,把这个事给拖了。
现在终于增加了支持。
这个codec以MPlayer-1.0pre7try2为基础。
修改了[MPLAYER SOURE ROOT]/etc/codec.conf和[MPLAYER SOURE ROOT]/libmpcodec/vd.c和[MPLAYER SOURE ROOT]/libmpcodec/Makefile。
增加了[MPLAYER SOURE ROOT]/libmpcodec/vd_avs.h和[MPLAYER SOURE ROOT]/libmpcodec/vd_avs.c文件。
在覆盖以上提及的文件之前。
你还需要进入我提供的附件中的libavs/source目录,运行make,生成libavs.so和libavs.a文件并拷贝到/usr/lib下。
如果你需要生成avi文件的工具,可以到avsavi目录下,运行make,获得avsavi工具。这个工具的用法是命令后跟一个avs video es文件的文件名,它会在该avs文件相同的目录下创建一个.avi文件。
在进行mplayer的编译的时候,你还要更改一下config.mak文件,将"EXTRA_LIB ="那一行改为EXTRA_LIB = -lavs。
感兴趣的测试一下,大家讨论讨论。
______________________________________________________________
出0.0.2了,改正一些错误。在avsavi目录中,受影响的文件是avstoavi.c。以及mplayer目录中的vd_avs.c文件
______________________________________________________________
但是在我的系统上第一次调用DecOneFrameFromBuffer就corddump了
Playing /root/media/stream.avs.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO: [VSVA] 720x576 24bpp 25.000 fps 1498.2 kbps (182.9 kbyte/s)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [libavs] Chinese AVS Video decoder libavs0.0.1
VDec: vo config request - 720 x 576 (preferred csp: Planar I420)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x576 => 720x576 Planar YV12
Selected video codec: [avsdec] vfm:libavs (Chinese AVS video decoding)
==========================================================================
Audio: no sound
Starting playback...
MPlayer interrupted by signal 11 in module: decode_video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug. |
|