分享

JM8.6配置文件中参数的解释

 zhanganl 2014-10-22

      参考JVT-Q042文档,可以学到很多东西. 说明: 不同profile的配置文件中参数一样,只是取值不一样而已,本人认为这样并不好,在baseline的配置文件中带有B帧的信息,非常不好,容易误导人,因为baseline根本就不支持B帧. 下面将对配置文件重要的参数进行解释.

 

##########################################################################################
# Files
##########################################################################################
InputFile             = "foreman_part_qcif.yuv"       # Input sequence, YUV 4:2:0

Description: Input sequence name. Name could include file path. Current software only supports concatenated input sources (i.e. all components and frames should be included in a single file)  .必须是yuv420的形式,如果不是,需要先转.

 Note: For Unix/Linux based systems directories should be separated using a backslash “\”, while for DOS\Windows systems, directories should be separated using a forward slash “/”.  注意Windows和Unix/Linux的不同


InputHeaderLength     = 0      # If the inputfile has a header, state it's length in byte here

Description: Specifies inputfile header size in terms of bytes. For RAW data files (i.e. YUV) this is usually 0 (default).


StartFrame            = 0      # Start frame for encoding. (0-N)

Description: Specifies initial frame for encoding. Default value is 0.


FramesToBeEncoded     = 1      # Number of frames to be coded

Description: Specifies number of frames to be coded excluding B slice coded frames. Default is set to 1. We shall call this as the primary layer of the bitstream. If B slices (or Explicit Coding Structure) are to be used (we will call this as the secondary layer) then:

FramesToBeEncoded = int((TotalNumberOfFrames-1)/(NumberBFrames +  1)) + 1      本人尝试过,有B帧,还真是不一样.


FrameRate             = 30    # Frame Rate per second (1-100)

Description: Input File Frame rate. Supports values in the range [0.0, 100.0]. Default value is 30.0.

Note: For interlace material (i.e. 60 or 50 fields), value should be set equal to FieldRate/2 (i.e. 30.0 and 25.0 respectively).


SourceWidth           = 176    # Image width in Pels, must be multiple of 16

Description: Image width in Luminance Samples. If the value is not a multiple of 16 the image is automatically cropped to the next number that is a multiple of 16. Default is 176.  不是16的倍数,则需扩展


SourceHeight          = 144    # Image height in Pels, must be multiple of 16

Description: Image height in Luminance Samples. If no Interlace tools are used and if the value is not a multiple of 16 the image is automatically cropped to the next number that is a multiple of 16. Otherwise if the value is not a multiple of 32 the image is automatically cropped to the next number that is a multiple of 32. Default is 144.  竖直方向高度,赢考虑扩展,还要考虑帧或场.


TraceFile             = "trace_enc.txt"

Description: Bitstream Tracefile. File is useful for debugging. To enable, code needs to be compiled by setting the define TRACE in defines.h to 1.

 TraceFile在分析码流时很有用,要学会利用

Warning!!!

Enabling this option may result in the generation of very large files, while would also slow down encoding considerably. Enable with caution. Parameter recommended for debugging purposes.  


ReconFile             = "test_rec.yuv"

Description: Output reconstructed name. Name could include file path. If empty, no output is generated.


OutputFile            = "test.264"

Description: Output bitstream name. Name could include file path.

 

       至于其他参数的含义,可以参考JVT-Q042文档, 这个文档非常非常详细,在此不再赘述.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多