Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Framebuffer capture with VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME does not work

Aperta
#798 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
c, linux

Direzione di ricerca

Inizia riproducendo il comando ffmpeg kmsgrab segnalato con VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME sul sistema Intel Iris Xe. Confronta l’output acquisito e la gestione del framebuffer tra Debian 12, Ubuntu 23.10 e gli ambienti Ubuntu meno recenti elencati nel report. Il lavoro è completato quando l’acquisizione produce l’immagine corretta senza contenuti obsoleti nella memoria o fughe di informazioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C
Stelle
793
Fork
318
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di intel/libva

Tutte le issue di intel/libva

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.