How do I use mp4 tags to rename files?

All your suggestions, requests and ideas for future development
Post Reply
xpusostomos
Posts: 3
Joined: 09 May 2021, 09:24

How do I use mp4 tags to rename files?

Post by xpusostomos »

I had ripped Red Dwarf to my iTunes library. I'd never got around to naming them, but they were correctly marked in iTunes by season and episode. Anyway, I lost my iTunes library database, am moving now to Plex, and hoping for FileBot to help dig me out of the mess.

Anyway, FileBot isn't helping me much in this case, because it isn't looking at mp4 meta data. I don't know how it guesses when the name isn't correct, but it looks random. If I look at the tags in my season 1 for example...

Code: Select all

for i in *; do mp4tag --show-tags "$i"; done
Tool:[S] HandBrake 1.3.1 2020010400
ShowName:[S] Red Dwarf
ShowSeason:[I32] 1
ShowEpisodeNumber:[I32] 1
Tool:[S] HandBrake 1.3.1 2020010400
ShowName:[S] Red Dwarf
ShowSeason:[I32] 1
ShowEpisodeNumber:[I32] 2
Tool:[S] HandBrake 1.3.1 2020010400
ShowName:[S] Red Dwarf
ShowSeason:[I32] 1
ShowEpisodeNumber:[I32] 3
Tool:[S] HandBrake 1.3.1 2020010400
ShowName:[S] Red Dwarf
ShowSeason:[I32] 1
ShowEpisodeNumber:[I32] 4
Tool:[S] HandBrake 1.3.1 2020010400
ShowName:[S] Red Dwarf
ShowSeason:[I32] 1
ShowEpisodeNumber:[I32] 5
Tool:[S] HandBrake 1.3.1 2020010400
ShowName:[S] Red Dwarf
ShowSeason:[I32] 1
ShowEpisodeNumber:[I32] 6
All the data filebot would need to get this right is there, but it's not being used.
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot should use tags to figure out what is what

Post by rednoah »

1.
FileBot does not generally use mp4 / mkv tags. However, you can specifically rename files based on mp4 tags by clicking on Smart Mode: Attributes. This will match your files against locally available information, typically xattr metadata, but mp4 tags too if xattr metadata isn't available.


2.
What does MediaInfo say?

Code: Select all

filebot -script fn:mediainfo /path/to/files
rednoah wrote: 03 Dec 2015, 17:36 If files are already tagged (e.g. via iTunes) then you can use a plain file format with MediaInfo bindings to instantly generate the destination path without any database lookup:

Code: Select all

{home}/Media/{media.Album}/Season {media.Season}/{media.Album} - {media.PartID} - {media.Title}
Image
:idea: Please read the FAQ and How to Request Help.
xpusostomos
Posts: 3
Joined: 09 May 2021, 09:24

Re: FileBot should use tags to figure out what is what

Post by xpusostomos »

OK, that worked by selecting Smart Attributes, renaming. And then loading it a 2nd time, and matching against TVDB. So thanks for that.
Post Reply