Playlist maps rather directly to the MLT playlist, which is simply an ordered list of media objects. It was added before Shotcut had a timeline because it was the next logical step in development before I even decided to tackle a timeline. Development was always in the open and went like this in the early years:
cross-platform player capable of playing MLT XML mulitrack compositions (2011)
There is a design document where I have planned to change Playlist to Library with virtual folders, media type filters, and search. This is not a comprehensive cross-project library. Rather, there is a plan to add a Files panel that is like a media-savvy file browser that indexes metadata ala Kyno.
Just to be clear. I use the playlist as my main instrument to bring all the clips in order (just sort them by date tbh). And I also apply filters to the clips.
Everything perfect the way it is. To do it in this way is an outstanding feature of shortcut compared to others.
I just miss an information regarding a clip which is in there twice. Because then they are played twice obviously.
Either when trying to add it twice or as a visual indicator somewhere at the clip in the playlist.
I think this would would be an important consideration. If i have a 2 minute clip and I split it in half. and I put the first minute as a clip in the playlist and the second minute as another clip in the playlist - are those a duplicate?
For split sections of clip, canât it be just renamed with a number by the time order, like example.mp4 should be example 1.mp4, example 2.mp4 and so on. It shouldnât be considered as duplicate.
So from what I understand a playlist is basically a very simple form of timeline, whereas a media bin is a file management thing. So the argument to add a warning in the playlist is pointless. Rather there should be a media bin tab separately that has those specific features.
I am open for any kind of solution. Even though I consider a media bin to be an additional step, it could work when the media bin then gives in an easy way and indication if a clip is already used.
Then I could add all clips in a folder to the media bin multiple times. There will be no duplicates, but only new files will be added and the indicator could tell me then which are not yet used (the new ones).
A duplicate is only when it is the same file, and the in and out points are the same (most sub-clips will not trigger this). âfileâ is determined by a hash that Shotcut already generates automatically for each file based on its contents. That means it can identify the same file with a different name or path.
Add a new menu item in the Playlist (hamburger) menu button: Find Duplicates. You are able to add a custom keyboard shortcut for this in the usual designated place for this.
If no duplicates are found, show a status message (in the center next to the player tabs where we show all status messages): No duplicates found.
If there is only 1 duplicate show a dialog:
Title: Playlist Duplicate
Message: The file {file name without path} is duplicated in the Playlist. Do you want to remove the second one?
Buttons: Yes or No
If there are more than 1 show a dialog:
Title: Playlist Duplicates
Message: Select the duplicates you want to keep:
A list of unique file names and un-selected checkboxes (looks similar to hardware encoder config)
Buttons: OK and Cancel
If OK, for each un-selected file name, remove every redundant playlist item (based on its hash code and in & out points).
First of all thanks a lot for your efforts to create the design proposal!
To do it with a manual requested check will work for me. I could then add all relevant files from my folders and let shortcut remove all the duplicates. So all the new ones are added and I donât miss a clip.
In case of several duplicates, assuming there are three times duplicates with each two identical playlist items: will then all six show up or only the three duplicates (like in your example with only one playlist items)?
Ah, I have made a reasoning error. If a clip was already adjusted (In/Out markers) the same file wonât appear as duplicate.
A duplicate like you have described will only happen if you manually copy and paste the same clip, but not when you add a new file to the playlist (assuming all existing ones in the playlist have been marked In/Out already).
Add a Playlist an opt-in setting Automatically Check For Duplicates that reuses all of the above logic and triggers when adding anything to the playlist except:
It limits the scope to only the files being added.
It does not show a status message about no duplicates.
Ignore my comment about the hash because that might be confusing. I already stated the definition of duplicate that you can re-read it. Keep in mind that even an unedited clip has an implied in and out point equal to the beginning and end of the clip. Otherwise, I do not understand your questions, which suggests that this design might not be what you ultimately want.
I would like to see if I have used a clip twice in the playlist. I change In/Out of most of the clips, so when In/Out is considered and the same clip is added, then this clip is not marked as a duplicate.
You did not confirm my last comment and only continue to make things confusing.
âClipâ is an overloaded term and should be avoided for clarity and accuracy. For example, it can simply be a block on the timeline or a playlist item and not necessarily backed by a file as in a âcolor clipâ or âtext clip.â
I tried to clearly define âduplicate playlist itemâ two different ways with no clear yes or no answer from you. Define âduplicate playlist itemâ without using the words âclipâ or âhash.â