wf-recorder icon indicating copy to clipboard operation
wf-recorder copied to clipboard

How to change quality

Open CRAG666 opened this issue 3 years ago • 4 comments

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?

CRAG666 avatar Dec 13 '21 00:12 CRAG666

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.

taylor85345 avatar Feb 10 '22 16:02 taylor85345

Thanks, now a more specific question, how can I record at the highest quality?

CRAG666 avatar Feb 11 '22 04:02 CRAG666

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.):

  1. Name: eDP-1 Description: Unknown 0x0600 0x00000000 (eDP-1)
  2. 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

CRAG666 avatar Feb 11 '22 05:02 CRAG666

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

soreau avatar Feb 11 '22 05:02 soreau