caydey / ffshare

An android app to compress image, video and audio files through ffmpeg before sharing them
GNU General Public License v3.0
615 stars 30 forks source link

Samsung Galaxy Flip 5G Bug #30

Open rapid-gtr opened 1 year ago

rapid-gtr commented 1 year ago

Hello,

I installed your ffshare using f-droid on a Huawei Mate Pad Pro 11, and it worked on videos and photos (I didn't try audio files). So I installed it on a Samsung Galaxy Flip 5G, and it doesn't.

At first it told me that the program had a bug when trying to turn a m4a audio file into an mp3, so I downloaded it from Github again and installed it.

It still didn't work, so I thought I'd try it on a video file, and then it said that the compression was done (with believable compression sizes), but no file! The same with a photo.

I have checked the permissions, and they are OK. I have tried it with uuid and the same name. No luck, but it did seem to work. Just no file.

I have copied the log file, to see if you can see what the problem might be. It doesn't seem to work for audio files on the Huawei either, but photos and videos do. It does a good job of compression I think. I use the slow setting. I use the same settings on both machines.

Kind regards

Command: ffmpeg -y -i Compress_20230120_213629_9470.jpg -preset slow -vf scale=1080:-1,setsar=1 -qscale:v 25 fb987273-616b-46f0-b1fc-2371d9a8c3b1.jpeg Output: ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d) configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/home/taner/Projects/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --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-libx264 --enable-libxvid --enable-libx265 --enable-libvidstab --enable-libilbc --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libtwolame --disable-sdl2 --enable-libvo-amrwbenc --enable-libzimg --disable-openssl --enable-zlib --enable-mediacodec --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 Input #0, image2, from 'saf:2.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 14627 kb/s Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1126x2000 [SAR 1:1 DAR 563:1000], 25 fps, 25 tbr, 25 tbn Codec AVOption preset (Configuration preset) specified for output file #0 (saf:3.jpeg) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native)) Press [q] to stop, [?] for help [swscaler @ 0x75753380a0] [swscaler @ 0x75753880f0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753780e0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753580c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753680d0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753a8110] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753c8130] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753b8120] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x7575398100] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753f8160] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753f8160] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x7575398100] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753b8120] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753c8130] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753a8110] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753680d0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753580c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753780e0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753880f0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753880f0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753780e0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753580c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753680d0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753a8110] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753c8130] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753b8120] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x7575398100] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753f8160] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753f8160] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x7575398100] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753b8120] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753c8130] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753a8110] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753680d0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753580c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753780e0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x75753380a0] [swscaler @ 0x75753880f0] deprecated pixel format used, make sure you did set range correctly Output #0, image2, to 'saf:3.jpeg': Metadata: encoder : Lavf59.27.100 Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown, progressive), 1080x1918 [SAR 1:1 DAR 540:959], q=2-31, 200 kb/s, 25 fps, 25 tbn Metadata: encoder : Lavc59.37.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A frame= 1 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
[image2 @ 0x74652cb1d0] The specified filename 'saf:3.jpeg' does not contain an image sequence pattern or a pattern is invalid. [image2 @ 0x74652cb1d0] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image. frame= 1 fps=0.0 q=25.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.624x
video:35kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown frame= 1 fps=0.0 q=25.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.624x
video:35kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Result: SUCCESS App Version: 1.2.5

Noitarud commented 4 months ago

You may need an app to handle the sharing to save the file locally. Try: "primitive ftpd" or Amaze file manager. Choose "Save as" android function.

If you do have one, you may have selected the SD card - try selecting the device's internal memory as destination.