2021-06-01, 16:46
Sometimes, guessing the movie or TV show from the file name (and path) works quite well, especially if it conforms to the conventions established by release groups for pirated content. It still often fails for me, though.
Like most people do with ID3 tags for MP3 audio files (and similar in M4A/MP4 etc.), I also keep my M4V/MP4 video files properly tagged with metadata.
Fortunately, Kodi v18 and later support reading these embedded tags. Unfortunately, this is now disabled by default, because apparently many preexisting files have bad data stored in their tags and their users did not notice before.
I would like to be able to combine the best of both worlds, offline and online. I think this would be best achieved with an ID of some sort embedded into the video file, which could then be used by online scrapers to unambiguously identify the correct resource. URLs are one possible type of ID. That is, much of how Parsing NFO files are used. Therein, the IMDB URL is preferred, because other sites often also store it for reference.
For Matroska video files, Kodi basically first probes for an embedded classic NFO file, then looks for a tag named `IMDBURL` first and `IMDBURL` second to use these for scraping, before it tries `TITLE` in which case it uses this data.
For MP4 video files, Kodi assumes that the embedded metadata should be preferred (and is complete) if either the description or synopsis field is present (FFmpeg terms, in MP4: `desc` and `ldes`). There ios no equivalent for IMDB and TMDB URLs.
I wish I could provide the IMDB title ID or URL within MP4 tags so Kodi can use it to scrape further data from web sources.
Like most people do with ID3 tags for MP3 audio files (and similar in M4A/MP4 etc.), I also keep my M4V/MP4 video files properly tagged with metadata.
Fortunately, Kodi v18 and later support reading these embedded tags. Unfortunately, this is now disabled by default, because apparently many preexisting files have bad data stored in their tags and their users did not notice before.
- https://kodi.wiki/view/Video_file_tagging
- https://forum.kodi.tv/showthread.php?tid=192982
- https://forum.kodi.tv/showthread.php?tid=326340
- https://github.com/xbmc/xbmc/blob/master...FFmpeg.cpp
I would like to be able to combine the best of both worlds, offline and online. I think this would be best achieved with an ID of some sort embedded into the video file, which could then be used by online scrapers to unambiguously identify the correct resource. URLs are one possible type of ID. That is, much of how Parsing NFO files are used. Therein, the IMDB URL is preferred, because other sites often also store it for reference.
For Matroska video files, Kodi basically first probes for an embedded classic NFO file, then looks for a tag named `IMDBURL` first and `IMDBURL` second to use these for scraping, before it tries `TITLE` in which case it uses this data.
For MP4 video files, Kodi assumes that the embedded metadata should be preferred (and is complete) if either the description or synopsis field is present (FFmpeg terms, in MP4: `desc` and `ldes`). There ios no equivalent for IMDB and TMDB URLs.
I wish I could provide the IMDB title ID or URL within MP4 tags so Kodi can use it to scrape further data from web sources.