The file genre is set from the directory name, for tv shows (ie, /TV Show S01/tv. will have the genre TV Show), and according to the movie's size (ie, 1080p Movies, 720p Movies, and XviD Movies).įor Plex Media Server users, you can pass the command-line option -plex to automatically rename the file after conversion following the recommended file name convention.For TV Show episodes, the metadata name is a concatenation of the directory (removing a reference to the season number, in the format Sxx) with the season and episode number, ie, both /TV Show S01/tv. and /TV Show/Season 1/tv. will have, after conversion, the name TV Show S01E01.Įpisode and season information is captured from the file name, in the formats S01E01 or 1x01 (case insensitive).In this situation the name is obtained from the 'grandparent' folder, ie, the file /Home Movie 1/Season 1/movie.mp4 wil have the name on metadata set to Home Movie 1. An exception to this is when the directory name has the format Season XX.The file metadata name is set according to the file's directory name, ie, the file /Home Movie 1/movie.mkv is converted to /Home Movie 1/movie.mp4 and the name on metadata is set as Home Movie 1.If the data can't be found on neither site, there is a fallback for how metadata is set: Most metadata will be filled, including the file's artwork, so it displays a nice image on iTunes library. Metadata can be obtained automatically from ( ) (for movies) or from ( ) (for TV show episodes).īoth fall back to ( ) for necessary information. Note: the 2 is an mkvinfo id when extracted from an MKV movie) /Home Movie 1/movie.2.por.srt (language 'Portuguese'./Home Movie 1/movie.srt (language 'Unknown').Language codes should be ISO 639-3 codes (mostly, I haven't quite figured all the languages yet =)įor the movie file /Home Movie 1/movie.mkv, the following subtitle files are loaded:.Subtitles with appended language code will have the correct language set in metadata.imdb Gather data from IMDB (optionally specifying movie id)Įxternal subtitles must be in SubRip (srt) format and have the same name as the file, optionally appending the language's code ie, for movie /Home Movie 1/movie.mkv, will load subtitles from file /Home Movie 1/movie.srt or /Home Movie 1/movie.mkv f, -ffmpeg LOCATION Set path to ffmpeg binary If used with -width, can result in a different aspect ratio height NUMBER Resize the video to the specified height. If used with -height, can result in a different aspect ratio width NUMBER Resize the video to the specified width. e, -episode NUMBER Set the episode number for TV Shows in case folder/file naming scheme doesn't contain right episode number s, -season NUMBER Set the season number for TV Shows in case folder/file naming scheme doesn't contain right season Set the episode number padding length (ie, 3 for 001, 002, etc.) use-absolute-numbering Use absolute numbering for TV Show episodes (specially useful for cartoons) no-cleanup Don't cleanup the source files after processing no-interactive Perform all operations without user intervention, using sensible defaults no-online-metadata Don't fetch metadata from online services (IMDB or TheTVDB) no-metadata Don't add metadata (implies -no-online-metadata) no-transcoding Don't transcode video or audio plex Rename file(s) to Plex Media Server recommended format ![]() os Download subtitles and infer IMDB ID from itunes Add processed file to iTunes library, if it isn't present yet d, -dir DIRECTORY Process all files in DIRECTORY recursively ![]() Only keep audio and subtitles in the specified languages tvdb_id id Set a specific id for fetching metadata from TheTVDB imdb_id id Set a specific id for fetching metadata from IMDB i, -id id Set a specific id for fetching metadata from online services must be provided unless the -d (-dir) switch is present. Uses Subler's command line interface to add the subtitles and set the iTunes metadata tagsĬommand line usage Usage: apple-tv-converter.Uses ffmpeg to encode video and audio, as well as extracting embedded subtitles.Now, it also supports automatically downloading subtitles from and, in the same process, infering the movie's IMDB id for metadata. Supports embedding subtitles and sets metadata according to the media file. ![]() Command line utility to convert media to a format playable on the AppleTV.
0 Comments
Leave a Reply. |