ammen99 / wf-recorder

MIT License
850 stars 63 forks source link

How to change quality #158

Open CRAG666 opened 2 years ago

CRAG666 commented 2 years ago

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?

taylor85345 commented 2 years ago

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.

CRAG666 commented 2 years ago

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

CRAG666 commented 2 years ago

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

soreau commented 2 years ago

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