Difference between revisions of "VLC HowTo/Add a logo"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Reverted edits by Kekelka (Talk); changed back to last version by Dionoea)
(Dynamic logos using RC)
Line 9: Line 9:
 
== Stream ==
 
== Stream ==
 
  vlc --logo-file ''logo.png'' ''video.avi'' --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:std{...}"
 
  vlc --logo-file ''logo.png'' ''video.avi'' --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:std{...}"
 +
 +
Make sure you do not specify --sub-filter logo, and that you specify a vcodec= value in the transcode part.
  
 
== Save the new video locally ==
 
== Save the new video locally ==
 
  vlc --logo-file ''logo.png'' ''video.avi'' --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:std{access=file,dst=''new_video.avi'' }
 
  vlc --logo-file ''logo.png'' ''video.avi'' --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:std{access=file,dst=''new_video.avi'' }
 +
 +
== Dynamically change logo using [[Console | RC]], then send output to stream and local debugging display ==
 +
 +
vlc -I rc --logo-file nonexistent_dummy.png --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:duplicate{dst=display,dst=std{...}}"
 +
 +
# Once the program has started
 +
add ''video.avi''
 +
logo-file ''logo.png''
 +
 +
This requires a <code>--logo-file</code>, but for some reason it won't work if you specify "<code>--sub-filter logo</code>". Nor does it apparently work if the <code>transcode</code> doesn't specify <code>vcodec=</code>.
 +
 +
A non-existent logo-file currently removes any logos from the video, and does not result in an error. Since you must specify one on the command-line, "<code>nonexistent_dummy.png</code>" was used.

Revision as of 14:43, 3 January 2008

This page describes how to add a logo on your video using the logo filter. Other "how to" pages

Idea

This How To just explains how to use the logo filter in order to add a logo on your videos, like a TV.

Local

vlc --sub-filter logo --logo-file logo.png video.avi

Stream

vlc --logo-file logo.png video.avi --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:std{...}"

Make sure you do not specify --sub-filter logo, and that you specify a vcodec= value in the transcode part.

Save the new video locally

vlc --logo-file logo.png video.avi --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:std{access=file,dst=new_video.avi }

Dynamically change logo using RC, then send output to stream and local debugging display

vlc -I rc --logo-file nonexistent_dummy.png --sout "#transcode{vcodec=...,vb=...,sfilter=logo}:duplicate{dst=display,dst=std{...}}"

# Once the program has started
add video.avi
logo-file logo.png

This requires a --logo-file, but for some reason it won't work if you specify "--sub-filter logo". Nor does it apparently work if the transcode doesn't specify vcodec=.

A non-existent logo-file currently removes any logos from the video, and does not result in an error. Since you must specify one on the command-line, "nonexistent_dummy.png" was used.