setting the title in the title bar from cli

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
james28909
New Cone
New Cone
Posts: 3
Joined: 21 Jul 2019 20:28

setting the title in the title bar from cli

Postby james28909 » 21 Jul 2019 20:38

i have written a grid style tv guide viewer in wxwidgets. have spent over a month on this with no resolution.

i am trying to figure out the correct command to set a custom string in the title bar of vlc. i opened a ticket and was told that it was user error, but instead of them telling me how i was erroring and what i need to do to fix it, they just said "user error" and closed the ticket.

i am stuck on what seems to be a very simple problem.

i am calling vlc from my program with "vlc --qt-minimal-view --meta-title=<custom_title> --one-instance --loop URL" but when i send the next command from my program, which is after a user clicks a tv show, it does not update the title. instead it uses the old one. here is a video of my problem:[url]https://youtu.be/0mqeaxA-pVU[/url].

all i want is the title to reflect what i sent to vlc's one-instance. instead it stays the same as the first title. please view the video and you will see what i am trying to accomplish

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: setting the title in the title bar from cli

Postby unidan » 21 Jul 2019 23:00

Hi, I'm sorry for the answer that was given to you. it was probably given because it wasn't a bug, but would be a frustrating and unfairful answer.

--option like that are applied to the whole libvlc, and future input items will inherit these kinds of option.

If you want to the the option just for one title, you should use :option like that. I redirect you to the begining of vlc -H for more information.

Options-styles:
--option A global option that is set for the duration of the program.
-option A single letter version of a global --option.
:option An option that only applies to the stream directly before it
and that overrides previous settings.

Stream MRL syntax:
[[access][/demux]://]URL[#[title][:chapter][-[title][:chapter]]]
[:option=value ...]

Many of the global --options can also be used as MRL specific :options.
Multiple :option=value pairs can be specified.

james28909
New Cone
New Cone
Posts: 3
Joined: 21 Jul 2019 20:28

Re: setting the title in the title bar from cli

Postby james28909 » 25 Jul 2019 17:08

what i have resorted to is force closing vlc with taskkill each time and reopening with --meta-title=<custom_title>. i will look into using the :option the way you pointed out. however this stream does not have any information in it about the stream title or name or time or date or any metadata information at all so there is no way to pull in that information and is the reason i am trying to give vlc that info in --meta-title.

which works for the most part. it takes a little bit longer than just opening a new http stream but it does exactly what i need. now if i can figure out how to rename the recorded output to have only the string in the title bar instead of including time stamps etc. but setting $t, $N $Z or any other variable has not had an effect on the output filename when using --meta-title


EDIT: ok i was able to use #:<custom_title. but the output recorded filename is still "vlc-record-2019-07-25-11h42m00s-11398#Custom_Title-.ts". i guess in a sense, i do not need vlc to name my files for me, i want to be able to name them as i see fit. i send vlc the channel name, title of the show and the episode name so i do not need the timestamps. but trying to use $t does not work. no file is created

how do i get just Custom Title in the title bar and as the filename?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 42 guests