Updating marquee dynamically?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
coolDiners
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Mar 2007 02:28

Updating marquee dynamically?

Postby coolDiners » 20 Mar 2007 00:52

I want to run vlc from my Javaor C code. Is it possible to update the marquee using dynamic values that are set from my Java or C program and once set can be changed if Java or C program decides to change it?

coolDiners
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Mar 2007 02:28

Postby coolDiners » 20 Mar 2007 00:56

I was just looking at what vlc supports and I noticed the RSS feed. Is it possible to have the marquee gets updated according to an RSS feed and its updates?

If so, where can I find the syntax for the command?

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

Postby dionoea » 20 Mar 2007 23:54

You can update the marquee parameters through the rc interface or by changing the appropriate variables in the libvlc object at run time. Beware that this is currently broken in the development version.

You could also use the RSS filter. It's easy to use and updates automatically at given time intervals.
Here is the help for the RSS sub filter options:

Code: Select all

23:52 dionoea@muscipula ~% vlc -p rss --advanced --help-verbose VLC media player 0.8.6a Janus RSS and Atom feed display --rss-urls <string> Feed URLs RSS/Atom feed '|' (pipe) seperated URLs. --rss-x <integer> X offset X offset, from the left screen edge. --rss-y <integer> Y offset Y offset, down from the top. --rss-position {0 (Center), 1 (Left), 2 (Right), 4 (Top), 8 (Bottom), 5 (T op-Left), 6 (Top-Right), 9 (Bottom-Left), 10 (Bottom-Right)} Text position You can enforce the text position on the video (0=center, 1=left, 2=right, 4=top, 8=bottom; you can also use combinations of these values, eg 6 = top-right). --rss-opacity <integer> Opacity Opacity (inverse of transparency) of overlay text. 0 = transparent, 255 = totally opaque. --rss-color {-268435456 (Default), 0 (Black), 8421504 (Gray), 12632256 (Si lver), 16777215 (White), 8388608 (Maroon), 16711680 (Red), 16711935 (Fuchsia), 1 6776960 (Yellow), 8421376 (Olive), 32768 (Green), 32896 (Teal), 65280 (Lime), 83 88736 (Purple), 128 (Navy), 255 (Blue), 65535 (Aqua)} Color Color of the text that will be rendered on the video. This must be an hexadecimal (like HTML colors). The first two chars are for red, then green, then blue. #000000 = black, #FF0000 = red, #00FF00 = green, #FFFF00 = yellow (red + green), #FFFFFF = white --rss-size <integer> Font size, pixels Font size, in pixels. Default is -1 (use default font size). --rss-speed <integer> Speed of feeds Speed of the RSS/Atom feeds (bigger is slower). --rss-length <integer> Max length Maximum number of characters displayed on the screen. --rss-ttl <integer> Refresh time Number of seconds between each forced refresh of the feeds. 0 means that the feeds are never updated. --rss-images, --no-rss-images Feed images (default enabled) Display feed images if available. (default enabled)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

coolDiners
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Mar 2007 02:28

Postby coolDiners » 21 Mar 2007 03:35

Thanks for your reply. Here is the command I use now:

"C:\Program Files\VideoLAN\VLC\vlc.exe" -I http --no-video-deco --sub-filter=rss --rss-urls="http://rss.news.yahoo.com/rss/topstories" --no-rss-images --rss-position=9 -f Lexus400hCommercial.mpg

The RSS feed looks good except the following:

1) I have turned off the rss image, but still "Yahoo! News" text is taking a good bit of the line. Is there anyway to eliminate it or make is smaller?

2) Speed is too high. I played around with numbers like 200, 50, and 10. None of them seem to slow the text down. Any recommendations?

3) The feed is taking anywhere from 1 - 3 lines. Is there a way to force it to stick with one line only?

4) Is it the --rss-ttl option that causes the feed to update itself or does it automatically update itself if there are some updates to the feed?

5) Is there a way to have the text to roll over (like a marquee) than have it replaced on the spot?

Thanks again.

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

Postby dionoea » 21 Mar 2007 19:44

1) That's not currently possible without editing the source code. If you feel that it could be useful I might add an option to make it slide with the rest of the text. If you just want to display your custom RSS feed, you could create one without any title.

2) Speed is in milliseconds between every move. So you're going to want values like 1000 or 5000.

3) Due to current limitations in the text rendering API, the only 2 settings which you can change to make sure that it stays on one line are --rss-size (font size) and --rss-length (character length ... not pixel based :'( )

4) At the moment, updates are only triggered by the --rss-ttl option.

5) I don't really understand the question :)
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 » 21 Mar 2007 23:17

Some updates:
1) the rss sub filter now has an "rss-title" option to tell it how to display the title.

Code: Select all

--rss-title {-1 (Default), 0 (Don't show), 1 (Always visible), 2 (Scroll with feed)} Title display mode Title display mode. Default is 0 (hidden) if the feed has an image and feed images are enabled, 1 otherwise.
3) if you set the rss-size option, it'll only display text which fits on the first line.

These changes require tomorrow's nightly builds minimum.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

coolDiners
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Mar 2007 02:28

Postby coolDiners » 22 Mar 2007 03:14

Thanks for all your replies. I tried insalling the windows nightly build. I get the following error when I have it installed:

File reading failed: VLC could not open file "C:\Users\Dave\AppDate\Roaming\vlc\skins\default.vlc" (Result too large).

Do I need to make any changes once the nightly build is installed so that it does not look for default.vlc in the above location?

Thanks.

shkurko
Blank Cone
Blank Cone
Posts: 20
Joined: 20 Mar 2007 21:48
Location: SPb, Russia

Postby shkurko » 22 Mar 2007 13:41

Sorry, how make smooth rss text roll? (pixel-by-pixel) Now have somthing like a symbol-by-simbol. And if text contain simbol, for example, "q,j,y" all string jump some pixel up (top).

shkurko
Blank Cone
Blank Cone
Posts: 20
Joined: 20 Mar 2007 21:48
Location: SPb, Russia

Postby shkurko » 22 Mar 2007 14:14

Sorry, how make smooth rss text roll (move - pixel-by-pixel)? Now I have something like a symbol-by-simbol :( . And if text contain simbols, for example, "q,j,y or some russian character" all string jump some pixels up (top) and jump down after this simbols disappear.

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

Postby dionoea » 22 Mar 2007 23:39

That's not possible for the moment. (Character by character scrolling is all that we can do with the current text rendering framework in VLC)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

AIexis
Blank Cone
Blank Cone
Posts: 24
Joined: 13 Apr 2007 18:57

Postby AIexis » 19 Apr 2007 21:39

3) if you set the rss-size option, it'll only display text which fits on the first line.

These changes require tomorrow's nightly builds minimum.
I also have this issue.
I had to make a php program that change rss-length when rss-size is changed :?
(ok, it's a little bit "do-it-yourself" :roll: )


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 21 guests