ffmpeg-kit icon indicating copy to clipboard operation
ffmpeg-kit copied to clipboard

run command to get Mac list_devices return Error

Open JzwOnly opened this issue 3 years ago • 1 comments

Description run command with FFmpegKit.execute("-f avfoundation -list_devices true -i \"\"") can't get devicelist ERROR: Missing argument for option 'i'. FATAL: Error splitting the argument list: FATAL: Invalid argument

Expected behavior What you expected to happen.

Current behavior What happened.

To Reproduce Steps to reproduce the behaviour.

Screenshots If applicable, add screenshots to help explain your problem.

Logs Post logs here or paste them to Ghostbin and insert the link here.

Environment

  • Platform: Android/Flutter/iOS/macOS/ReactNative/tvOS
  • Architecture: arm-v7a, arm-v7a-neon, arm64-v8a, x86, x86_64, armv7, armv7s, arm64, arm64-mac-catalyst, arm64-simulator, arm64e, i386, x86-64, x86-64-mac-catalyst
  • Version: v4.5/v4.5.LTS
  • Source branch: main, development
  • Xcode version: 12.4.1
  • Cocoapods version: 1.10.1
  • Android Studio version: 4.0
  • Android NDK version: r22b
  • flutter doctor:
  • react-native info:

Other Add any other context about the problem here.

JzwOnly avatar Jul 15 '22 01:07 JzwOnly

FFmpegKitConfig.parseArguments method used to split the command into arguments doesn't allow zero length arguments. Therefore, the last argument of your command is dropped and your command fails with an error. Try using FFmpegKit.executeWithArguments method instead by building the argument list yourself.

tanersener avatar Jul 15 '22 15:07 tanersener

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 14 '22 02:09 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Sep 21 '22 02:09 github-actions[bot]