Movie Trailers and Extras
Movie Trailers and Extras
I know that there is a post processing option to move extra files over "Import Companion Files", however I'm noticing an issue if the any of the files are larger than 200+ mb.
I have an extra file "The Making of-behindthescenes.mkv 212.6 MB" that filebot thinks is the movie file: CAPE_FEAR (1991).mkv. So all of the companion files move except for this one. What's the best way to inform filebot that this is part of the companion fileset and not the movie itself?
Plex identifies companion files in the two following ways:
/Movies
/Avatar (2009)
Avatar (2009).mkv
Arrival-scene.mp4
Bar Fight-deleted.mp4
Performance Capture-behindthescenes.mkv
Sigourney Weaver-interview.mp4
Stephen Lang-interview.mp4
Teaser Trailer-trailer.mp4
Theatrical Trailer #1-trailer.mp4
Theatrical Trailer #2-trailer.avi
or...
/Movies
/Avatar (2009)
Avatar (2009).mkv
/Behind The Scenes
Performance Capture.mkv
/Deleted Scenes
Bar Fight.mp4
Lost Sister.mkv
/Interviews
Sigourney Weaver.mp4
Stephen Lang.mp4
/Scenes
Arrival.mp4
/Trailers
Teaser Trailer.mp4
Theatrical Trailer #1.mp4
Theatrical Trailer #2.mp4
It would seem to make sense to me that if files are grouped inside a movie folder then any file that doesn't match the name of the movie folder should be considered extras etc.
Thanks as always for your help.
I have an extra file "The Making of-behindthescenes.mkv 212.6 MB" that filebot thinks is the movie file: CAPE_FEAR (1991).mkv. So all of the companion files move except for this one. What's the best way to inform filebot that this is part of the companion fileset and not the movie itself?
Plex identifies companion files in the two following ways:
/Movies
/Avatar (2009)
Avatar (2009).mkv
Arrival-scene.mp4
Bar Fight-deleted.mp4
Performance Capture-behindthescenes.mkv
Sigourney Weaver-interview.mp4
Stephen Lang-interview.mp4
Teaser Trailer-trailer.mp4
Theatrical Trailer #1-trailer.mp4
Theatrical Trailer #2-trailer.avi
or...
/Movies
/Avatar (2009)
Avatar (2009).mkv
/Behind The Scenes
Performance Capture.mkv
/Deleted Scenes
Bar Fight.mp4
Lost Sister.mkv
/Interviews
Sigourney Weaver.mp4
Stephen Lang.mp4
/Scenes
Arrival.mp4
/Trailers
Teaser Trailer.mp4
Theatrical Trailer #1.mp4
Theatrical Trailer #2.mp4
It would seem to make sense to me that if files are grouped inside a movie folder then any file that doesn't match the name of the movie folder should be considered extras etc.
Thanks as always for your help.
Re: Movie Trailers and Extras

Re: Movie Trailers and Extras
Okay. I tried adjusting and uncommenting net.filebot.media.clutter.size=900 in the system properties, but filebot still seems to flag "The Making of-behindthescenes.mkv 212.6 MB".
Just in case I also changed: net.filebot.media.clutter.length=PT30M but I checked the file in question and it's only a few minutes long.
What am I missing?
Just in case I also changed: net.filebot.media.clutter.length=PT30M but I checked the file in question and it's only a few minutes long.
What am I missing?
Re: Movie Trailers and Extras
I am using the following sample file:
I have set the following settings:
I can now no longer process this file because it's not considered a movie file any more:
What do you get?
What is the full file path of your The Making of-behindthescenes.mkv file? FileBot will match Avatar (2009) and not CAPE_FEAR (1991) in my test case based on the folder name.
You can run filebot -mediainfo -r . --format "{f} | {bytes} | {duration}" to print all the relevant information.
EDIT:
Alternatively, you can have a custom file filter that simply only loads the "largest movie file in its movie folder" to only load the main movie files and then a custom postprocess script that simply moves along the companion files (with Plex standard naming) as well. That'd be easy. Everything is easy if you can assume that files are already well-named, companion files especially so. But it'd also be very limited to one specific use case, hence not something we would make default behaviour.
Console Output: Select all
$ filebot -mediainfo -r . --format "{f} | {bytes} | {duration}"
Avatar 2009/The Making of-behindthescenes.mkv | 356 MB | PT23M9.958S
Properties: Select all
# Configure clutter file heuristics:
net.filebot.media.clutter.size=900
net.filebot.media.clutter.length=PT30M
Code: Select all
0 movie files have been selected alongside 1 companion file.



EDIT:
Alternatively, you can have a custom file filter that simply only loads the "largest movie file in its movie folder" to only load the main movie files and then a custom postprocess script that simply moves along the companion files (with Plex standard naming) as well. That'd be easy. Everything is easy if you can assume that files are already well-named, companion files especially so. But it'd also be very limited to one specific use case, hence not something we would make default behaviour.
Re: Movie Trailers and Extras
Okay. So after looking at it again, it looks like I was looking at the wrong file for length. Apparently the one in question is 1hr 20min long. So, once I changed the length to be over 1hr 30 minutes it no longer had a conflict. I guess I'm gonna have to take that in a case by case basis since there could be movies that would hit that threshold. I don't have a lot of extras/companion files so I don't think it will be too problematic unless you have any other suggestions. Thanks again for the feedback!
Re: Movie Trailers and Extras
Out of curiosity. What is the file path of that extra? So the extra is longer / larger than the actual movie file?
Re: Movie Trailers and Extras
The movie is 2hrs 7min so I'm not sure why it's still getting caught up.
Here's the full path of the files along with their sizes and runtimes:
/video/Movies_WideScreen/CAPE_FEAR (1991)/
Behind the Scenes of the Fourth of July Parade-behindthescenes.mkv 15.8MB 2min 12sec
CAPE_FEAR (1991).mkv 5.81GB 2hr 7min
Deleted scenes-deleted.mkv 20.3MB 9min 15sec
Matte Paintings-behindthescenes.mkv 1.9MB 54sec
Menu Art-other.mkv 4MB 37sec
On the Set of the Houseboat-behindthescenes.mkv 8.2MB 1min 44sec
Opening Credits by Saul Bass-scene.mkv 27.5MB 11min 42sec
Photograph montages-other.mkv 21.5MB 9min 1sec
The Making of-behindthescenes.mkv 212.6MB 1hr 21min 1sec
Theatrical trailer-trailer.mkv 7MB 2min 35sec
The naming and formatting conforms to Plex's standards.
Here's the full path of the files along with their sizes and runtimes:
/video/Movies_WideScreen/CAPE_FEAR (1991)/
Behind the Scenes of the Fourth of July Parade-behindthescenes.mkv 15.8MB 2min 12sec
CAPE_FEAR (1991).mkv 5.81GB 2hr 7min
Deleted scenes-deleted.mkv 20.3MB 9min 15sec
Matte Paintings-behindthescenes.mkv 1.9MB 54sec
Menu Art-other.mkv 4MB 37sec
On the Set of the Houseboat-behindthescenes.mkv 8.2MB 1min 44sec
Opening Credits by Saul Bass-scene.mkv 27.5MB 11min 42sec
Photograph montages-other.mkv 21.5MB 9min 1sec
The Making of-behindthescenes.mkv 212.6MB 1hr 21min 1sec
Theatrical trailer-trailer.mkv 7MB 2min 35sec
The naming and formatting conforms to Plex's standards.
Last edited by begunfx on 16 Jan 2025, 18:41, edited 1 time in total.
Re: Movie Trailers and Extras
FileBot doesn't have a "assume that the longest video file in a folder is the only movie file" default behaviour. We could certainly add additional rules that would just never let you processes files that end with -behindthescenes and leave it at that. There's no chance for false positives in this case at the very least.
Re: Movie Trailers and Extras
Yeah, Plex considers all of the following companion/extras so if they could be excluded that would be great and potentially prevent false positives. Or at least consider any of the items below part of "companion files" post processing.
-behindthescenes
-deleted
-featurette
-interview
-scene
-short
-trailer
-other
-behindthescenes
-deleted
-featurette
-interview
-scene
-short
-trailer
-other
Re: Movie Trailers and Extras
FileBot r10486 will fix the issue.
Re: Movie Trailers and Extras
Great! How do I get the latest for Mac? Do I just re-download on the website? Thanks!
Re: Movie Trailers and Extras
Thank you! Tested and seems to work. 

Re: Movie Trailers and Extras
One hiccup. If I revert changes, the Movie file seems to not revert to it's previous filename and is still in the renamed folder...
I'm using the following custom preset:
I'm using the following custom preset:
Code: Select all
../{n} ({y})/{plex.name}
Re: Movie Trailers and Extras


Console Output: Select all
$ filebot -rename Avatar.2009.mp4 --db TheMovieDB --format '../{n} ({y})/{plex.name}'
[MOVE] from [TEST/Avatar.2009.mp4] to [TEST/../Avatar (2009)/Avatar (2009).mp4]
$ filebot -revert
Revert [TEST/../Avatar (2009)/Avatar (2009).mp4] to [TEST/Avatar.2009.mp4]
Re: Movie Trailers and Extras
I reverted the changes using the UI History>revert selection....mystery solved. When I looked at the history again I see that there are two entries for my Cape Fear rename, it must have run as a separate operation. One of the entries did indeed contain the movie file itself. I reverted that one and all is fine now. My apologies if I jumped the gun on it being an issue. Thanks again for adding an update to correct the false positive. Much appreciated!