Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue with v 1.0.0 when flutter_ffmpeg is installed as well #149

Closed
lvlrSajjad opened this issue Dec 6, 2021 · 5 comments
Closed

An issue with v 1.0.0 when flutter_ffmpeg is installed as well #149

lvlrSajjad opened this issue Dec 6, 2021 · 5 comments
Labels
addressed The issue is addressed, will be closed soon if no further reply

Comments

@lvlrSajjad
Copy link

lvlrSajjad commented Dec 6, 2021

When I upgraded to 1.0.0 it gave me this error in pod install:

[!] The 'Pods-Runner' target has frameworks with conflicting names: libavcodec.framework, libavdevice.framework, libavfilter.framework, libavformat.framework, libavutil.framework, libswresample.framework, and libswscale.framework.

I use flutter_ffmpeg: ^0.4.2 for some purposes as well.
Therefore I can't use the version 1.0.0 of your library.
My packages are:

  agora_rtc_engine: ^4.0.7
  sign_in_with_apple: ^3.3.0
  crypto: ^3.0.1
  audioplayers: ^0.20.0
  cached_network_image: ^3.2.0
  circular_countdown_timer: ^0.2.0
  cloud_firestore: ^3.1.1
  cloud_functions: ^3.2.0
  connectivity: ^3.0.6
  country_pickers: ^2.0.0
  device_info: ^2.0.3
  firebase_analytics: ^8.3.4
  firebase_auth: ^3.3.0
  firebase_core: ^1.10.2
  firebase_crashlytics: ^2.4.0
  firebase_messaging: ^11.2.0
  google_ml_vision: ^0.0.7
  firebase_performance: ^0.7.1+5
  firebase_remote_config: ^0.11.0+2
  firebase_storage: ^10.2.0
  flare_flutter: ^3.0.2
  flash: ^2.0.3
  flutter_app_badger: ^1.3.0
  flutter_cache_manager: ^3.3.0
  flutter_facebook_auth: ^3.5.6+3
  flutter_secure_storage: ^5.0.2
  flutter_slidable: ^1.1.0
  font_awesome_flutter: ^9.2.0
  geocoding: ^2.0.1
  geohash: ^0.2.1
  geolocator: ^8.0.0
  google_sign_in: ^5.2.1
  googleapis: ^7.0.0
  http: ^0.13.4
  image_cropper: ^1.4.0
  image_picker: ^0.8.4+4
  file_picker: ^4.2.7
  intl: ^0.17.0
  material_design_icons_flutter: ^5.0.6595
  package_info_plus: ^1.2.1
  path: ^1.8.0
  path_provider: ^2.0.7
  permission_handler: ^8.3.0
  photo_view: ^0.13.0
  progressive_image: ^2.0.0
  purchases_flutter: ^3.7.0
  rate_my_app: ^1.1.1+1
  reorderables: ^0.4.2
  rxdart: ^0.27.3
  sembast: ^3.1.1
  share: ^2.0.4
  shared_preferences: ^2.0.9
  smooth_page_indicator: ^1.0.0+2
  store_redirect: ^2.0.0
  transparent_image: ^2.0.0
  url_launcher: ^6.0.17
  vibration: ^1.7.3
  flutter_sound_lite: ^8.4.2
  video_trimmer: ^0.6.0 # for now do not upgrade to 1.0.0 because it breaks the build
  app_settings: ^4.1.0
  convert: ^3.0.1
  camera: ^0.9.4+5
  flutter_ffmpeg: ^0.4.2
  flutter_exif_rotation: ^0.4.2
  video_player: ^2.2.7
  image: ^3.1.0
  flutter_xlider: ^3.4.0

My flutter doctor:

  [✓] Flutter (Channel stable, 2.5.3, on macOS 12.0.1 21A559 darwin-x64, locale en-US)
    • Flutter version 2.5.3 at /Users/lvlrx/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (7 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/lvlrx/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.0, Build version 13A233
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.60.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.55

! Doctor found issues in 1 category.
@sbis04
Copy link
Owner

sbis04 commented Dec 6, 2021

@lvlrSajjad you have to upgrade from flutter_ffmpeg to ffmpeg_kit_flutter in order to use the latest version of this package. This error occurs because some of the Podfiles are imported twice, to use the latest version remove flutter_install_ios_plugin_pods section: https://github.com/sbis04/video_trimmer/pull/148/files#diff-4fb44f272217447e6b4b3580916d09d23b9055f6a217ad8b26269cfa6031203a

@lvlrSajjad
Copy link
Author

lvlrSajjad commented Dec 6, 2021

@sbis04 So if I change my flutter_ffmpeg to ffmpeg_kit_flutter it'll be fixed or I have to remove those lines from my podfile too?
Also another question does ffmpeg_kit_flutter do the same things as flutter_ffmpeg?

@sbis04
Copy link
Owner

sbis04 commented Dec 6, 2021

You also need to remove those lines from Podfile.
Yes, the ffmpeg_kit_flutter package has the same features but a bit different API, migration guide is here.

@lvlrSajjad
Copy link
Author

@sbis04 It worked. Just out of curiosity, what was the reason for switching to ffmpeg_kit_flutter?

@sbis04
Copy link
Owner

sbis04 commented Dec 7, 2021

Because flutter_ffmpeg has been archived by its maintainer and would no longer receive any updates: tanersener/flutter-ffmpeg#345

@sbis04 sbis04 added the addressed The issue is addressed, will be closed soon if no further reply label Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed The issue is addressed, will be closed soon if no further reply
Projects
None yet
Development

No branches or pull requests

2 participants