rurico / flutter_video_compress

Generate a new file by compressed video, and provide metadata. Get video thumbnail from a video path, supports JPEG/GIF. To reduce app size not using FFmpeg in IOS.
MIT License
188 stars 73 forks source link

[Bug]Method compressVideo, if provide parameter includeAudio = true, duration not work #80

Open ipconfiger opened 4 years ago

ipconfiger commented 4 years ago

Description

final compressedVideo = await videoCompress.compressVideo(
        file.path,
        quality: videoQuality,
        deleteOrigin: false,
        startTime: 0,
        duration: 5,
        includeAudio: true
    );

in this case, duration does not work

but, when

final compressedVideo = await videoCompress.compressVideo(
        file.path,
        quality: videoQuality,
        deleteOrigin: false,
        startTime: 0,
        duration: 5,
    );

duration works

Platform

IOS|Android|Both|Other

spiderion commented 4 years ago

any news on this?