%n in Marquee string locks up VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
trindflo
New Cone
New Cone
Posts: 2
Joined: 07 Sep 2017 23:15

%n in Marquee string locks up VLC

Postby trindflo » 23 Jan 2018 18:00

I'm attempting to format a Marquee string. Apparently using the strftime escape sequences to create multiple lines is not a solution. I discovered while experimenting that using %n (newline) in the string will put VLC into some sort of loop. I may be going about things in the wrong manner, but there should be a warning about that particular sequence in the documentation.

I'm going to attempt multiple marquees now.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: %n in Marquee string locks up VLC

Postby chubinou » 24 Jan 2018 10:15

Hello,

I couldn't reproduce your problem

- what version of VLC do you use? Is the issue still present with the latest version (3.0-rc7 https://nightlies.videolan.org/build/win64/ )
- could you provide some logs?
- could you provide a sample string causing the issue

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: %n in Marquee string locks up VLC

Postby mederi » 24 Jan 2018 16:20

vlc-3.0.0-20180122-0301-rc7-win32.7z
Tools > Effects and Filters > Video Effects > Overlay: [v] Add text, Text [VLC %]
Just wanted to test the time expansions (%Y, %m, %d, %H, %M, %S). If I start to write the string in the text input field during a video playback, VLC freezes as soon as I use the percent sign.

chubinou
Developer
Developer
Posts: 521
Joined: 23 Jul 2015 15:19

Re: %n in Marquee string locks up VLC

Postby chubinou » 25 Jan 2018 14:47

Ok found it,

thanks for the report :)

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: %n in Marquee string locks up VLC

Postby Rémi Denis-Courmont » 25 Jan 2018 22:01

%n is a POSIX extension, not a standard format specifier. Use newline directly.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: %n in Marquee string locks up VLC

Postby mederi » 30 Jan 2018 14:52

So it is not possible to break a marquee string into multiple lines, is it? I have tried to use \n like in osd message in Lua script, but to no avail. Html </ br> is not supported. Marquee from a text file can also display only the first line. I think it would be useful to support multiple lines in marquee strings.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests