diff --git a/CHANGELOG.md b/CHANGELOG.md index 091f2fac..07f9d177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.0.80 + +- [FFMPEG] Upgraded ffmpeg dependency version from 5.1.0 to 6.0.3 +- [FFMPEG] Added double quotes in commands + ## 0.0.79 - [FFMPEG] Downgraded ffmpeg dependency version from 6.0.2 to 5.1.0 diff --git a/lib/src/controllers/chat/ds_video_message_bubble.controller.dart b/lib/src/controllers/chat/ds_video_message_bubble.controller.dart index 28406a65..e4dad29b 100644 --- a/lib/src/controllers/chat/ds_video_message_bubble.controller.dart +++ b/lib/src/controllers/chat/ds_video_message_bubble.controller.dart @@ -75,7 +75,7 @@ class DSVideoMessageBubbleController { ); final session = await FFmpegKit.execute( - '-hide_banner -y -i $inputFilePath ${outputFile.path}'); + '-hide_banner -y -i "$inputFilePath" "${outputFile.path}"'); final returnCode = await session.getReturnCode(); @@ -90,10 +90,10 @@ class DSVideoMessageBubbleController { } final thumbnailPath = await getFullThumbnailPath(); - final command = - '-ss 00:00:3 -i ${outputFile.path} -frames:v 1 $thumbnailPath'; - await FFmpegKit.execute(command); + await FFmpegKit.execute( + '-hide_banner -y -i "${outputFile.path}" -vframes 1 "$thumbnailPath"', + ); thumbnail.value = thumbnailPath; } catch (_) { diff --git a/lib/src/widgets/chat/audio/ds_audio_player.widget.dart b/lib/src/widgets/chat/audio/ds_audio_player.widget.dart index af8e24e6..57e8eb6f 100644 --- a/lib/src/widgets/chat/audio/ds_audio_player.widget.dart +++ b/lib/src/widgets/chat/audio/ds_audio_player.widget.dart @@ -153,7 +153,8 @@ class _DSAudioPlayerState extends State await _controller.player.setFilePath(outputFile.path); } else { final session = await FFmpegKit.execute( - '-hide_banner -y -i $inputFilePath -c:a libmp3lame -qscale:a 2 ${outputFile.path}'); + '-hide_banner -y -i "$inputFilePath" -c:a libmp3lame -qscale:a 2 "${outputFile.path}"', + ); final returnCode = await session.getReturnCode(); diff --git a/pubspec.yaml b/pubspec.yaml index 07cf8e17..263c6725 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: blip_ds description: Blip Design System for Flutter. -version: 0.0.79 +version: 0.0.80 homepage: https://github.com/takenet/blip-ds-flutter#readme repository: https://github.com/takenet/blip-ds-flutter @@ -11,7 +11,7 @@ environment: dependencies: flutter: sdk: flutter - ffmpeg_kit_flutter_full_gpl: ^5.1.0 + ffmpeg_kit_flutter_full_gpl: ^6.0.3 just_audio: ^0.9.30 rxdart: ^0.27.4 flutter_spinkit: ^5.1.0 diff --git a/sample/pubspec.lock b/sample/pubspec.lock index 1c25ebe4..9d05cc41 100644 --- a/sample/pubspec.lock +++ b/sample/pubspec.lock @@ -31,7 +31,7 @@ packages: path: ".." relative: true source: path - version: "0.0.79" + version: "0.0.80" boolean_selector: dependency: transitive description: @@ -180,10 +180,10 @@ packages: dependency: transitive description: name: ffmpeg_kit_flutter_full_gpl - sha256: "523bd84eed67e157d8988889ceb21e7e3f58539af428bfe0b277a90c5793f61c" + sha256: "4f269bcb636bfcb544e5b4d65c706a3d311839970cb42638e72406410c1b5b7b" url: "https://pub.dev" source: hosted - version: "5.1.0" + version: "6.0.3" ffmpeg_kit_flutter_platform_interface: dependency: transitive description: