Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>The command:</strong></p> <pre><code>ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.flv </code></pre> <p>produces the video with the image "watermarklogo.png" in the top left hand corner. Calling this command from another program should be simple enough.</p> <p><strong>Breaking this down bit by bit to understand it:</strong></p> <p><code>ffmpeg</code> is the program you'll be using to add the watermark.</p> <p><code>-i</code> is used to specify the input files.</p> <p><code>inputvideo.avi</code> is your input file specified by <code>-i</code>.</p> <p><code>-vf</code> is used to specify the video filter. In this case, this is everything in the quotes.</p> <p><code>movie=watermarklogo.png</code> will load the file you want to use as the watermark. Here we load the file as a video source (by using <code>movie</code>) regardless of whether or not the file is an video. In this case it is an image.</p> <p><code>[watermark]</code> labels the file you just loaded. This label will be used in the rest of the code.</p> <p><code>[in]</code> and <code>[out]</code> refer to the input stream and the output stream of the video.</p> <p><code>overlay</code> is used right after the <code>[watermark]</code> label so that it refers to it. In this simple case we place the <code>overlay</code> at <code>10:10</code>. This means the watermark will be offset by 10 pixels from the top and from the left. If you wanted bottom right you would use <code>overlay=main_w-overlay_w-10:main_h-overlay_h-10</code> where <code>main_w</code> is the input stream's width, <code>overlay_h</code> is the height of the overlay file, and so on.</p> <p>Lastly, <code>outputvideo.flv</code> is clearly the file you wish to save the results to.</p> <p><strong>Additional information:</strong></p> <p>I found this information through <a href="http://www.idude.net/index.php/how-to-watermark-a-video-using-ffmpeg">the site Dmitry had mentioned</a> in the comments. Alex had mentioned that this page might be too complex for someone who's new to such things. However, I've never done anything like this and within just a couple minutes I had the results I believe are being sought.</p> <p>Note: I had a moment of trouble when I was getting the error:</p> <pre><code>error while opening encoder for output stream #0.1 </code></pre> <p>If you have the same problem you likely need to manually set the sampling frequency using the -ar parameter (e.g. -ar 22050).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload