Metadata
1. Metadata Providers
Every so often, Jellyfin does not automatically detect the movie/show you just added to your library. In that case, you can use the Internet Movie Database (IMDB), as well as The Movie Database (TMDB) as metadata providers. Simply head over to each site, search for your movie and in the URL you will find the movie ID
string, you need to specify in Jellyfin.
E.g. for 2001: A Space Odyssey the URLs look like this:
https://www.imdb.com/title/tt0062622/?ref_=fn_al_tt_1
https://www.themoviedb.org/movie/62-2001-a-space-odyssey
The highlighted strings are the IDs of the movie, which are unique identifiers, allowing Jellyfin to lookup all the missing metadata on them. If you are adding a movie series, e.g. Harry Potter, you can also specify a TheMovieDb Box Set Id
. Luckily, you don't have to do that manually. Simply provide the TMDB movie ID as usual and the Box Set ID will be added automatically (if the movie is part of a series).
2. Manually editing a files Metadata
Sometimes when you acquire a video source, it can happen, that the metadata tags for it's video etc. are packed with unnecessary comments and ads. To remove them, you can use mkvtoolnix for MKV
files. Simply run the following command, replacing the movie name with the one you want to query:
mkvinfo 'Filmname'
The output for then looks something like this:
+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ Maximum EBML ID length: 4
|+ Maximum EBML size length: 8
|+ Document type: matroska
|+ Document type version: 4
|+ Document type read version: 2
+ Segment: size 1820877305
|+ Seek head (subentries will be skipped)
|+ EBML void: size 4044
|+ Segment information
| + Timestamp scale: 1000000
| + Multiplexing application: libebml v1.3.0 + libmatroska v1.4.1
| + Writing application: mkvmerge v6.5.0 ('Some Text') built on Dec 31 0000 00:00:00
| + Duration: 01:30:00.000000000
| + Date: Thu Dec 31 00:00:00 0000 UTC
| + Segment UID: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
|+ Tracks
| + Track
| + Track number: 1 (track ID for mkvmerge & mkvextract: 0)
| + Track UID: 0000000000000000000
| + Track type: video
| + Lacing flag: 0
| + Minimum cache: 1
| + Codec ID: V_MPEG4/ISO/AVC
| + Codec's private data: size 50 (h.264 profile: High @L4.1)
| + Default duration: 00:00:00.041708333 (23.976 frames/fields per second for a video track)
| + Language: und
| + Name: Some unwanted information
| + Video track
| + Pixel width: 1920
| + Pixel height: 1080
| + Display width: 1920
| + Display height: 1080
| + Track
| + Track number: 2 (track ID for mkvmerge & mkvextract: 1)
| + Track UID: 1353746707212659340
| + Track type: audio
| + Codec ID: A_AC3
| + Default duration: 00:00:00.000000000 (31.250 frames/fields per second for a video track)
| + Name: Some unwanted information
| + Audio track
| + Sampling frequency: 48000
| + Channels: 2
|+ EBML void: size 1099
|+ Cluster
Now to remove the 'Some unwanted information' metadata, simply run the following commands. Please keep in mind, that you might have more or less tracks containing the metadata you want to remove.
mkvpropedit "Dateiname" --edit track:1 --edit track:2 --set name=""
If you want to remove known metadata from a series of files, e.g. episodes of a show, you can also make a small script:
#!/bin/bash<br></br><br></br>for i in *.mkv; do<br></br> [ -f "$i" ] || break<br></br> mkvpropedit "$i" --edit track:1 --edit track:2 --set name=""<br></br>done
If you want to edit the metadata of e.g., an MP4 file, you can use the version of `ffmpeg` Jellyfin installed in `/usr/lib/jellyfin-ffmpeg/ffmpeg`