wf-recorder
wf-recorder copied to clipboard
How to change quality
wf-recorder -f test-vaapi.mkv -c h264_vaapi -d /dev/dri/renderD128 i am using this to record my laptop screen. In the output I get this [h264_vaapi @ 0x7f984c001b40] No quality level set; using default (20). How can I change the quality level?
The quality setting is a parameter of the h264_vaapi codec, which you can pass with the -p flag. In this case the quality setting seems to be related to the qp parameter, which you can pass through wf-recorder using -p qp=20, changing the integer as you see fit. You can find more information on this parameter by running ffmpeg -h encoder=h264_vaapi.
You shouldn't need to change this setting unless you are having noticeable quality issues or frame drops due to slow encoding, so letting it go with the default should be fine.
Thanks, now a more specific question, how can I record at the highest quality?
wf-recorder -f test-vaapi.mkv -c h264_vaapi -d /dev/dri/renderD128 Please select an output from the list to capture (enter output no.):
- Name: eDP-1 Description: Unknown 0x0600 0x00000000 (eDP-1)
- Name: DP-2 Description: Dell Inc. DELL E170S U072N0153SHS (DP-2 via VGA) Enter output no.:1 selected region 0 0 0 0 [h264_vaapi @ 0x7f20a8001b40] No quality level set; using default (20). [1] 23366 segmentation fault (core dumped) wf-recorder -f test-vaapi.mkv -c h264_vaapi -d /dev/dri/renderD128
this error
The vaapi command needs working vaapi, make sure your drivers are installed. For the highest recording quality, see https://github.com/ammen99/wf-recorder/issues/130#issuecomment-749164332