Hinzufügen von Wasserzeichen / Logos zu Videos im Mencoder

2412
quack quixote

Wie füge ich einem Video mit einem Mencoder ein Wasserzeichen oder ein Logo hinzu?

3

2 Antworten auf die Frage

2
Shevek

Sie benötigen die bmovlOption (Bitmap-Überlagerung)

 bmovl=hidden:opaque:fifo The bitmap overlay filter reads bitmaps from a FIFO and displays them on top of the movie, allowing some transformations on the image. Also see TOOLS/bmovl-test.c for a small bmovl test pro†gram. <hidden> Set the default value of the ’hidden’ flag (0=visible, 1=hidden). <opaque> Set the default value of the ’opaque’ flag (0=transpar†ent, 1=opaque). <fifo> path/filename for the FIFO (named pipe connecting ’mplayer -vf bmovl’ to the controlling application)  FIFO commands are: RGBA32 width height xpos ypos alpha clear followed by width*height*4 Bytes of raw RGBA32 data. ABGR32 width height xpos ypos alpha clear followed by width*height*4 Bytes of raw ABGR32 data. RGB24 width height xpos ypos alpha clear followed by width*height*3 Bytes of raw RGB24 data. BGR24 width height xpos ypos alpha clear followed by width*height*3 Bytes of raw BGR24 data. ALPHA width height xpos ypos alpha Change alpha transparency of the specified area. CLEAR width height xpos ypos Clear area. OPAQUE Disable all alpha transparency. Send "ALPHA 0 0 0 0 0" to enable it again. HIDE Hide bitmap. SHOW Show bitmap.  Arguments are: <width>, <height> image/area size <xpos>, <ypos> Start blitting at position x/y. <alpha> Set alpha difference. If you set this to -255 you can then send a sequence of ALPHA-commands to set the area to -225, -200, -175 etc for a nice fade-in-effect! ;) 0: same as original 255: Make everything opaque. -255: Make everything transparent.  <clear> Clear the framebuffer before blitting. 0: The image will just be blitted on top of the old one, so you do not need to send 1.8MB of RGBA32 data every time a small part of the screen is updated. 1: clear 
-2
Areeb Soo Yasir

Ich kenne das OP wie auf Mencoder, aber es ist ziemlich kompliziert und funktioniert nicht mit neueren Linuxversionen, die ich ausprobiert habe. Die Informationen, Befehle und Quellen sind das, worauf ich mich nach der Fehlersuche und dem Fehlschlagen von bmovl auf dem Mencoder umgestellt habe. Ich erhalte die Fehlermeldung " mencoder bmovl error vf_bmovl: Unbekannter Befehl: ''. Ignorieren."

Was ich empfehle, ist die Verwendung von ffmpeg:

ffmpeg -i yourvideo.mp4 -i yourwatermark.jpg -filter_complex "overlay=10:10" outputfile.mp4 

Wenn Sie Linux Mint verwenden, fehlt ffmpeg in den Standard-Repos. Daher müssen Sie diese Informationen zum Installieren eines PPA eines Drittanbieters lesen, um es in Gang zu setzen.