Explorar el Código

Tuned mp4 settings

flabbet hace 11 meses
padre
commit
3f02506dbe

+ 3 - 1
src/PixiEditor.AnimationRenderer.FFmpeg/FFMpegRenderer.cs

@@ -120,7 +120,9 @@ public class FFMpegRenderer : IAnimationRenderer
             .OutputToFile(outputPath, true, options =>
             .OutputToFile(outputPath, true, options =>
             {
             {
                 options.WithFramerate(FrameRate)
                 options.WithFramerate(FrameRate)
-                    .WithConstantRateFactor(21)
+                    .WithConstantRateFactor(18)
+                    .WithVideoBitrate(1800)
+                    .WithVideoCodec("mpeg4")
                     .ForcePixelFormat("yuv420p");
                     .ForcePixelFormat("yuv420p");
             });
             });
     }
     }

+ 4 - 1
src/PixiEditor/Views/Dialogs/ExportFilePopup.axaml.cs

@@ -429,7 +429,10 @@ internal partial class ExportFilePopup : PixiEditorPopup
     {
     {
         if (e.Sender is ExportFilePopup popup)
         if (e.Sender is ExportFilePopup popup)
         {
         {
-            popup.RenderPreview();
+            if (popup.videoPreviewTimer != null)
+            {
+                popup.RenderPreview();
+            }
         }
         }
     }
     }
 }
 }