Parcourir la source

Editor: Changed ffmpeg video quality setting.

Mr.doob il y a 4 ans
Parent
commit
3e79ce410e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      editor/js/Sidebar.Project.Video.js

+ 1 - 1
editor/js/Sidebar.Project.Video.js

@@ -97,7 +97,7 @@ function SidebarProjectVideo( editor ) {
 
 
 		}
 		}
 
 
-		await ffmpeg.run( '-framerate', String( fps ), '-pattern_type', 'glob', '-i', '*.png', '-c:v', 'libx264', '-pix_fmt', 'yuv420p', '-preset', 'slow', '-crf', String( 6 ), 'out.mp4' );
+		await ffmpeg.run( '-framerate', String( fps ), '-pattern_type', 'glob', '-i', '*.png', '-c:v', 'libx264', '-pix_fmt', 'yuv420p', '-preset', 'slow', '-crf', String( 5 ), 'out.mp4' );
 
 
 		const data = ffmpeg.FS( 'readFile', 'out.mp4' );
 		const data = ffmpeg.FS( 'readFile', 'out.mp4' );