Is there a way to use formulae in automatic naming of output files?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Valandil
New Cone
New Cone
Posts: 2
Joined: 13 Jul 2024 18:37

Is there a way to use formulae in automatic naming of output files?

Postby Valandil » 14 Jul 2024 00:45

When using the "automatically name output files" feature, I'm wondering if there is a way to use a formula to alter the data entered.

Suppose I am backing up a DVD I own which has the main (title) chapter and 20 bonus chapters. I'd like to save the title chapter (the movie) with its title and year; taking the film "Ex Machina" as an example, I'd name the main chapter "Ex Machina - (2014)". This I can do manually.

The other 19 chapters (the bonus tracks) I'd like to save in a format something like this: "Ex Machina - Bonus Track 1", "Ex Machina - Bonus Track 2", "Ex Machina - Bonus Track 3", etc.

If I use the "automatically name output files" feature to append the "Title" to the string "Ex Machina - Bonus Track ", it names the first bonus track "Ex Machina - Bonus Track 2", since the first BONUS track is actually the second title on the DVD. In order to have the bonus chapters named beginning with "1", I need to, and have been, renaming each of the 19 affected files.

I'm wondering if there is a way to use a formula, in the "automatically name output files" window or elsewhere, to programmatically assign such a number. I won't be surprised if there is not; that's a pretty good stretch for a feature.

I have used and greatly appreciated VLC for a long time and will continue to do so either way. But the question seemed worth asking. In my experience, if you don't ask the unasked question, the answer is always "no".

Thanks and Best Wishes to All!

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

Re: Is there a way to use formulae in automatic naming of output files?

Postby Rémi Denis-Courmont » 14 Jul 2024 10:27

Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Valandil
New Cone
New Cone
Posts: 2
Joined: 13 Jul 2024 18:37

Re: Is there a way to use formulae in automatic naming of output files?

Postby Valandil » 22 Jul 2024 17:36

Thanks, Remi, for that thoughtful and informative reply.

Actually I was thinking of something (perhaps in the "automatically name output files" window or programmatically) along the lines of: "Title -1" (as in "Title minus 1") or something of the sort. Admittedly, I am no developer, though I have written some fairly complex code in DBMS environments.

I did click the "src/text/strings.c" link at the bottom of the page you cited to try to get more information but that link is dead.

Thanks again!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests