[vlc] [Interface/script/vlc.py] How to best change dynamically a logo WHILE playing

XYZFounder XYZFounder at aol.com
Sat Oct 12 13:08:30 CEST 2013



Hi,

when I use @logo logo-file "/tmp/logo.png" it gives out an error saying
that it is not safe and that it could not find it.... (it is there.)

I use latest VLC in ubuntu 2.0.8 twoflower


And when I try via vlc.py the logo does NOT change while playing?!



import vlc
import time


i = vlc.Instance("--sub-filter logo")

player = vlc.libvlc_media_player_new(i)
m = i.media_new("screen://", ":screen-fps=24", ":sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100, sfilter=logo}:file{dst=/tmp/screencapture.mp4}", ":sout-keep")
player.set_media(m)

player.video_set_logo_int(vlc.VideoLogoOption.enable, 1)
datei = "/tmp/R-Logo.png"
player.video_set_logo_string(vlc.VideoLogoOption.file, "/tmp/TVLogo2.png")
player.video_set_logo_string(vlc.VideoLogoOption.logo_x, "10")
player.video_set_logo_string(vlc.VideoLogoOption.logo_y, "10")
player.video_set_logo_int(vlc.VideoLogoOption.opacity, 150)
player.video_set_logo_int(vlc.VideoLogoOption.position, 3)
player.video_set_logo_int(vlc.VideoLogoOption.repeat, 1)


player.play()
time.sleep(5)
player.pause()
player.video_set_logo_string(vlc.VideoLogoOption.file, "/tmp/R-Logo.png")
player.video_set_logo_int(vlc.VideoLogoOption.opacity, 50)
player.video_set_logo_int(vlc.VideoLogoOption.enable, 1)
print "done with changes"
player.play()

time.sleep(5)
player.stop()
exit()



THX 4 ur help
NetBean5000



More information about the vlc mailing list