Edrock200 53 Posted June 2, 2021 Posted June 2, 2021 (edited) Is there any documentation that I could reference to the Emby Media Scanner workflow? E.g. Enumerate folders and files Compare modtime of file Compare modtime of folder If delta add file to queue Ffmpeg queue files for media info Process plugin1 priority 1 Process plugin2 priority 2 The above is what appears to happen based on my basic understanding of the debug logs. Etc The reason I'm asking is I would like to mergerfs in a local path in which a custom poster app writes posters to with the cloud mounted media, and point emby to the mergerfs folder. Mergerfs has numerous options to include which modified timestamp to show for merged folders, but it's not clear to me if emby cares about the parent folder timestamp of a movie, or just the actual media file itself, and I don't want emby to re-ffmpeg the same media constantly as posters are updated to minimize my api hit costs. Thanks in advance for any insight you can provide. Ed Edited June 2, 2021 by Edrock200
Luke 42079 Posted June 5, 2021 Posted June 5, 2021 Quote The reason I'm asking is I would like to mergerfs in a local path in which a custom poster app writes posters to with the cloud mounted media, and point emby to the mergerfs folder. Hi, can you please explain this a little bit more? I don't quite understand what you're hoping to do. Thanks.
Edrock200 53 Posted June 23, 2021 Author Posted June 23, 2021 On 6/5/2021 at 1:47 PM, Luke said: Hi, can you please explain this a little bit more? I don't quite understand what you're hoping to do. Thanks. Basically, I'm trying to determine what triggers emby to decide that a media file has changed, and requires full reprocessing (ffmpeg query, etc.) So heres an example scenario which mirrors mine, just changed paths to make it easier to explain: /mnt/media - Read only media files /mnt/meta - Customer Posters/nfo files/srts/etc. mergerfs /mnt/meta=RW:/mnt/media=RO /mnt/unionfs - so now unionfs is a merger of the two underlying folders, so nfos, srts, etc appear sideloaded next to the media. Emby points to /mnt/unionfs/... for libraries. So lets say I have /mnt/media/Movies/MovieA/MovieA.mkv and /mnt/meta/Movies/MovieA/poster.jpg, /mnt/unionfs/Movies/MovieA will show both MovieA.mkv and poster.jpg. Depending on the mergerfs configuration, the modify timestamp on the folder /mnt/unionfs/Movies/MovieA could mirror that of /mnt/media/Movies/MovieA or of /mnt/meta/Movies/MovieA, and both would be different as they aren't necessarily created at the same time. So I'm trying to figure out if Emby cares about this folder timestamp, and/or how it determines that a Media item has changed, so I can configure my merger to minimize reprocessing of media that has already been processed. Hope this clarifies a bit. Thanks in advance. -Ed
Luke 42079 Posted June 23, 2021 Posted June 23, 2021 Quote what triggers emby to decide that a media file has changed The date modified timestamp during the normal library scan.
Edrock200 53 Posted June 24, 2021 Author Posted June 24, 2021 On 6/23/2021 at 12:01 PM, Luke said: The date modified timestamp during the normal library scan. Thank you. This is of the media file itself or of the parent folder as well?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now