recording from IP camera and save the video with logo

About encoding, codec settings, muxers and filter usage
jossuan1983
New Cone
New Cone
Posts: 7
Joined: 13 Sep 2013 19:53

recording from IP camera and save the video with logo

Postby jossuan1983 » 02 Oct 2013 23:11

When the video is saved it does not have a logo. I am working with a libvlc wrapper. These are my instructions:

initialization arguments:
{
"-I",
"--logo-file=" + PATH + "watermark.png"
}

media options:
sout=#transcode{acodec=mp3,ab=128,channels=1,audio-sync,vcodec=mp1v,vb=1024,sfilter=logo} :std{access=file,mux=MP4,dst=" + PATH + name + ".mp4}

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: recording from IP camera and save the video with logo

Postby Jean-Baptiste Kempf » 07 Oct 2013 18:40

Maybe you need to load the logo filter, no?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

rohuezo
Blank Cone
Blank Cone
Posts: 29
Joined: 18 Jul 2013 08:50
VLC version: 2.0.8 Win/2.2.2 Mac
Operating System: Windows / Mac OS X
Location: Fürth, Germany

Re: recording from IP camera and save the video with logo

Postby rohuezo » 31 Oct 2013 06:14

Hello jossuan1983 and Jean-Baptiste,

I'm having the same issue. When I use the command line to record my screen to a file, then the logo appears. When I use (almost) the same configuration options using libvlc, the logo does not appear.
Jean-Baptiste, what do you mean with "need to load the logo filter"? I thought:

Code: Select all

sfilter=logo
on the transcode section did that...

Best regards,
rohuezo
--
Roberto Huezo, M.A.
Computational Linguist
Software Developer

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: recording from IP camera and save the video with logo

Postby Jean-Baptiste Kempf » 05 Nov 2013 20:49

Look at the logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

rohuezo
Blank Cone
Blank Cone
Posts: 29
Joined: 18 Jul 2013 08:50
VLC version: 2.0.8 Win/2.2.2 Mac
Operating System: Windows / Mac OS X
Location: Fürth, Germany

Re: recording from IP camera and save the video with logo

Postby rohuezo » 11 Dec 2013 09:18

Ok, I figured out how to add the logo and enabling it. I had to import these 2 methods and defined the libvlc_video_logo_option_t enum. I removed the initialization options from the media player, then it worked like a charm:

Code: Select all

//Enable LibVlc.libvlc_video_set_logo_int(Handle, libvlc_video_logo_option_t.libvlc_logo_enable, 1); // if 0 turn off else turn on //File LibVlc.libvlc_video_set_logo_string(Handle, libvlc_video_logo_option_t.libvlc_logo_file, logo.ToUtf8()); // File:///c:/temp/logo.png //Opacity LibVlc.libvlc_video_set_logo_int(Handle, libvlc_video_logo_option_t.libvlc_logo_opacity, 128); // half transparent //Position LibVlc.libvlc_video_set_logo_int(Handle, libvlc_video_logo_option_t.libvlc_logo_position, 10); // bottom right corner
Make sure to leave the

Code: Select all

sfilter=logo
setting in the

Code: Select all

#transcode
section.
--
Roberto Huezo, M.A.
Computational Linguist
Software Developer


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 0 guests