stash icon indicating copy to clipboard operation
stash copied to clipboard

[Feature] Allow playback of secondary files

Open throwaway2257 opened this issue 11 months ago • 2 comments

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.

throwaway2257 avatar Mar 01 '24 23:03 throwaway2257

I need this function too

BugGeeker avatar Mar 02 '24 02:03 BugGeeker

Need this as well. Related issue: https://github.com/stashapp/stash/discussions/1958

laurus-lx avatar Mar 07 '24 21:03 laurus-lx