Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ def get_output_quality_string(self):
qp_max = 5

if self.output_format == "webm" or self.output_format == "mkv":
quality_video = f"vp8enc min_quantizer={min_quantizer} max_quantizer={max_quantizer} cpu-used={self.cpus} cq_level=13 " \
quality_video = f"videoconvert ! queue ! vp8enc min_quantizer={min_quantizer} max_quantizer={max_quantizer} cpu-used={self.cpus} cq_level=13 " \
f"deadline=1000000 threads={self.cpus}"
elif self.output_format == "mp4":
quality_video = f"x264enc qp-min={qp_min} qp-max={qp_max} speed-preset=1 threads={self.cpus} ! h264parse ! " \
quality_video = f"videoconvert ! queue ! x264enc qp-min={qp_min} qp-max={qp_max} speed-preset=1 threads={self.cpus} ! h264parse ! " \
"video/x-h264, profile=baseline"

return quality_video
Expand Down