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

/Volumes/Macintosh: No such file or directory #4

Open
benjaminhorner opened this issue Dec 23, 2023 · 2 comments
Open

/Volumes/Macintosh: No such file or directory #4

benjaminhorner opened this issue Dec 23, 2023 · 2 comments

Comments

@benjaminhorner
Copy link

I am trying to implement your ffmpeg plugin and reduce video size but I am getting a path error. Here is my code and the output.

static Future<File?> reduceVideoSize(
    File file,
  ) async {
    final Directory appDocumentsDir = await getApplicationDocumentsDirectory();
    final FFMpegCommand cliCommand = FFMpegCommand(
      inputs: [
        FFMpegInput.asset(file.path),
      ],
      args: [
        const LogLevelArgument(LogLevel.info),
      ],
      filterGraph: FilterGraph(
        chains: [
          FilterChain(
            inputs: [],
            filters: [
              RawFilter(
                "ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4",
              ),
            ],
            outputs: [],
          ),
        ],
      ),
      outputFilepath: "${appDocumentsDir.path}ffmpegtest.mp4",
    );

    File? outputFile = await ffmpeg.runSync(
      cliCommand,
      statisticsCallback: (Statistics statistics) {
        debugPrint('bitrate: ${statistics.getBitrate()}');
      },
    );

    return outputFile;
  }
configuration: --cross-prefix=arm64-apple-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-macos-arm64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8 --target-os=darwin --enable-neon --enable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang++ --as='/Users/taner/Projects/ffmpeg-kit/.tmp/gas-preprocessor.pl -arch aarch64 -- clang -arch arm64 -target arm64-apple-macos10.15 -march=armv8-a+crc+crypto -mcpu=generic -DFFMPEG_KIT_ARM64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DMACOSX -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Oz -mmacosx-version-min=10.15 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include' --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags='-mmacosx-version-min=10.15' --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir='@rpath' --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --enable-coreimage --enable-appkit --enable-opencl --enable-opengl --enable-gpl
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
/Volumes/Macintosh: No such file or directory
@mahadydev
Copy link

Same issue facing

@TheBilalJaved
Copy link

TheBilalJaved commented Oct 29, 2024

I was trying to record screen in macOS but faced the same issue could not find any solution. have to use different approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants