打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

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

      参考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 theprimary layer of the bitstream. If B slices (or Explicit Coding Structure) are to be used (we will call this as thesecondary 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文档, 这个文档非常非常详细,在此不再赘述.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
火狐常见启动参数介绍
HandBrake使用教程
x264框架分析
刘歧:FFmpeg Filter深度应用
HEVC学习(一) —— HM的使用
火狐浏览器启动参数介绍
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服