fix: add custom bitrate, framerate for preview compress
This commit is contained in:
@@ -82,7 +82,9 @@ class PreviewVideoStore {
|
||||
_logger.info('Compressing video ${enteFile.displayName}');
|
||||
final mediaInfo = await VideoCompress.compressVideo(
|
||||
file.path,
|
||||
quality: VideoQuality.MediumQuality,
|
||||
quality: VideoQuality.Res1280x720Quality,
|
||||
bitRate: 2000000,
|
||||
frameRate: 30,
|
||||
);
|
||||
if (mediaInfo?.path == null) return;
|
||||
_logger.info('CompressionDone ${enteFile.displayName}');
|
||||
|
||||
@@ -186,7 +186,7 @@ dependencies:
|
||||
uuid: ^4.5.0
|
||||
video_compress:
|
||||
git:
|
||||
url: https://github.com/RmanAkbarzadeh/VideoCompress.git
|
||||
url: https://github.com/prateekmedia/VideoCompress-forked.git
|
||||
video_editor:
|
||||
git:
|
||||
url: https://github.com/prateekmedia/video_editor.git
|
||||
|
||||
Reference in New Issue
Block a user