stash
stash copied to clipboard
[Feature] Allow playback of secondary files
Is your feature request related to a problem? Please describe. Playing a non-primary file currently requires switching the primary file.
Describe the solution you'd like With the file refactor (multiple files per scene) and the merge function in the Scene Duplicate Checker, files that are duplicates based on perceptual hash can be conveniently stored in the same scene.
One immediate use case for this is storing different resolutions for the same video in one scene, which avoids the use of live transcoding/scaling that may not be fast enough to play without buffering for larger files (depending on hardware). However, switching playback from the primary file to another file requires redesignating ("Make Primary"). It would be convenient if users could choose which file to play from the UI without redesignating the primary file (which is a more persistent change and affects other processes, such as generating sprites). This would effectively resolve issue #2905, as alluded to by @PhuriousGeorge's comment.
One potential conflict is that this results in two different mechanisms for selecting resolution: (a) selection of a different file (discussed here) and (b) selection of resolution/method for live transcoding in the player. However, I think it would still make sense to enable the user to make a choice of file for playback given storage of videos at different resolutions is an immediate consequence of the way files are handled now.
Describe alternatives you've considered An alternative would be allowing the linkage of levels of the resolution selector in the video player to pre-created transcodes. However, naively, this would be more difficult to implement. Allowing playback of non-primary files for now would satisfy the need to playback videos at different resolutions without needing to alter the existing live transcoding feature.
I need this function too
Need this as well. Related issue: https://github.com/stashapp/stash/discussions/1958