fix: add custom bitrate, framerate for preview compress

This commit is contained in:
Prateek Sunal
2025-01-08 02:25:47 +05:30
parent 05ee252be8
commit ca08f39a4e
2 changed files with 4 additions and 2 deletions

View File

@@ -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}');

View File

@@ -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