Help Using the Autorename App

The Basics

  • Nextcloud Server version: AIO 31.0.6
  • Operating system and version: Unraid 7.1
  • Installation method: AIO Docker
  • Are you using CloudfIare, mod_security, or similar? Yes. I use Cloudflare.

Hi friends,

I could use some assistance from more knowledgeable users in regard to using the Autorename Nextcloud app.

My use case is as follows:

  1. I use Google Meet to conduct online 1/1 and group video meetings.

  2. Google Meet records the meetings and automatically saves them as files in a Google Drive folder called “Meet Recordings”.

  3. However, the video files created by Google Meet are not saved with the .mp4 file type [for example: " kcn-kpmw-uyk (2025-06-25 12 13 GMT+3) "], so when I download such a file, my computer and Nextcloud doesn’t understand this is a video file, and they won’t play it – unless I manually add the .mp4 file type to the file name. [for example: "kcn-kpmw-uyk (2025-06-25 12 13 GMT+3).mp4 "].

  4. After I download the original video files created by Google Meet (without the .mp4 file type) to my computer and then sync the files to a specific folder on my Nextcloud drive, I would like the Autorename app to automatically add to every file added to this folder the .mp4 extension.

Could this be possible?
What rule should I add to the .rename.conf file?

The first half of the video files names created bt Google Meet are random, while the second half is the date and time of the meeting. So I guess I would need to use some kind of general rule to fit all the files already in or created in this Nextcloud folder in the future.

Hope someone can help :folded_hands:

Hi,

this rule matches all strings that do not end with .mp4 and the replacement adds the .mp4 extension:

^(?!.*\.mp4$).*:$0.mp4

New files will be renamed with this rule in the folder. For already existing files read Will existing files be renamed after I create or update a .rename.conf file?)

1 Like

Thank you, @powerflo , for taking the time to read my post and offering a suggestion :folded_hands:

The Autorename runs, but the result is problematic.
I’ll give one file as an example:

Prior to the autorename function running the file name was: " rbe-atty-tmw ".
After the autorename function ran the file name was changed to: " r.mp4.mp4be-atty-tmw ".

This means the autorename function is running, but the .mp4 extension is currently added twice in the middle of the file name, instead of once at the end.

I don’t really know how to fix the rule.

Do you have an idea?

Nevermind, I figured it out.
I followed your suggestion on github to consult with ChatGPT and it gave me the correct rule for my use case:

^[^.]+$:$0.mp4

Many thanks :folded_hands::folded_hands:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.