Q: "removelogo" command returns pink image Hi I am using "removelogo" command to remove object from image by using mask. But it returning pink image. Below is the command.
"String[] cmd = {"-y", "-i", imagePathForffmpeg, "-vf", "removelogo="+"/storage/emulated/0/Download/mask-5.png",output};"
mask-5.png is mask and  imagePathForffmpeg original image.

Below is ffmpeg output.
FFmpegSession{sessionId=1, createTime=Thu Jul 14 15:55:41 GMT+05:30 2022, startTime=Thu Jul 14 15:55:41 GMT+05:30 2022, endTime=Thu Jul 14 15:55:43 GMT+05:30 2022, arguments=-y -i /storage/emulated/0/watermarktemp/Image-4443.jpg -vf removelogo=/storage/emulated/0/Download/mask-5.png /storage/emulated/0/ImageWaterMarkremover/1657794337.png, logs=ffmpeg version v4.4-dev-3015-gc0d0b1c4f6 Copyright (c) 2000-2021 the FFmpeg developers
built with Android (6875598, based on r399163b) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
configuration: --cross-prefix=i686-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-x86-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/dark/projects/ffmpeg-kit/prebuilt/android-x86-lts/cpu-features/lib -lndk_compat' --target-os=android --disable-neon --disable-asm --disable-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 --disable-sdl2 --enable-libx264 --enable-gpl --enable-libxvid --enable-gpl --enable-libx265 --enable-gpl --enable-libvidstab --enable-gpl --enable-zlib --enable-mediacodec
libavutil 56. 65.100 / 56. 65.100
libavcodec 58.123.100 / 58.123.100
libavformat 58. 67.100 / 58. 67.100
libavdevice 58. 12.100 / 58. 12.100
libavfilter 7.106.100 / 7.106.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
Input #0, image2, from '/storage/emulated/0/watermarktemp/Image-4443.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 7334 kb/s
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 250x433 [SAR 1:1 DAR 250:433], 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> png (native))
Press [q] to stop, [?] for help
[swscaler @ 0xbc626000] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/storage/emulated/0/ImageWaterMarkremover/1657794337.png':
Metadata:
encoder : Lavf58.67.100
Stream #0:0: Video: png, rgb24(pc, bt470bg/unknown/unknown, progressive), 250x433 [SAR 1:1 DAR 250:433], q=2-31, 200 kb/s, 25 fps, 25 tbn
Metadata:
encoder : Lavc58.123.100 png
frame= 1 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
frame= 1 fps=0.5 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
frame= 1 fps=0.5 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed=0.019x
video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
, state=COMPLETED, returnCode=0, failStackTrace='null'}

