Apparently, if SaveJPGToBuffer() call in RB_TakeVideoFrameCmd() gets an cl_aviMotionJpegQuality->integer (after the appropriate initialization) instead of a fixed 90, /video can get variable jpeg quality when cl_aviMotionJpeg in on (default).
Is there a reason this wasn't already in it?
Apparently SaveJPGToBuffer() already catered for the possibility of a variable quality (since it checked if (quality >= 85) at a point) though it gets it fixed in its only call currently.
Created attachment 2590[details]
Allow jpeg avi and screenshot quality to be controled by cvars.
Based on tinkah suggestions I added two cvars, r_aviMotionJpegQuality which controls motion jpeg avi video quality and r_screenshotJpegQuality which controls jpeg screenshot quaility.
Created attachment 2590 [details] Allow jpeg avi and screenshot quality to be controled by cvars. Based on tinkah suggestions I added two cvars, r_aviMotionJpegQuality which controls motion jpeg avi video quality and r_screenshotJpegQuality which controls jpeg screenshot quaility.
Created attachment 2594 [details] Add jpeg quality cvars and add to README Added jpeg quality control cvars to README.