Add logo into videostream

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
sporadickit
New Cone
New Cone
Posts: 5
Joined: 20 Apr 2013 10:26

Add logo into videostream

Postby sporadickit » 21 Apr 2013 16:54

HI all,

I need to add a logo into a videostream that is outputting to an mp4 file.

I can get the logo to display locally on my screen but I just can't get it to actually burn the logo onto the video file thats being output. Here is the code I am using via a batch script.

Can someone advise if its possible to do this (via command line ideally).

Code: Select all

set SOURCE="http://192.168.0.1:1025/videostream.asf?user=birdop&pwd=batfink&resolution=8&rate=0" set DESTINATION='C:\\Users\\Administrator\\Desktop\FTP\video.mp4' "C:\Program Files\VideoLAN\VLC\vlc.exe" %SOURCE% --sout="#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100,soverlay,sfilter=marq}:duplicate{dst=file{dst=%DESTINATION%},dst=display}" --run-time 300 --stop-time=300 vlc://quit

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Add logo into videostream

Postby mederi » 21 Apr 2013 17:19

If logo, then "sfilter=logo".
If marquee, then "sfilter=marq".

sporadickit
New Cone
New Cone
Posts: 5
Joined: 20 Apr 2013 10:26

Re: Add logo into videostream

Postby sporadickit » 21 Apr 2013 18:21

Thats the problem - I need marquee and logo at the same time on the same video.

Using this code give me the marquee:

Code: Select all

set SOURCE="http://192.168.0.1:1025/videostream.asf?user=birdop&pwd=batfink&resolution=8&rate=0" set DESTINATION='C:\video.mp4' "C:\Program Files\VideoLAN\VLC\vlc.exe" %SOURCE% --sout="#transcode {vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100,soverlay,sfilter=marq}:duplicate{dst=file{dst=%DESTINATION%},dst=display}"
and using this code gives me the logo:

Code: Select all

set SOURCE="http://192.168.0.1:1025/videostream.asf?user=birdop&pwd=batfink&resolution=8&rate=0" set DESTINATION='C:\video.mp4' "C:\Program Files\VideoLAN\VLC\vlc.exe" %SOURCE% --sout="#transcode {vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100,soverlay,{sfilter=logo{file='C:\logo.bmp', position=10,transparency=150}}:duplicate{dst=file{dst=%DESTINATION%},dst=display}"
I just cant find a way to merge them.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Add logo into videostream

Postby mederi » 21 Apr 2013 18:25

O.K. Then "sfilter=marq:logo" works?

sporadickit
New Cone
New Cone
Posts: 5
Joined: 20 Apr 2013 10:26

Re: Add logo into videostream

Postby sporadickit » 21 Apr 2013 18:30

Awesome yes thats working now... Thanks!

One last question, what number should I put in position to put the logo in the top right?

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Add logo into videostream

Postby mederi » 21 Apr 2013 18:40

Code: Select all

Logo sub source Use a local picture as logo on the video --logo-file=<string> Logo filenames Full path of the image files to use. Format is <image>[,<delay in ms>[,<alpha>]][;<image>[,<delay>[,<alpha>]]][;...]. If you only have one file, simply enter its filename. --logo-x=<integer [-2147483648 .. 2147483647]> X coordinate X coordinate of the logo. You can move the logo by left-clicking it. --logo-y=<integer [-2147483648 .. 2147483647]> Y coordinate Y coordinate of the logo. You can move the logo by left-clicking it. --logo-delay=<integer [-2147483648 .. 2147483647]> Logo individual image time in ms Individual image display time of 0 - 60000 ms. --logo-repeat=<integer [-2147483648 .. 2147483647]> Logo animation # of loops Number of loops for the logo animation.-1 = continuous, 0 = disabled --logo-opacity=<integer [0 .. 255]> Opacity of the logo Logo opacity value (from 0 for full transparency to 255 for full opacity). --logo-position={0 (Centre), 1 (Left), 2 (Right), 4 (Top), 8 (Bottom), 5 (Top-Left), 6 (Top-Right), 9 (Bottom-Left), 10 (Bottom-Right)} Logo position Enforce the logo position on the video (0=center, 1=left, 2=right, 4=top, 8=bottom, you can also use combinations of these values, eg 6 = top-right).
position=6


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: MSN [Bot] and 63 guests