LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: MatthewGong

将AVS1-P2 Decoder项目移植到linux下

[复制链接]
发表于 2006-4-19 19:26:25 | 显示全部楼层
为了支持国产标准,暂时置项一个月。以后视情况可以加以延长。
回复 支持 反对

使用道具 举报

发表于 2006-4-20 09:18:06 | 显示全部楼层
多谢KJ版主支持。
回复 支持 反对

使用道具 举报

发表于 2006-4-21 17:20:02 | 显示全部楼层
自己建立一个标准根本不是什么好办法。正确的做法应该是凭借自身的实力,参与到国际标准里面,成为国际标准的制定者之一,韩国三星就是成功的例子。自己定个强制标准,再好也只是画地为牢。
回复 支持 反对

使用道具 举报

发表于 2006-4-24 09:50:44 | 显示全部楼层
realtang 为何将avs转化为avi后在mplayer下不能播放呢?其他的avi都能播放啊
谢谢回答
回复 支持 反对

使用道具 举报

发表于 2006-4-24 10:13:14 | 显示全部楼层
mplayer需要重新编译,要把avs codec插件编译进去。
回复 支持 反对

使用道具 举报

发表于 2006-4-24 11:04:19 | 显示全部楼层
感谢realtang老大的回答

我是用你的avsavi工具,将AVS转化为AVI后,再用MPLAYER来播放的,不能播放;
但是其他的AVI格式的文件能在MPLAYER播放
回复 支持 反对

使用道具 举报

发表于 2006-4-24 11:19:44 | 显示全部楼层
需要重新编译mplayer,把avs codec 插件编译进去。
增加两张截屏大家“欣赏”一下,因为是256色framebuffer 控制台,效果比较差。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-4-25 15:00:02 | 显示全部楼层
realtang
我按照你前面的说步骤编译了mplayer后,播放AVS,出现是一些彩色的小方框
Opening audio decoder: [libdv] Raw DV Audio Decoder
Unknown/missing audio format -> no sound
ADecoder init failed
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Cannot find codec 'dvaudio' in libavcodec...
ADecoder init failed
ADecoder init failed
Cannot find codec for audio format 0x56444152.
Read DOCS/HTML/en/codecs.html!
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 UYVY
Decoder is capable of YUV output (flags 0x9)
VDec: vo config request - 720 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
VDec: using BGR 24-bit as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 720x576 => 720x576 BGR 24-bit
SwScaler: using unscaled BGR 24-bit -> BGRA special converter
Selected video codec: [qdv] vfm:dshow (Sony Digital Video (DV))
==========================================================================
Audio: no sound


请指教,谢谢
回复 支持 反对

使用道具 举报

发表于 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.
回复 支持 反对

使用道具 举报

发表于 2006-4-27 15:41:25 | 显示全部楼层
用最新的(0.0.2)版的avsavi工具了吗?0.0.1版本的avsavi工具有问题,它会弄丢avs 视频ES流文件的20个字节的系统头。因为缺少这个系统头所以libavs不能得到正确初始化。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表