Update VideoEditor encoding settings for improved output quality
This commit modifies the encoding parameters in the VideoEditor class, changing the preset to 'veryslow' and adjusting the CRF value to 12 for enhanced video quality. Additionally, it introduces new parameters for profile and level settings, as well as x264 parameters for reference frames and B-frames, optimizing the encoding process for better performance and visual fidelity.
This commit is contained in:
@@ -2699,9 +2699,12 @@ class VideoEditor:
|
||||
'-r', str(self.fps),
|
||||
'-i', temp_file.name,
|
||||
'-c:v', 'libx264',
|
||||
'-preset', 'fast',
|
||||
'-crf', '18',
|
||||
'-preset', 'veryslow',
|
||||
'-crf', '12',
|
||||
'-pix_fmt', 'yuv420p',
|
||||
'-profile:v', 'high',
|
||||
'-level', '4.2',
|
||||
'-x264-params', 'ref=5:bframes=8:deblock=1,1',
|
||||
output_path
|
||||
]
|
||||
self.temp_file_name = temp_file.name
|
||||
|
Reference in New Issue
Block a user