openshot-qt icon indicating copy to clipboard operation
openshot-qt copied to clipboard

Export separate tracks into separate video clips

Open windowshopr opened this issue 1 year ago • 4 comments

(There was a similar issue mentioned #266 a while ago, which I'm reiterating as a possible alternative to my request as I think it's a good feature to consider)

Describe the new feature:/Describe the solution you'd like: I would like to see a feature, perhaps on the export video menu, a way to select "export all separate tracks as separate clips", which does just as it sounds. I have about 30 tracks of sliced-up videos from the main imported video that I'd like to export as individual clips, using the track names as filenames. The solution could still make use of the export video menu, selecting the codec/file type, export location, etc. This would ideally be done as a one-shot solution.

Describe alternatives you have considered: Alternatively, it would be nice to be able to right-click on any track, and choose "export track" to save the track as its own video file. Seeing as the "export video" menu has a start and stop frame option to export a certain chunk of the project, I could envision using the same export video menu, and just pre-populate those fields with the start/stop frames of the current track. This could be done with a multiplication of the start/end time by the frame rate to get the frame numbers (rounded up for start, down for end, in order to mitigate any scene-bleed between the tracks). This would coincide with the previously mentioned issue.

Screenshots: (Optional) None

windowshopr avatar Mar 21 '24 00:03 windowshopr

Hello @windowshopr In the next few weeks we are going to revisit some of the enhancement requests to see if it is something that can be incorporated into OpenShot (future release(s)).

Often, projects that are created with multiple tracks have clips that overlap other clips below them. Meaning the user might be overlaying some text (Title) over a video clip right below it, possibly an image that is animated, etc. How do you see this situation handled? Do you expect OpenShot to completely ignore all other clips on other tracks? How about if a track has blanks for the first 20 seconds and then a few clips, with some gaps between the clips, and then blanks for the rest of the track passed the last clip. Do you expect the first 20 seconds of the Exported video to maintain the blank?

If you can elaborate further, it will help the lead developer when reviewing this enhancement request.

Colorjet3 avatar Jun 23 '24 18:06 Colorjet3

Cool! Thanks for the response.

I would envision that a v1 of this upgrade would only target video tracks, ignoring text, animation, or any other track types. So we could ignore titles or anything else. Could always build further functionality in the future to include other clip types like text/titles, images, animations, etc.

The video clips to be exported can sit anywhere they want on the timeline, it should just export the clips based on their start and end times. For example if there are 2 video clips on the timeline, the first one starts at 0:00:00 and ends at 0:01:00, then there's a empty gap/space on the timeline, then the second clip starts at 0:02:00 and ends at 0:03:00, then the first clip and second clip should be exported where they are, creating 2 video files of the same lengths, extracted at those times, ignoring the gap in the middle.

If some of the clips are just blanks, but are of video types, then a naive approach would be to just export those too as that's sort of "on the editor" of the video to deal with.

In the future, I could see checkboxes on the various clips a user might want to export, or a checkbox to include all other track types, like text, images, etc. that overlay the same time window as the "parent" video clip, but for first iteration and simplicity's sake, just each video clip can be exported as separate video files.

Hope that helps?

windowshopr avatar Jun 23 '24 23:06 windowshopr