Page 1 of 1

Add Relative % size option to Marquee Font Size

Posted: 06 Jul 2013 17:09
by Chromatic
This feature could be added to all the font sizing,.. but I use Marquee for Text Overlay of the Dynamic Media info of every file being played (IE: Filename/Time/Duration) --

The only option here is to set it by "Pixels" in the Marquee advanced preferences.

That sounds great, but the problem is, if you don't have ever single video at the exact same resolution -- You have big problems with the size of your marquee text overlay.

High resolutions (Ie: 1280x720) cause the Marquee text overlay to be tiny, unreadable. Then lower resolutions, ie: 640x360 will make the text giant, taking a huge amount of room of the actual screen. There is not middle ground currently.

Thus,.. a "relative percentage" size would be perfect. Where it would utilize a relative size of the full screen being played -- X and Y percent, so no matter what resolution video is being played your text remains the exact same size!

Thanks!

Re: Add Relative % size option to Marquee Font Size

Posted: 08 Jul 2013 16:23
by Jean-Baptiste Kempf
What is the video output you are using?

Re: Add Relative % size option to Marquee Font Size

Posted: 11 Jul 2013 04:30
by Chromatic
Not sure exactly what you are referring to -- however I will try to cover all the bases.

I am using VLC 2.0.7 Twoflower

I am playing files from a playlist,.. 150 videos in the playlist.

The files are a mixture of .mp4, .avi etc.

The resolutions are anywhere from 576x320 to 1280x720 depending on video.

I am broadcasting it with OBS (Open Broadcast Software) to a stream on a media server. (Though this piece of software has nothing to do with the On screen display).

If I am missing the question, please clarify.

Thanks

Re: Add Relative % size option to Marquee Font Size

Posted: 21 Jan 2021 15:17
by OffertonChris
Did you get an answer?
I just made a work-around for it using FFmpeg function FFprobe

In a batch file:-

Code: Select all

:: Set figure for VLC overlay font size as a :: percentage of source media resolution height FOR /F "tokens=* USEBACKQ" %%F IN (`"ffprobe -v error -show_entries stream=height -of default=noprint_wrappers=1:nokey=1 %VideoSource%"`) DO ( SET ResHt=%%F ) ECHO Resolution height of source video = %ResHt% SET percentage=5 SET /A PxlHt=((%ResHt%/100)*%percentage%) ECHO Marq pixel height = %PxlHt%
Where %VideoSource% = File name or URL of a stream
and %PxlHt% is the returned font size to use in your VLC marquee font size parameter.
Use only whole integers for percentage variable.
(BTW I'm using this in batch files that launch VLC to record a homemade CCTV system using old mobile phones as IP cameras)

Code: Select all

ffprobe -h
is the help page for FFprobe.

Code: Select all

ffprobe -v error -show_format -show_streams %VideoSource%
will show you all the properties of your video that can be extracted.