You are not logged in.
Pages: 1
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
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
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
Follow the instructions in here:
https://www.den4b.com/wiki/ReNamer:Scripts:MediaInfo
Offline
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
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?
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
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
Pages: 1