Trying to Watermark an Image using ffmpeg
-
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- 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
-
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- 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
-
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.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