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

Getting operation not permitted even with FFmpegKitConfig.getSafParameterForRead() (ANDROID) #96

Closed
pro-softs opened this issue Jul 9, 2021 · 2 comments
Labels
android Affect Android platform library Affects the library no-issue-activity question Further information is requested saf Issue about storage access framework v4.4 Affects v4.4 release

Comments

@pro-softs
Copy link

Description

I am testing on Android version 11 with the LTS version. I am trying to convert mp3 file to wav in by picking the input file from file manger as an Uri. I am using the function FFmpegKitConfig.getSafParameterForRead() to convert the uri into a path for processing but getting saf:123/testing_audio.mp3: Operation not permitted. Is there something I am missing or is it not supported for Android 11 ? Will be nice to get some help on the issue.

Logs

2021-07-09 09:02:13.921 E/ffmpe: ffmpeg version v4.4-dev-3015-gc0d0b1c4f6
2021-07-09 09:02:13.921 E/ffmpe: Copyright (c) 2000-2021 the FFmpeg developers
2021-07-09 09:02:13.921 E/ffmpe: built with Android (6875598, based on r399163b) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
2021-07-09 09:02:13.921 n: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/dark/projects/ffmpeg-kit/prebuilt/android-arm64-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --cc=aarch64-linux-android21-clang --cxx=aarch64-linux-android21-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/storage/dark/projects/ffmpeg-kit/prebuilt/android-arm64-lts/cpu-features/lib -lndk_compat' --target-os=android --enable-neon --enable-asm --enable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --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-videotoolbox --disable-audiotoolbox --disable-appkit --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gmp --enable-gnutls --enable-libmp3lame --enable-libass --enable-iconv --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxml2 --enable-libopencore-amrnb --enable-libshine --enable-libspeex --enable-libdav1d --enable-libkvazaar --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --enable-libvo-amrwbenc --enable-zlib --enable-mediacodec
2021-07-09 09:02:13.921 E/ffmpe: libavutil 56. 65.100 / 56. 65.100
2021-07-09 09:02:13.921 E/ffmpe: libavcodec 58.123.100 / 58.123.100
2021-07-09 09:02:13.921 E/ffmpe: libavformat 58. 67.100 / 58. 67.100
2021-07-09 09:02:13.921 E/ffmpe: libavdevice 58. 12.100 / 58. 12.100
2021-07-09 09:02:13.921 E/ffmpe: libavfilter 7.106.100 / 7.106.100
2021-07-09 09:02:13.921 E/ffmpe: libswscale 5. 8.100 / 5. 8.100
2021-07-09 09:02:13.921 E/ffmpe: libswresample 3. 8.100 / 3. 8.100
2021-07-09 09:02:13.921 E/ffmpe: saf:123/testing_audio.mp3: Operation not permitted

Environment

  • Platform: [Android]
  • Version (if applicable) [ v4.4LTS]
  • Android Studio version [ 4.1.3]
  • Android NDK version [22.1.7171670]
@tanersener tanersener added android Affect Android platform library Affects the library question Further information is requested saf Issue about storage access framework v4.4 Affects v4.4 release labels Jul 9, 2021
@tanersener
Copy link
Collaborator

We have an issue about SAF which was first reported in #39. But your issue is not the same. It seems like it is a permission error.

I suggest running your command in one of the ffmpeg-kit test applications.

@github-actions
Copy link

github-actions bot commented Sep 8, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Affect Android platform library Affects the library no-issue-activity question Further information is requested saf Issue about storage access framework v4.4 Affects v4.4 release
Projects
None yet
Development

No branches or pull requests

2 participants