Try ls /dev/dri/ to see which devices are available. Have you looked if there is more than one hw device available? If you have multiple usable devices in the same machine (for example, an Intel integrated GPU and an AMD discrete graphics card), they can be used simultaneously to decode different streams:įfmpeg -init_hw_device vaapi=intel:/dev/dri/renderD128 -init_hw_device vaapi=amd:/dev/dri/renderD129 -hwaccel vaapi -hwaccel_device intel -i. Truly lossless encoding can only be done in software I think, but with higher bitrates it may look good enough.Īlso the ffmpeg wiki says VAAPI is only supported partly for AMD GPUs.īut I suspect you currently might be using the CPU's integrated GPU anyway, which might lead to performance issues: The number after Failed to get framebuffer is usually 127 or somewhere from 134 to 136. Failed to get framebuffer 127: Invalid argument. I'm assuming the color issue is from the color format nv12, but rgb or rgb8 gives an error.įfmpeg -device /dev/dri/card0 -f kmsgrab -i -vf 'hwmap=derive_device=vaapi,scale_vaapi=w=2560:h=1440:format=nv12' -c:v h264_vaapi -qp 0 output.mp4īut it gives the error: Using plane 65 to locate framebuffers. I'm running Linux Mint with the 5.14.14-051414-generic kernel.įfmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 2560x1440 -i :0 -r 60 -vf 'hwupload,scale_vaapi=format=nv12' -c:v h264_vaapi -qp 0 output.mp4įfmpeg says it's recording at 60 fps, but the recording is choppy and slightly miscolored. I'm trying to record my screen losslessly (or at near lossless quality) with hardware acceleration on a 6700 XT with ffmpeg.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |