File Triplets

Advanced Renamer forum
#1 : 21/02-18 12:10
Mark
Mark
Posts: 175
Kim, probably for you but if anyone else can help ..... :)

https://www.advancedrenamer.com/user_guide/filep airs

File Pairs is "when two or more files are located in the same folder and differ on the extension". is great for when you have a video and associated thumbnail.

However, I have high quality mp4 files, an associated jpg and then a lower quality mp4 (suitable for the internet, WhatsApp etc), so:

2018-01-29 17-21-38(0).mp4
2018-01-29 17-21-38.jpg
2018-01-29 17-21-38.mp4

Here, the (0) identifies the processed (lower quality) version.

So the question is; is it possible to rename all three with the same incrementing number?

001, 2018-01-29 17-21-38(0).mp4
001, 2018-01-29 17-21-38.jpg
001, 2018-01-29 17-21-38.mp4

Given the above format, I can identify the common date with a RegEx, but can think of a way to use that information to give the result I would like.

Any ideas?!

Thanks,

Mark



21/02-18 12:10
#2 : 22/02-18 12:43
Mark
Mark
Posts: 175
Reply to #1:
I decided to do this use brute-force ...

My camera produces an mp4 and associated jpg. An internet-ready video (created using a 3rd-party video converter) will also be an mp4, so in all there will be 3 files (a video triplet), ie:

2018-01-26 17-15-10.mp4 (original quality video)
2018-01-26 17-15-10.jpg (original thumbnail)
2018-01-26 17-15-10(0).mp4 (internet-ready video created from the original video using a 3rd-party video converter)

Using AR, the process to rename them as a "File Triplet" is:

Add folder using a filename mask *(0).mp4
Method 1 - Replace (0).mp4 with .mp4x, apply to Name and extension
Add folder using a filename mask *.*
Rename all the files as required, with Settings/Renaming/Rename file pairs with same new filename selected
When complete, add folder using a filename mask *.mp4x
Method 2 - Replace <Name>.mp4x with <Name>(0).mp4, apply to Name and extension

End up with (in this case):

016, 2018-01-26 17-15-10.mp4
016, 2018-01-26 17-15-10.jpg
016, 2018-01-26 17-15-10(0).mp4

Mark


22/02-18 12:43 - edited 22/02-18 12:46