diff --git a/lib/vm_sdk/impl/ffmpeg_helper.dart b/lib/vm_sdk/impl/ffmpeg_helper.dart index ff5df09..750d953 100644 --- a/lib/vm_sdk/impl/ffmpeg_helper.dart +++ b/lib/vm_sdk/impl/ffmpeg_helper.dart @@ -17,7 +17,8 @@ ERatio _ratio = ERatio.ratio11; double _scaleFactor = 2 / 3.0; double _minDurationFactor = 1 / _framerate; -const int _fadeDuration = 3; +// const int _fadeDuration = 3; +const int _fadeDuration = 0; class RenderedData { String absolutePath; diff --git a/lib/vm_sdk/vm_sdk.dart b/lib/vm_sdk/vm_sdk.dart index 803c7cc..7c2cebc 100644 --- a/lib/vm_sdk/vm_sdk.dart +++ b/lib/vm_sdk/vm_sdk.dart @@ -516,23 +516,23 @@ class VMSDKWidget extends StatelessWidget { } } - if (isAutoEdit && editedMediaList.length > 1 && totalDuration >= 10) { - double curDuration = 0; - List fadeOutClips = []; - for (int i = xfadeAppliedList.length - 1; i >= 0; i--) { - RenderedData lastClip = xfadeAppliedList.removeLast(); - fadeOutClips.add(lastClip); + // if (isAutoEdit && editedMediaList.length > 1 && totalDuration >= 10) { + // double curDuration = 0; + // List fadeOutClips = []; + // for (int i = xfadeAppliedList.length - 1; i >= 0; i--) { + // RenderedData lastClip = xfadeAppliedList.removeLast(); + // fadeOutClips.add(lastClip); - curDuration += lastClip.duration; - if (curDuration >= 2) { - final RenderedData fadeOutApplied = - await applyFadeOut(fadeOutClips.reversed.toList()); - - xfadeAppliedList.add(fadeOutApplied); - break; - } - } - } + // curDuration += lastClip.duration; + // if (curDuration >= 2) { + // final RenderedData fadeOutApplied = + // await applyFadeOut(fadeOutClips.reversed.toList()); + + // xfadeAppliedList.add(fadeOutApplied); + // break; + // } + // } + // } _currentStatus = EGenerateStatus.finishing; _currentRenderedFrame = _allFrame;