Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Trying to Watermark an Image using ffmpeg

Trying to Watermark an Image using ffmpeg

Scheduled Pinned Locked Moved C#
tutorialhelpquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harsimranb
    wrote on last edited by
    #1

    I googled and binged and asked, but could not a find a perfect example on how to do this. So, I gave it all I had. I am trying to watermark a FLV video. I came across a forum that said you can use ffmpeg to do it. So, I looked around and got an idea of what I was going to do to get this to work. The problem is that the below code does not work. Meaning that it does not watermark an image. Process process = new Process(); process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardInput = true; process.StartInfo.RedirectStandardError = true; process.StartInfo.CreateNoWindow = true; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.FileName = "C:\ffmpeg\ffmpeg.exe"; process.StartInfo.Arguments = "ffmpeg -y -i ‘C:\video.flv’ -vhook ‘C:\ffmpeg\ffmpeg.exe' -f C:\Image.gif"; process.Start(); Thanks, Harsimran Singh

    1. The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. - Ted Nelson 2) Why is it drug addicts and computer afficionados are both called users? - Clifford Stoll 3) The real danger is not that computers will begin to think like men, but that men will begin to think like computers. - Sydney J. Harris (Computer code: 00001111 - translation: Hello! :P ) REMEMBER: "Computers are made for us, we are not made for th
    A 1 Reply Last reply
    0
    • H harsimranb

      I googled and binged and asked, but could not a find a perfect example on how to do this. So, I gave it all I had. I am trying to watermark a FLV video. I came across a forum that said you can use ffmpeg to do it. So, I looked around and got an idea of what I was going to do to get this to work. The problem is that the below code does not work. Meaning that it does not watermark an image. Process process = new Process(); process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardInput = true; process.StartInfo.RedirectStandardError = true; process.StartInfo.CreateNoWindow = true; process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.FileName = "C:\ffmpeg\ffmpeg.exe"; process.StartInfo.Arguments = "ffmpeg -y -i ‘C:\video.flv’ -vhook ‘C:\ffmpeg\ffmpeg.exe' -f C:\Image.gif"; process.Start(); Thanks, Harsimran Singh

      1. The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. - Ted Nelson 2) Why is it drug addicts and computer afficionados are both called users? - Clifford Stoll 3) The real danger is not that computers will begin to think like men, but that men will begin to think like computers. - Sydney J. Harris (Computer code: 00001111 - translation: Hello! :P ) REMEMBER: "Computers are made for us, we are not made for th
      A Offline
      A Offline
      Alan N
      wrote on last edited by
      #2

      Hi, That look's to be a very strange set of arguments. Does it work from the command prompt, i.e. this command line C:\ffmpeg\ffmpeg.exe ffmpeg -y -i ‘C:\video.flv’ -vhook ‘C:\ffmpeg\ffmpeg.exe' -f C:\Image.gif Alan.

      J 1 Reply Last reply
      0
      • A Alan N

        Hi, That look's to be a very strange set of arguments. Does it work from the command prompt, i.e. this command line C:\ffmpeg\ffmpeg.exe ffmpeg -y -i ‘C:\video.flv’ -vhook ‘C:\ffmpeg\ffmpeg.exe' -f C:\Image.gif Alan.

        J Offline
        J Offline
        jymitra
        wrote on last edited by
        #3

        hello i have tried but it gives this output C:\Documents and Settings\jay>D:\Data\Project\Project\Builds\ffmpeg-r25512\bin\f fmpeg.exe ffmpeg -y -i 'D:\Data\Project\Project\Builds\ffmpeg-r25512\bin\Demo.mp 4' -vhook D:\Data\Project\Project\Builds\ffmpeg-r25512\bin\ffmpeg.exe'-f D:\Data \Project\Project\Builds\ffmpeg-r25512\bin\tttt.jpg FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers built on Oct 18 2010 04:06:45 with gcc 4.4.2 configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthread s --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame -- enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable- libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect --enable -libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --ext ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisyn th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign -hack libavutil 50.32. 3 / 50.32. 3 libavcore 0. 9. 1 / 0. 9. 1 libavcodec 52.92. 0 / 52.92. 0 libavformat 52.83. 0 / 52.83. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.52. 0 / 1.52. 0 libswscale 0.12. 0 / 0.12. 0 Unable to find a suitable output format for 'ffmpeg' so what is it ? please help me

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups