You are not logged in.
Pages: 1
Hi is there a way to append the resolution of a mp4 file to the filename eg: 1080p I have a collection of mp4 video file and would like to be able to see there resolution easily.
Thanks.
Offline
Hi is there a way to append the resolution of a mp4 file to the filename eg: 1080p
I don't know.
But could be a part of the "Meta_Tags" ?
Try that out >>> https://www.den4b.com/wiki/ReNamer:Meta_Tags
together with e.g. >>> https://www.den4b.com/wiki/ReNamer:Rules:Insert
If that doesn't help, try an external tool like MediaInfo or perhaps exiv2.exe
See >>> https://www.den4b.com/forum/viewtopic.p … 526#p11526
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
You can use the MediaInfo script with slight modifications.
The script below will append the width of the video in pixels to the end of the filename, e.g. "Movie Name 1080p.mp4".
You will need to install the MediaInfo CLI tool, as per instructions, and update the path to it in the script.
const
MediaInfoExe = 'C:\Tools\MediaInfoCLI\MediaInfo.exe';
OutputParameter = 'Video;%Width%';
var
Command: WideString;
Output: String;
begin
Command :=
'"' + MediaInfoExe + '"' +
' --output="' + OutputParameter + '"' +
' "' + FilePath + '"';
if ExecConsoleApp(Command, Output) = 0 then
FileName := WideExtractBaseName(FileName) + ' ' +
WideTrim(OemToWide(Output)) + 'p' + WideExtractFileExt(FileName);
end.
Offline
I'm hoping to rename a video file so it comes out in this kind of format:
"date-time_application [height framerate bitdepth].mp4"
Is there a way to combine into one 'OutputParameter' the info about the encoding date and writing application, along with the video characteristics?
That is, these fields:
General;%Encoded_Date% %Encoded Application%
and
Video;%Height% %FrameRate% %BitDepth%
Thanks.
Offline
There is a nice post at https://stackoverflow.com/a/57019943 which described how to use templates to access multiple data tags from different sections in a single call.
Give it a go and let us know how that works out.
Offline
Pages: 1