Skip to content

Commit

Permalink
Editor: Changed ffmpeg video quality setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Mar 10, 2021
1 parent 976404a commit 3e79ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Project.Video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Expand Down

0 comments on commit 3e79ce4

Please sign in to comment.