Multiline Marquee ?

About encoding, codec settings, muxers and filter usage
DOOM
Blank Cone
Blank Cone
Posts: 29
Joined: 24 Oct 2005 09:55

Multiline Marquee ?

Postby DOOM » 28 Sep 2006 22:37

Hello,

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

DOOM

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 29 Sep 2006 17:26

you could try putting a line feed in your marq text.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

DOOM
Blank Cone
Blank Cone
Posts: 29
Joined: 24 Oct 2005 09:55

Postby DOOM » 29 Sep 2006 19:06

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 29 Sep 2006 22:37

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.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

DOOM
Blank Cone
Blank Cone
Posts: 29
Joined: 24 Oct 2005 09:55

Postby DOOM » 30 Sep 2006 13:50

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 30 Sep 2006 21:26

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.)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 01 Oct 2006 01:40

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,
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

DOOM
Blank Cone
Blank Cone
Posts: 29
Joined: 24 Oct 2005 09:55

Postby DOOM » 01 Oct 2006 15:10

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 01 Oct 2006 19:24

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.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

DOOM
Blank Cone
Blank Cone
Posts: 29
Joined: 24 Oct 2005 09:55

Postby DOOM » 01 Oct 2006 20:49

allright, would be cool if u post a reply here after the rc is fixed.

But no stress, iam patient.

DOOM

DOOM
Blank Cone
Blank Cone
Posts: 29
Joined: 24 Oct 2005 09:55

Postby DOOM » 13 Oct 2006 18:58

something new about the remote control interface marq commands? They are still broken.

DOOM


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests