hevcencode:broken output stream

未关闭
#342 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
c, linux, ubuntu

调研方向

从 hevcencode 入口点开始,在所述的 HEVC 环境中重现提供的两个命令,检查对于 use_features、use_block_sizes、p2b 和 intra-period 情况,输出流是否可解码。将其行为与报告中提到的 media-sdk encode sample 进行比较;当受影响的流在这些配置下都能正确解码时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Issue:
  1. If enabling use_features and use_block_sizes, the whole output stream will be undecodable.
  2. If disabling use_features and use_block_sizes, it will be following situations:
    ①When p2b=0, if setting intra period size larger than 32, then all the pictures that its POC are larger than 31 are broken.
    ②When p2b=1, if setting intra period size more than 128, then the last picture of every gop is broken.
  3. It seems that it’s caused by the hevcencode sample itself, since when using the encode sample in media-sdk it doesn’t show this
    problem.
Test commandline:

sudo ./hevcencode -w 1920 -h 1080 -n 0 -f 30 --intra_period 150 --idr_period 150 --rcmode VBR --bitrate 4000 --syncmode --srcyuv nv12_yuv_file --fourcc NV12 --profile 1 --p2b 0 --lowpower 1 -o ./output_stream

sudo ./hevcencode -w 1920 -h 1080 -n 0 -f 30 --intra_period 150 --idr_period 150 --rcmode VBR --bitrate 4000 --syncmode --srcyuv nv12_yuv_file --fourcc NV12 --profile 1 --p2b 1 --lowpower 1 -o ./output_stream

Environment:

Hardware:intel ARC A380
OS: Ubuntu 22.04.3 LTS with 6.2.0-32-generic kernel
Media Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.2.4
VA-API version: 1.19 (libva 2.19.0)
Libva-utils version: 2.19.0
Display:drm

主要语言
C
星标
244
派生
175
平均合并
9 天 7 小时
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

intel/libva-utils 的其他 Issue

查看 intel/libva-utils 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。