FFmpeg - Adding watermark on an image












0















I used this command to add a watermark on an image:



ffmpeg -i input.png -i watermark.png -filter_complex overlay=15:15 output.png


But I got this error:



[NULL @ 0x7a1403f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'


I already added a watermark on a video but I don't know how to do that in this case for an image instead of a video.



Could someone help me please?



Edit



This is the full log:



built with gcc 4.9.x (GCC) 20150123 (prerelease)
configuration: --target-os=android --cross-prefix=/home/george/ffmpeg-android/toolchain-android/bin/aarch64-linux-android- --arch=arm64 --cpu=cortex-a57 --enable-runtime-cpudetect --sysroot=/home/george/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-filters --enable-libx264 --enable-zlib --enable-libfreetype --enable-libmp3lame --enable-fontconfig --enable-pthreads --enable-protocol=file --disable-debug --disable-network --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-small --disable-shared --enable-static --enable-ffmpeg --enable-jni --enable-mediacodec --disable-bsfs --disable-encoders --enable-encoder='rawvideo,libx264,mpeg4,bmp,png,aac,mp3,gif,libmp3lame,pcm_s8,pcm_u8' --disable-decoders --enable-decoder='aac,h264,h264_mediacodec,mpeg4,mpeg4_mediacodec,bmp,mp3,png,gif,pcm_s8,pcm_u8' --disable-muxers --enable-muxer='mp3,gif,mp4,rawvideo,ac3,flac,ipod,pcm_u8' --disable-demuxers --enable-demuxer='aac,gif,mp3,image_png_pipe,rawvideo,mov,flac,ac3,sdp,pcm_u8,mpegvideo' --disable-parsers --enable-parser='aac,bmp,h264,mjpeg,png,mpeg4video,mpegvideo,mpegaudio' --disable-hwaccels --enable-hwaccel=h264_mediacodec --enable-gpl --disable-x86asm --disable-doc --pkg-config=/home/george/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/george/ffmpeg-android/build/arm64 --extra-cflags='-I/home/george/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -Wall -Os -O3 -pipe -ffast-math' --extra-ldflags='-L/home/george/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -luuid -lm -lz' --extra-cxxflags=
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, png_pipe, from '/storage/emulated/0/Pictures/Screenshots/Screenshot_20181228-014724.png':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: png, rgb24(pc), 2160x3840, 25 tbr, 25 tbn, 25 tbc

Input #1, png_pipe, from '/storage/emulated/0/stv_text_icon.png':

Duration: N/A, bitrate: N/A

Stream #1:0: Video: png, rgba(pc), 205x53 [SAR 2835:2835 DAR 205:53], 25 tbr, 25 tbn, 25 tbc

[NULL @ 0x76f9c3f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'

/storage/emulated/0/A_Folder/ac/img_wat.png: Invalid argument









share|improve this question




















  • 1





    Clearly, your command and the error you are showing do not belong together. Please show the actual command that you are running, and the full, uncut command line output.

    – slhck
    Dec 28 '18 at 11:01











  • @slhck The command that I used is exactly what I put in the question. I also updated the question. please check it again

    – MSH
    Dec 28 '18 at 11:15











  • Your command says that the output is called output.png, but your log says it's img_wat.png, which means there is a discrepancy. Thanks for sharing the log. In the future, please remember ot always include the real command you're running and the uncut command line output.

    – slhck
    Dec 28 '18 at 12:10
















0















I used this command to add a watermark on an image:



ffmpeg -i input.png -i watermark.png -filter_complex overlay=15:15 output.png


But I got this error:



[NULL @ 0x7a1403f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'


I already added a watermark on a video but I don't know how to do that in this case for an image instead of a video.



Could someone help me please?



Edit



This is the full log:



built with gcc 4.9.x (GCC) 20150123 (prerelease)
configuration: --target-os=android --cross-prefix=/home/george/ffmpeg-android/toolchain-android/bin/aarch64-linux-android- --arch=arm64 --cpu=cortex-a57 --enable-runtime-cpudetect --sysroot=/home/george/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-filters --enable-libx264 --enable-zlib --enable-libfreetype --enable-libmp3lame --enable-fontconfig --enable-pthreads --enable-protocol=file --disable-debug --disable-network --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-small --disable-shared --enable-static --enable-ffmpeg --enable-jni --enable-mediacodec --disable-bsfs --disable-encoders --enable-encoder='rawvideo,libx264,mpeg4,bmp,png,aac,mp3,gif,libmp3lame,pcm_s8,pcm_u8' --disable-decoders --enable-decoder='aac,h264,h264_mediacodec,mpeg4,mpeg4_mediacodec,bmp,mp3,png,gif,pcm_s8,pcm_u8' --disable-muxers --enable-muxer='mp3,gif,mp4,rawvideo,ac3,flac,ipod,pcm_u8' --disable-demuxers --enable-demuxer='aac,gif,mp3,image_png_pipe,rawvideo,mov,flac,ac3,sdp,pcm_u8,mpegvideo' --disable-parsers --enable-parser='aac,bmp,h264,mjpeg,png,mpeg4video,mpegvideo,mpegaudio' --disable-hwaccels --enable-hwaccel=h264_mediacodec --enable-gpl --disable-x86asm --disable-doc --pkg-config=/home/george/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/george/ffmpeg-android/build/arm64 --extra-cflags='-I/home/george/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -Wall -Os -O3 -pipe -ffast-math' --extra-ldflags='-L/home/george/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -luuid -lm -lz' --extra-cxxflags=
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, png_pipe, from '/storage/emulated/0/Pictures/Screenshots/Screenshot_20181228-014724.png':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: png, rgb24(pc), 2160x3840, 25 tbr, 25 tbn, 25 tbc

Input #1, png_pipe, from '/storage/emulated/0/stv_text_icon.png':

Duration: N/A, bitrate: N/A

Stream #1:0: Video: png, rgba(pc), 205x53 [SAR 2835:2835 DAR 205:53], 25 tbr, 25 tbn, 25 tbc

[NULL @ 0x76f9c3f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'

/storage/emulated/0/A_Folder/ac/img_wat.png: Invalid argument









share|improve this question




















  • 1





    Clearly, your command and the error you are showing do not belong together. Please show the actual command that you are running, and the full, uncut command line output.

    – slhck
    Dec 28 '18 at 11:01











  • @slhck The command that I used is exactly what I put in the question. I also updated the question. please check it again

    – MSH
    Dec 28 '18 at 11:15











  • Your command says that the output is called output.png, but your log says it's img_wat.png, which means there is a discrepancy. Thanks for sharing the log. In the future, please remember ot always include the real command you're running and the uncut command line output.

    – slhck
    Dec 28 '18 at 12:10














0












0








0








I used this command to add a watermark on an image:



ffmpeg -i input.png -i watermark.png -filter_complex overlay=15:15 output.png


But I got this error:



[NULL @ 0x7a1403f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'


I already added a watermark on a video but I don't know how to do that in this case for an image instead of a video.



Could someone help me please?



Edit



This is the full log:



built with gcc 4.9.x (GCC) 20150123 (prerelease)
configuration: --target-os=android --cross-prefix=/home/george/ffmpeg-android/toolchain-android/bin/aarch64-linux-android- --arch=arm64 --cpu=cortex-a57 --enable-runtime-cpudetect --sysroot=/home/george/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-filters --enable-libx264 --enable-zlib --enable-libfreetype --enable-libmp3lame --enable-fontconfig --enable-pthreads --enable-protocol=file --disable-debug --disable-network --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-small --disable-shared --enable-static --enable-ffmpeg --enable-jni --enable-mediacodec --disable-bsfs --disable-encoders --enable-encoder='rawvideo,libx264,mpeg4,bmp,png,aac,mp3,gif,libmp3lame,pcm_s8,pcm_u8' --disable-decoders --enable-decoder='aac,h264,h264_mediacodec,mpeg4,mpeg4_mediacodec,bmp,mp3,png,gif,pcm_s8,pcm_u8' --disable-muxers --enable-muxer='mp3,gif,mp4,rawvideo,ac3,flac,ipod,pcm_u8' --disable-demuxers --enable-demuxer='aac,gif,mp3,image_png_pipe,rawvideo,mov,flac,ac3,sdp,pcm_u8,mpegvideo' --disable-parsers --enable-parser='aac,bmp,h264,mjpeg,png,mpeg4video,mpegvideo,mpegaudio' --disable-hwaccels --enable-hwaccel=h264_mediacodec --enable-gpl --disable-x86asm --disable-doc --pkg-config=/home/george/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/george/ffmpeg-android/build/arm64 --extra-cflags='-I/home/george/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -Wall -Os -O3 -pipe -ffast-math' --extra-ldflags='-L/home/george/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -luuid -lm -lz' --extra-cxxflags=
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, png_pipe, from '/storage/emulated/0/Pictures/Screenshots/Screenshot_20181228-014724.png':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: png, rgb24(pc), 2160x3840, 25 tbr, 25 tbn, 25 tbc

Input #1, png_pipe, from '/storage/emulated/0/stv_text_icon.png':

Duration: N/A, bitrate: N/A

Stream #1:0: Video: png, rgba(pc), 205x53 [SAR 2835:2835 DAR 205:53], 25 tbr, 25 tbn, 25 tbc

[NULL @ 0x76f9c3f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'

/storage/emulated/0/A_Folder/ac/img_wat.png: Invalid argument









share|improve this question
















I used this command to add a watermark on an image:



ffmpeg -i input.png -i watermark.png -filter_complex overlay=15:15 output.png


But I got this error:



[NULL @ 0x7a1403f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'


I already added a watermark on a video but I don't know how to do that in this case for an image instead of a video.



Could someone help me please?



Edit



This is the full log:



built with gcc 4.9.x (GCC) 20150123 (prerelease)
configuration: --target-os=android --cross-prefix=/home/george/ffmpeg-android/toolchain-android/bin/aarch64-linux-android- --arch=arm64 --cpu=cortex-a57 --enable-runtime-cpudetect --sysroot=/home/george/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-filters --enable-libx264 --enable-zlib --enable-libfreetype --enable-libmp3lame --enable-fontconfig --enable-pthreads --enable-protocol=file --disable-debug --disable-network --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-small --disable-shared --enable-static --enable-ffmpeg --enable-jni --enable-mediacodec --disable-bsfs --disable-encoders --enable-encoder='rawvideo,libx264,mpeg4,bmp,png,aac,mp3,gif,libmp3lame,pcm_s8,pcm_u8' --disable-decoders --enable-decoder='aac,h264,h264_mediacodec,mpeg4,mpeg4_mediacodec,bmp,mp3,png,gif,pcm_s8,pcm_u8' --disable-muxers --enable-muxer='mp3,gif,mp4,rawvideo,ac3,flac,ipod,pcm_u8' --disable-demuxers --enable-demuxer='aac,gif,mp3,image_png_pipe,rawvideo,mov,flac,ac3,sdp,pcm_u8,mpegvideo' --disable-parsers --enable-parser='aac,bmp,h264,mjpeg,png,mpeg4video,mpegvideo,mpegaudio' --disable-hwaccels --enable-hwaccel=h264_mediacodec --enable-gpl --disable-x86asm --disable-doc --pkg-config=/home/george/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/george/ffmpeg-android/build/arm64 --extra-cflags='-I/home/george/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -Wall -Os -O3 -pipe -ffast-math' --extra-ldflags='-L/home/george/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -luuid -lm -lz' --extra-cxxflags=
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, png_pipe, from '/storage/emulated/0/Pictures/Screenshots/Screenshot_20181228-014724.png':

Duration: N/A, bitrate: N/A

Stream #0:0: Video: png, rgb24(pc), 2160x3840, 25 tbr, 25 tbn, 25 tbc

Input #1, png_pipe, from '/storage/emulated/0/stv_text_icon.png':

Duration: N/A, bitrate: N/A

Stream #1:0: Video: png, rgba(pc), 205x53 [SAR 2835:2835 DAR 205:53], 25 tbr, 25 tbn, 25 tbc

[NULL @ 0x76f9c3f800] Unable to find a suitable output format for '/storage/emulated/0/A_Folder/ac/img_wat.png'

/storage/emulated/0/A_Folder/ac/img_wat.png: Invalid argument






ffmpeg images android png watermark






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 28 '18 at 11:29









Gyan

14.8k21845




14.8k21845










asked Dec 28 '18 at 10:53









MSHMSH

33




33








  • 1





    Clearly, your command and the error you are showing do not belong together. Please show the actual command that you are running, and the full, uncut command line output.

    – slhck
    Dec 28 '18 at 11:01











  • @slhck The command that I used is exactly what I put in the question. I also updated the question. please check it again

    – MSH
    Dec 28 '18 at 11:15











  • Your command says that the output is called output.png, but your log says it's img_wat.png, which means there is a discrepancy. Thanks for sharing the log. In the future, please remember ot always include the real command you're running and the uncut command line output.

    – slhck
    Dec 28 '18 at 12:10














  • 1





    Clearly, your command and the error you are showing do not belong together. Please show the actual command that you are running, and the full, uncut command line output.

    – slhck
    Dec 28 '18 at 11:01











  • @slhck The command that I used is exactly what I put in the question. I also updated the question. please check it again

    – MSH
    Dec 28 '18 at 11:15











  • Your command says that the output is called output.png, but your log says it's img_wat.png, which means there is a discrepancy. Thanks for sharing the log. In the future, please remember ot always include the real command you're running and the uncut command line output.

    – slhck
    Dec 28 '18 at 12:10








1




1





Clearly, your command and the error you are showing do not belong together. Please show the actual command that you are running, and the full, uncut command line output.

– slhck
Dec 28 '18 at 11:01





Clearly, your command and the error you are showing do not belong together. Please show the actual command that you are running, and the full, uncut command line output.

– slhck
Dec 28 '18 at 11:01













@slhck The command that I used is exactly what I put in the question. I also updated the question. please check it again

– MSH
Dec 28 '18 at 11:15





@slhck The command that I used is exactly what I put in the question. I also updated the question. please check it again

– MSH
Dec 28 '18 at 11:15













Your command says that the output is called output.png, but your log says it's img_wat.png, which means there is a discrepancy. Thanks for sharing the log. In the future, please remember ot always include the real command you're running and the uncut command line output.

– slhck
Dec 28 '18 at 12:10





Your command says that the output is called output.png, but your log says it's img_wat.png, which means there is a discrepancy. Thanks for sharing the log. In the future, please remember ot always include the real command you're running and the uncut command line output.

– slhck
Dec 28 '18 at 12:10










1 Answer
1






active

oldest

votes


















1














Your ffmpeg has not been compiled with support for the image sequence muxer. You'll need to enable the image sequence muxer when running configure:



--enable-muxer='mp3,gif,image2,mp4,rawvideo,ac3,flac,ipod,pcm_u8' 





share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388393%2fffmpeg-adding-watermark-on-an-image%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Your ffmpeg has not been compiled with support for the image sequence muxer. You'll need to enable the image sequence muxer when running configure:



    --enable-muxer='mp3,gif,image2,mp4,rawvideo,ac3,flac,ipod,pcm_u8' 





    share|improve this answer






























      1














      Your ffmpeg has not been compiled with support for the image sequence muxer. You'll need to enable the image sequence muxer when running configure:



      --enable-muxer='mp3,gif,image2,mp4,rawvideo,ac3,flac,ipod,pcm_u8' 





      share|improve this answer




























        1












        1








        1







        Your ffmpeg has not been compiled with support for the image sequence muxer. You'll need to enable the image sequence muxer when running configure:



        --enable-muxer='mp3,gif,image2,mp4,rawvideo,ac3,flac,ipod,pcm_u8' 





        share|improve this answer















        Your ffmpeg has not been compiled with support for the image sequence muxer. You'll need to enable the image sequence muxer when running configure:



        --enable-muxer='mp3,gif,image2,mp4,rawvideo,ac3,flac,ipod,pcm_u8' 






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 28 '18 at 12:11









        slhck

        160k47444466




        160k47444466










        answered Dec 28 '18 at 11:26









        GyanGyan

        14.8k21845




        14.8k21845






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1388393%2fffmpeg-adding-watermark-on-an-image%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            RAC Tourist Trophy