[vlc] VLC svg question

Martin Forget mforget at mtotelecom.com
Tue Nov 28 21:32:38 CET 2006


Hello everyone,
i am trying to display svg text onm top of the video in vlc.

i have compiled with the --enable-svg  with no apparent problems
i have verified the config.log and there does not seem to be any  
error about svg.

the /usr/local/lib/vlc/misc/libsvg_plugin.so
and
the /usr/local/lib/vlc/misc/libsvg_plugin.la
are present after make install.

i have tried from the command line:
vlc -vvv {mrl} \
--marq "TEST" \
--vout x11 \
--osd \
--spu \
--sub-filter marq

this works fine and displays the text as requested

but:
vlc -vvv {mrl} \
--marq "<svg version=1 viewBox='0 0 800 600'><text x=10 y=10  
fill=green font-size=32 font-family=sans-serif>TESXT</text></svg>" \
--vout x11 \
--osd \
--spu \
--sub-filter marq \
--text-renderer svg

displays the source of the svg instead of a rendition... but doesn't  
complain about anything related to --text-renderer svg

---------------------------------------

my final goal is to use this feature in a python application, (like  
the advene project)
i have succesfully compiled the bindings/python/ of vlc

in the following code:

import time
import vlc

mc = vlc.MediaControl('--text-renderer svg --vout x11 --plugin-path / 
usr/local/lib/vlc'.split())
mc.playlist_add_item('/path/to/some/video')
mc.start(0)

time.sleep(2)
str = "<svg version=1 viewBox='0 0 800 600'><text x=10 y=10  
fill=green font-size=32 font-family=sans-serif>TESXT</text></svg>"
mc.display_text(str,0,20000)
time.sleep(20)
mc.stop(0)
mc.exit(0)
exit


the video displays as predicted,
but when trying execute the mc.display_text , vlc outputs the  
following error:
[00000353] main private error: no text renderer module matched "svg"
the svg then appears as the source (rendered through freetype regular  
text)



anybody can help please?


-thanks a lot,
-martin


-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list