DrAchernar / flutter-video-trimmer

Video trimmer example app v Flutter
22 stars 6 forks source link

Flutter-ffmpeg video is stuck in the first few seconds after it was trimmed (but the audio is still playing) #2

Open braysonjohn148 opened 4 years ago

braysonjohn148 commented 4 years ago

video is stuck in the first few seconds after it was trimmed (but the audio is still playing). I think that it is because of the FFmpeg command, but I'm not sure and couldn't find the exact reason,.

try{ FileUtils.mkdir([dirloc]); _flutterFFmpeg.execute( '-i ${widget.picked.path} -ss ${timeBoxControllerStart.text} -t ${durationFormatter(difference)} -c copy $dirloc/$now.mp4') .then((value) { print('Got value $value'); _saveVideo('$dirloc/$now.mp4'); }).catchError((error) { print('Error'); }); } catch(e) { print(e); }

DrAchernar commented 4 years ago

I remember that I saw similar problem while I was working on this project. But I guess I fixed it while was developing. I used it on iOS. If I will have time for check it, I'll give commit and give info to you