How to use HM software(H.265)

1.下载

在windows下用TortoiseSVN工具下载,仓库位置:https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/


2.修改配置文件

找到 HEVCSoftware\trunk\cfg\encoder_lowdelay_P_loco.cfg,在文件开头做如下修改:

•#========File I/O =====================
•InputFile                          :D:\video\foreman_352x288_30p.yuv           #表示输入的YUV文件
InputBitDepth                 : 8           # Input bitdepth
•FrameRate                     : 25          # Frame Rate per second
•FrameSkip                     : 0           # Number of frames to be skipped ininput
•SourceWidth                   : 352         # Input  frame width
•SourceHeight                  : 288         # Input  frame height
•FrameToBeEncoded       : 200         # Number of frames to be coded
•BitstreamFile                 :D:\video\foreman_352x288_30p_lcldp_qp28.hevc         #表示输出的二进制码流文件
•ReconFile                     :D:\video\foreman_352x288_30p_lcldp_qp28_rec.yuv     # 表示输出的重建YUV文件

另存为forman_encoder_lowdelay_loco.cfg

3. 编译可执行代码

找到HEVCSoftware\trunk\build\HM_vc9.sln,用vs2008打开, build...


4.执行种情况的配置文件做类似修改即可。

在windows的命令行模式下输入以下命令:

D:\HEVCSoftware\trunk\bin\vc9\Win32\Debug\TAppEncoder.exe -c D:\HEVCSoftware\trunk\cfg\forman_encoder_lowdelay_loco.cfg

红色部分文字要根据自己的文件存储路径进行修改


以上举例的配置文件是针对低复杂度(LC),I,P帧低延时模式的,其它7种情况的配置文件做类似修改即可。



  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
In .NET 6 and later versions, the `System.Windows.Forms` namespace is not included in the default installation of WPF applications. However, you can still use the `FolderBrowserDialog` class in your WPF application by adding a reference to the `System.Windows.Forms` NuGet package and using the `System.Windows.Forms.Integration` namespace. Here are the steps to use `FolderBrowserDialog` in .NET 6 WPF: 1. Add a reference to the `System.Windows.Forms` NuGet package in your WPF project. 2. Add the following using statements to the top of your code file: ```csharp using System.Windows.Forms; using System.Windows.Forms.Integration; ``` 3. In your code, create a `FolderBrowserDialog` object and use the `ShowDialog` method to display the dialog box: ```csharp FolderBrowserDialog dialog = new FolderBrowserDialog(); if (dialog.ShowDialog() == DialogResult.OK) { // do something with the selected folder } ``` 4. If you want to use the `FolderBrowserDialog` in a WPF window or page, you can use the `WindowsFormsHost` control to host the dialog box: ```xml <Window xmlns:winforms="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" ...> <Grid> <winforms:WindowsFormsHost> <forms:FolderBrowserDialog x:Name="folderDialog" /> </winforms:WindowsFormsHost> </Grid> </Window> ``` Then, you can use the `ShowDialog` method to display the dialog box: ```csharp if (folderDialog.ShowDialog() == DialogResult.OK) { // do something with the selected folder } ``` Note that you will also need to add a reference to the `WindowsFormsIntegration` assembly in your WPF project.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值