#1 2019-10-30 02:29

Rnmr
Member
Registered: 2019-10-22
Posts: 37

Why such poor video meta tag support?

AVI is all?

And why are you taking a separation approach for formats?

Advanced Renamer has just one set of video meta tags under 'Video ...'
(Video Width, Video Duration, Video Frame Rate, etc.) that detects the info
from the files regardless of the format/container.

AVI isn't even the standard anymore.

Last edited by Rnmr (2019-10-30 02:29)


To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.
- RWE

Offline

#2 2019-11-20 17:31

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Why such poor video meta tag support?

AVI is all?

That is what was feasible to implement natively.

The common approach of other products is to rely on a 3rd party tool/library and just bundle it with the product. In the case of Advanced Renamer, it probably uses MediaInfo CLI tool.

It is planned to extend the meta tags framework in ReNamer to allow for the integration of 3rd party tools (e.g. MediaInfo, Xpdf, ExifTool, TrID, and many others). Then, there will be a much better cover of formats and meta tags, making it possible to have a generic Video_Duration rather than AVI_Duration.

In the meantime, 3rd party tools can be used within ReNamer via PascalScriopt rule, as demonstrated here:
https://www.den4b.com/wiki/ReNamer:Scripts

Last edited by den4b (2019-11-20 17:35)

Offline

#3 2020-04-18 18:20

Rnmr
Member
Registered: 2019-10-22
Posts: 37

Re: Why such poor video meta tag support?

In the meantime, 3rd party tools can be used within ReNamer via PascalScriopt rule, as demonstrated here:
https://www.den4b.com/wiki/ReNamer:Scripts

Ok, finally getting around to this.

I followed the link and took a look.
There is only a script for AVI filename maneuver.

Can you guide me on what to do for mkv, mp4, mpg, mpeg, etc durations.

1. make sure mediainfo is installed.

2. what next?

Do I need to multi copy the AVI script and alter them for the function(s) I want
according to the various formats?

Last edited by Rnmr (2020-04-18 18:25)


To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.
- RWE

Offline

#4 2020-04-19 11:15

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Offline

#5 2020-04-20 00:03

Rnmr
Member
Registered: 2019-10-22
Posts: 37

Re: Why such poor video meta tag support?

Okay, I got it to work.........sort of.

When I run the script with only the basic changes instructed, using my preference, %Duration/String3%,
it gives me what I want (although, I have to adjust for colons with replace to '.').

However, it wipes out the rest of the name and only shows the meta tag I instructed it to.

ex.
orig. filename = Trying to get this to work right.mp4
new filename  = 00:41:25.859.mp4 (adjusted to 00.41.25.859.mp4)

How do I get it to put that at the end of the original filename?
I tried messing around with some rules to restore original part of name to
no avail. I mean, I can get it back if I just uncheck everything so it's not lost or anything,
but what am I doing wrong?

Last edited by Rnmr (2020-04-20 00:05)


To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.
- RWE

Offline

#6 2020-04-20 18:13

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Why such poor video meta tag support?

In an script you can access the original filename by the variable "filename".
For example, you could store it for later reuse:
myTempVar := FileName;



To compose a new filename, assign the wanted parts and string to the variable "filename":
FileName := 'My String (' + myVariable + ')' + WideTrim(OemToWide(Output)) + '_' + WideExtractFileExt(FilePath);




To get the original base name (w/o extension) also, use the same as above with WideExtractFileExt(), but for the name part only.
See our wiki:
https://www.den4b.com/wiki/ReNamer:Rules:PascalScript
and

https://www.den4b.com/wiki/ReNamer:Pasc … :Functions
https://www.den4b.com/wiki/ReNamer:Pasc … _Utilities

function WideExtractBaseName(FileName: WideString): WideString;     Returns the base name of the file, i.e. file name without extension


Use that as "WideExtractBaseName(FileName)",
for that above mentioned script as like:
FileName := WideExtractBaseName(FileName)  + ' - ' + WideTrim(OemToWide(Output))  + WideExtractFileExt(FilePath);




"FilePath" or "FileName" as source will both provide the same result here.
See the wiki for a complete list of File Name functions.

HTH? big_smile


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#7 2020-05-20 02:03

Rnmr
Member
Registered: 2019-10-22
Posts: 37

Re: Why such poor video meta tag support?

I got it to work!
Thanks

I managed to string this together,
OutputParameter = 'Video; %Duration/String1% (%Width%x%Height%_%AspectRatio%\)'

...further adjusted with a couple of rules to read exactly how I like it.


To be yourself in a world that is constantly trying to make you something else is the greatest accomplishment.
- RWE

Offline

Board footer

Powered by FluxBB