You are not logged in.
Hi all,
I have no idea if this is even possible, but I have a set of files following the scheme
P1060108.jpg
P1060109.jpg
P1060110.mp4
P1060111.jpg
P1060112.mp4
P1060113.mp4
P1060114.jpg
P1060115.jpg
etc...
I'd like to rename the files given their EXIF date (for sorting reasons on my NAS). The problem is that the date only exists for the .jpg files.
Thus my idea is to give the .mp4 file the name of the previous .jpg in the list, even though it is not really the correct EXIF date, but I wouldn't mind.
Check this screenshot for an example:
In a first step, I could insert the EXIF date for the .jpg's, but then I'm stuck
I need a rule that says "if EXIF date ist not available, identify previous (already renamed) file name in list and use the corresponding EXIF date/first 19 digits as prefix"
Thanks in advance!!!
rebwa1
Offline
Yes, that is doable using a Pascal Script rule:
var
TagValue: WideString;
LastTagValue: WideString;
begin
TagValue := CalculateMetaTagFormat(FilePath, 'EXIF_Date', 'yyyy-mm-dd hh-nn-ss');
if Length(TagValue) > 0 then
begin
FileName := TagValue + ' ' + FileName;
LastTagValue := TagValue;
end
else if Length(LastTagValue) > 0 then
begin
FileName := LastTagValue + ' ' + FileName;
end
end.
However, there is probably a date tag of some kind in your MP4 files. You should try some tag extractor tool, like MediaInfo CLI, and if it can extract a date, then you can use it within a Pascal Script rule. See this example: http://www.den4b.com/wiki/ReNamer:Scripts:MediaInfo
Offline
It works genius!!!
Thanks a lot for your super super quick answer and great help!!!
Offline
I checked out MediaInfo CLI and created a Pascal Sript Rule - and ReNamer was able to extract the correct "DateCreated" --> EncodedDate from the .mp4 files!!
A huge huge thanks for your help - I'm very happy
Offline