Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Framebuffer capture with VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME does not work

オープン
#798 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c, linux

調査の方向性

まず、Intel Iris Xe システムで、VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME を指定した報告済みの ffmpeg kmsgrab コマンドを再現します。報告に記載されている Debian 12、Ubuntu 23.10、およびそれ以前の Ubuntu 環境で、キャプチャされた出力と framebuffer の処理を比較します。キャプチャによって、古いメモリ内容や情報漏えいなしに正しい画像が生成されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Problem:
Framebuffer capture with VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME does not work. I have tried this with a simple implementation, but ffmpeg is a better way to reproduce the issue.
The captured frames have some parts of the real picture with pixel soup on top and parts of readable text from previous bash sessions and other stuff.
It seems a wrong part of memory is used as the framebuffer, which also leaks information from memory.
I don't know if this is a bug or unsupported usage of libva, but it was working in an older version of Ubuntu.

Command used:
ffmpeg -crtc_id 42 -framerate 60 -f kmsgrab -i - -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' -c:v h264_vaapi output.mp4 (with replaced crtc_id)

Hardware:
Intel Iris Xe Graphics (TigerLake-LP GT2) laptop

OS versions with different versions of the software stack (including kernel):

Debian 12 bookworm fresh install                not working
Ubuntu 23.10 upcoming LTS fresh install         not working
An older Ubuntu LTS live dvd    (with XOrg instead of Xwayland and the oldest software versions)  working

all with intel-media-va-driver-non-free

主要言語
C
スター
793
フォーク
318
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

intel/libva のほかの issue

intel/libva の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。