Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 压缩视频文件_Flutter_Dart - Fatal编程技术网

Flutter 压缩视频文件

Flutter 压缩视频文件,flutter,dart,Flutter,Dart,我正在使用FFmpeg压缩视频。但我想要的是在压缩后删除文件。压缩也不起作用。 下面是我迄今为止尝试过的代码 int compressedFile = await _flutterFFmpeg .executeWithArguments(["-i", file.path, "-c:v", "mpeg4", 'compressed'+file.path]); print(compressedFile); 检查依赖项版本: dependencies: flutter

我正在使用FFmpeg压缩视频。但我想要的是在压缩后删除文件。压缩也不起作用。 下面是我迄今为止尝试过的代码

int compressedFile = await _flutterFFmpeg
        .executeWithArguments(["-i", file.path, "-c:v", "mpeg4", 'compressed'+file.path]);
    print(compressedFile);

检查依赖项版本:

dependencies:
    flutter_video_compress: ^0.3.x                                                          

也请查看此链接

,但在引擎盖下,我猜它使用的是flatterffmped,它已经存在于我的项目中。