AVS+ GOP结构获取 及 软解码流程

来源:互联网 发布:mac office 2016 威锋 编辑:程序博客网 时间:2024/05/16 04:36

想要软解码AVS+视频在本地电脑播放,或者查看GOP结构等内容,可以通过以下流程。

1. 安装ffmpeg,用于将TS各式的码流分离为ES格式

   a. 下载地址 :http://ffmpeg.zeranoe.com/builds/    (根据自己的操作系统版本选择)

      如果不做开发用,下载static 版本就行



b. 通过下载的FFMPEG 进行TS转ES, 命令如下:  ffmpeg -i xx.ts -vcodec copy  -an  xx.h264


c. 将得到的avs.h264 改名为avs.es


2.  从AVS联盟下载 avs 解码器。 (下载需要密码, 公司为联盟单位,有下载密码。 需要者申请)

    这个解码器用于将AVS+ ES码流解码成YUV原始视频数据

    a. 下载并编译解码器



下载得到的工程,通过VS2010打开,编译即可




 b.  解码

     将需要解码的ES码流写入配置文件



 直接点de.bat, 生成yuv文件


通过查看生成的日志信息,可以得到GOP结构等


3. 播放yuv文件

 a. 下载YUV播放器


b. 打开YUV播放器,设置参数


c.打开YUV文件,即可播放




附录:

avs解码器配置文件(decoder.cfg):

avs.es          ........AVS coded bitstream
avs.yuv         ........Output file, YUV 4:2:0 format
avs.yuv          ........Ref sequence (for SNR)
2                        ........Number of reference frame buffers, for memory managemnt only
0                        ........Loopfilter disable(0: filter, 1: no loopfilter)
0                        ........Reference frame's YUV Structure(0: YUV, 1: U0Y0 V0Y1)
0                        ........Check BBV buffer when CBR in encoder is used ( 0: disable, 1: enable)
0                        ........Output the result of syntax checking (0: overwrite the existing file, 1: append the result to the end of existing file)
0                        ........PackingMode 1:right-left packing 2:up-bottom-packing
6                        ........Tap number of upsampling filter
[1,-5,20,20,-5,1]        ........UpSampleFilter
test_sec_dec.yuv         ........SEC Output file, YUV 4:2:0 format
test_third_dec.yuv       ........Output file, YUV 4:2:0 format
1                        ........Reference Order(0: decoding order<default>, 1: display  order<for comparison between original and decoded files>)
1                        ........Output Decoded Picture
  
This is a file containing input parameters to the AVS1-P2 decoder.
The text line following each parameter is discarded by the decoder.

1 0
原创粉丝点击