Page 1 of 1

recording from IP camera and save the video with logo

Posted: 02 Oct 2013 23:11
by jossuan1983
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}

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

Posted: 07 Oct 2013 18:40
by Jean-Baptiste Kempf
Maybe you need to load the logo filter, no?

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

Posted: 31 Oct 2013 06:14
by rohuezo
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

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

Posted: 05 Nov 2013 20:49
by Jean-Baptiste Kempf
Look at the logs.

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

Posted: 11 Dec 2013 09:18
by rohuezo
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.