Page 1 of 1

Multiline Marquee ?

Posted: 28 Sep 2006 22:37
by DOOM
Hello,

is there a way to display more than one marquee lines?

DOOM

Posted: 29 Sep 2006 17:26
by dionoea
you could try putting a line feed in your marq text.

Posted: 29 Sep 2006 19:06
by DOOM
Thanks for your reply, but that was the first ive tried :wink:

I took a look into the source, the marq text variable is a string and i dont
noticed a linefeed check. What a pity - otherwise this plugin would be a very easy way to set up an text based osd.

Is the author of this plugin still active? Mark Moriarty. Maybe he can give me some hints how to adapt the code.

Hm, i think i have to install a c++ compiler :-)


marq.c

Code: Select all

#include <string.h> . . . p_sys->i_xoff = var_CreateGetInteger( p_input->p_libvlc , "marq-x" ); p_sys->i_yoff = var_CreateGetInteger( p_input->p_libvlc , "marq-y" ); p_sys->i_timeout = var_CreateGetInteger( p_input->p_libvlc , "marq-timeout" ); p_sys->i_pos = var_CreateGetInteger( p_input->p_libvlc , "marq-position" ); p_sys->psz_marquee = var_CreateGetString( p_input->p_libvlc, "marq-marquee" ); p_sys->p_style->i_font_alpha = 255 - var_CreateGetInteger( p_input->p_libvlc , "marq-opacity" ); p_sys->p_style->i_font_color = var_CreateGetInteger( p_input->p_libvlc , "marq-color" ); p_sys->p_style->i_font_size = var_CreateGetInteger( p_input->p_libvlc , "marq-size" );


DOOM

Posted: 29 Sep 2006 22:37
by dionoea
It works command line (on linux at least):

Code: Select all

22:36 dionoea@cellerier ~% vlc --sub-filter marq --marq-marquee "test 123" /mnt/stuff/media/redefined-nintendo.mpg
I doubt that it will if you're doing it through the rc interface.

Posted: 30 Sep 2006 13:50
by DOOM
I doubt that it will if you're doing it through the rc interface.
hm, thats right :-/

commandline works, at least via shellexecute

Code: Select all

--sub-filter marq --marq-marquee Marquee_Line_#1'+#10+'Marquee_Line_#2'+#10+'Marquee_Line_#3'
Image

But it dont work via the rc-interface, the text is cut off behind the first control character - no matter if i send #10, ^j or 0x0A.

Any idea ?

DOOM

Posted: 30 Sep 2006 21:26
by dionoea
Well we could change the marquee filter a bit to replace \n or something like that with a line feed. (But that wouldn't help if you're using a stable version.)

Posted: 01 Oct 2006 01:40
by dionoea
I've just had some fun with the marq filter. It now supports the following format strings:

Code: Select all

--marq-marquee <string> Text Marquee text to display. (Available format strings: Time related: %Y = year, %m = month, %d = day, %H = hour, %M = minute, %S = second, ... Meta data related: $a = artist, $b = album, $c = copyright, $d = description, $e = encoded by, $g = genre, $l = language, $n = track num, $p = now playing, $r = rating, $t = title, $u = url, $A = date, $D = duration, $F = full name with path, $L = time left, $N = name, $P = publisher, $T = time, $_ = new line)
This is available in the developement version. Nightly builds can be downloaded here: http://nightlies.videolan.org . Tell me if you need anything else,

Posted: 01 Oct 2006 15:10
by DOOM
great, many thanks.

But its not includet in the last nightly build

http://nightlies.videolan.org/build/win ... 1001-0000/

I will wait for the next one :-)

DOOM

Posted: 01 Oct 2006 19:24
by dionoea
I changed loads of other marq related stuff in the meanwhile ... which means that the remote control interface marq commands don't work anymore :D I'll have to fix them.

Posted: 01 Oct 2006 20:49
by DOOM
allright, would be cool if u post a reply here after the rc is fixed.

But no stress, iam patient.

DOOM

Posted: 13 Oct 2006 18:58
by DOOM
something new about the remote control interface marq commands? They are still broken.

DOOM