-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch process from multiple video files workflow (different cuts) #89
Comments
Hi. I can see it would be nice to be able to drag multiple files (or a directory) and have the files appear on the left side as you pictured here, but why is it necessary to be able to batch cut? why can't you do one file at a time, then cut, then next file? |
Maybe the series have same openings / endings. |
I don't know if this is the correct way to go about this, but I would love to see this feature as well and for the same reason (opening/endings the same). Thank you for such a great piece of software! |
Sorry for the misunderstanding, my request involved setting different IN/OUT points for each loaded clip, and then having one batch-cut process all the files while I go have a warm coffee! But since some people have requested the other way around, you could have the added option of setting the exact same IN/OUT point for every loaded clip. Or even maybe the option to have both varying or static IN, and OUT points, or simple "Apply IN point to ALL" and "Apply OUT point to ALL" buttons so it fits every needs! |
This would be a must. Imagine that you can harvest your folders and then keep on trimming. Just using shortcuts on the keyboard - like Lightroom with pictures. Even better would be an option to overwrite the original file. Flying through files leaving behind much more space on disk and just the needed parts of the videos. |
this is exactly the functionality I was hoping to find in this software: |
Hi, I also need this exact feature. This would be very helpfull as my main use case for this software is processing about 100 videos per day extracting interesting parts and then delete the original. I think the left side panel would be the right place. I think this could be a list, first video is loaded on drag, then if user wants to delete this file, first delete from list and then from storage, if list have any items left auto play next. This would be a list since user can choose to play any file on it at any time. Another use case would be to select multiple files from list and merge. |
@mifi any progress on this one? |
Not yet unfortunately, have been focusing on other issues like customizable keyboard shortcuts (not yet done), and been quite busy with other projects lately. Hopefully will get some time soon! |
Maybe like:
Nice and easy :) Really a life saving with hundreds/thousands of video clips. |
+1 for this. I often have a bunch of 1 minute long clips where I want to cut a short (~10 second) segment out, where the start and end position of that segment vary between clips. Having a way to do them all at once, and especially being able to name the exported videos (I don't think that part has been mentioned so far), would be awesome. I thought about trying to have a go at this myself but it seems like a huge task for someone unfamiliar with the codebase (and frameworks). |
Hi @mifi. Thanks for this new feature. I've tested it and find out two things. You should be able to remove items from list and also items should disappear by default when you trash them. |
Thanks for adding it @mifi! Should we open more specific feature requests for the other things we would like to see as part of this feature (deleting the original files, renaming, etc)? |
I'll put the remaining features the first post. I'm not sure how the "rename" feature would work though |
Currently my workflow is:
It would be awesome if it could instead be:
That would also make it easier to see which videos I've already edited (and then delete the originals), as the names of my videos are generated, and (after LosslessCut appends the trimmed timestamp to them) can get so long that their text is elided. So basically each item in the list you added would be able to be renamed, and that name would be what the export is saved as. |
Can’t you achieve custom naming with the output naming in the export dialog? |
I don't get a dialog when I click export; it just does the export and then shows the notification about cut accuracy. |
Hey Mikael, I also would like to see some sort of "batch cut" where I can cut several files at once but with the same cut points. That's useful if you have files with the same intro/outro or shadow play recordings where the action is always happening at a pre-defined time and therefore can be cut identically. If you have hundreds of files/recordings that would be a huge time saver. Maybe with an option like "use cut points for the whole queue" or something. It could be also achieved via CLI. Cycle through a folder via batch/power shell with cut point parameters or maybe an exported cut config. |
Totally +1. I am currently cutting folders with 20+ Files over 100GB total. I cut them all one by one and now i have to go to each batch object and export. Would be a pleasure to click export and go to sleep to find all my cuts from batch items in place tomorrow. |
Ok I have now fixed so that when a file is removed from the batch list, the next item in the list will be selected |
Implement a toggle for 'process in background'. I edit most of my stuff on an 11-year-old laptop, 2 cuts running can lead to a choppy desktop. 200 4h clips, each need a proxy.
Gonna leave this here. GitHub Etiquette
Footnotes
|
+1 for Mass exporting for batch, that would save time instead of having to wait for 1 to export before proceeding. I could make all my changes and when done do a mass export and go off and spend time with my daughter and come back later to do more with the files. |
+1 for export button to process full batch list - It's essentially what would make it batch, currently it functions the same as one-by-one loading and exporting. It's the only thing this awesome tool is missing for me! <3 |
It's been a long time but I wanted to point out that the next item should auto-play whenever I remove the current item. |
I'm gonna have to disagree with that. I really would not want videos to auto play. I'm also primarily quickly scrubbing through the video and trimming the end. I don't need to have videos auto play. A toggle for this option wouldn't be unhelpful, but it definitely should NOT auto play by default. |
I stand for no autoplay. I wouldn't even make it an option (clutters up options and maintenance). In addition, it helps retain control of your position. The feeling of knowing exactly where you are and what you are doing, staying in flow. Being able to execute 5 keyboard shortcuts with confidence.1 From the user side, pressing space or automating removing and pressing space in one action is easy (on Windows see AHK or Power Automate). Footnotes
|
For what it's worth, if you hit play and then click through the clip, it will continue playing. I do absolutely love that and want that feature to remain. I believe this is how most video players work anyway. I just don't want videos to autoplay on load. I'm not using this as a video player, I'm using it to trim/cut/merge videos. |
I'm not sure if it's possible now to edit a bunch of videos in the batch list and then export them all at once.... I have about 40 videos edited in the batch list and was a little disappointed to find that I have to export one video at a time. |
It is not currently possible unfortunately. As it stands, it really should
not be called batch processing.
…On Wed, Oct 5, 2022 at 1:17 PM Jens Polze ***@***.***> wrote:
I'm not sure if it's possible now to edit a bunch of videos in the batch
list and then export them all at once.... I have about 40 videos edited in
the batch list and was a little disappointed to find that I have to export
one video at a time.
—
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASQKE2HABYX3JYV34FOM2WTWBXA45ANCNFSM4FUDGSSA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Oh my... A one time warning for first time user would be nice, if someone do Batch import the first time like: I was lucky that many of the Videos I've edited have had the same Time Markers so I took the "Last ffmpeg command" and made a batch file on my own with "foreach" aso... Anyway it's a great tool and lightning fast!!! Apropos Batch: |
Thanks, I'll add it to the readme/features.
No, but if you select "close currently opened file" (settings) or keyboard shortcut "D" will close the current file and remove it from batch. |
Thank you for your comment. :) Oh and... EDIT: |
I think because the player will move the playhead ahead of the keyframe, then if you press alt+left it will go to the previous keyframe. then you're not able to press it fast enough so it will keep going to the same keyframe |
did you completed this project or continuing ? |
Is there any information if this feature is still planned? I joined the thread almost 2 years ago and had much hope it could be implemented in a foreseeable future. LLC has so far the fastest workflow for my use case of dropping in 30-100 files, cutting highlights to a merged file and go to the next file. With a simple "cut/merge/export all changed files from the batch list" i could sit down once a week, do my videos and export them over a night or two instead of waiting for each cut before i can process the next file on a daily basis. Would love to know if it will be implemented someday or if i have to look out for a new toolset. I would consider paying you for this as i dont know of any (even premium) tool that allow this in the so far perfect fashion LLC does. |
I have tried a few times to implement it, only to realize it's a really big undertaking to implement it properly. This is because LosslessCut was never designed to run batch operations in the first place. From the time a file is opened, until it is exported, a lot of things happen, many of which require user interaction:
Now UI state has loaded and it will take a while for everything to settle:
So is it possible? Yes. But it's a huge rewrite to make all this code run in a sequential manner. Alternatively it might be possible to implement as a "quick hack", where we simulate the button presses or actions needed for each of these steps. One major drawback is that we might be clicking the required button too early or too late, and there might be some dialog box or error message blocking the next action, causing the batch operation to get stuck. I think it will be implemented eventually, because it's the number 3 most requested feature, but I need to set aside a lot of time to do the rewrite, in order to not break anything (and still allow the current non-batch workflow to also work correctly). |
Thank you for the bigger insight. Sounds like i imagined the stuff behind the scenes right. I can only speak for my workflow and it would even help if some kind of automation happens depending on events. At the moment i have bound some of my plenty mouse buttons with the following functions and can handle my complete batch list just with 5 Buttons and the wheel. If i had any form of hooks or event detection i could even automate it myself after the cutting. Most of the time its "load first file from batch -> set input output markers -> merge-export -> cleanup -> load first file from batch > set input output markers ->repeat". So basically what my dream workflow would be to set the input output markers on each file and then the auto-export cycles again, exporting each and hopping to the next file (without cleanup to prevent possible "EBUSY" errors). I automated it a while ago in a way with auto key presses, assuming the longest export time i can experience, but thats very inefficient as 100 files each "exporting" 10 minutes even if some would finish in 30 seconds and other shenanigans like some window stealing focus for whatever reason. A batch feature i imagine demands from the user to be aware that everything will be exported with the settings he provided and every file in the edit exports as he left it in the batch list. But im happy to hear its on your mind. Keep up the very good work! |
@mifi Do you think it's possible to automate these actions by CLI. Albeit, it's still one-by-one process, but I'll still takes that than requiring user input (clicking) throughout the process. The idea is that since one could already load a project file using cli, additional parameter like
This will export all segments same as the source project folder.
|
part of the problem is that it's very hard to implement open, export and autoclose due to lack of coordination as described above (we don't know when the opened file is ready to export). I've added a way to control llc using keyboard shortcut actions from the command line, e.g. call keyboard shortcuts like see example here: https://github.com/mifi/lossless-cut/blob/master/cli.md#batch-example |
have also added a new HTTP API that will allow waiting for certain actions to complete |
Thoughts on adding an Export & Next button to the export dialog when in "batch mode?" I've just had a play in batch mode and found this workflow quite handy (after going through and making different cuts to the dozen or so files I opened):
(update: I see the latest version has So the improvement would be the export dialog having an Export & Next which does the same thing as Export but then advances to the next item in the batch list. Or, perhaps better: a keyboard binding like SHIFT + E which does step 1, 2, & 3 without displaying the dialog? @mifi would this be practical? Or does the challenges described in #89 (comment) apply here, too? (is it too hard to know when the export is finished, for example) If you think it's practical and are supportive of either approach (preferably the keyboard binding one), I'm happy to work on a PR. |
What I have in mind is to be able to import many video files at once in order to batch-process them.
Dragging multiple files could open a panel with a select list to individually set the in/out points of every shot and have a BATCH-CUT button to export the files. Shots with no set new in or out points would be ignored. With keyboard shortcuts like ARROW UP and ARROW DOWN to navigate the list, it would allow me to go through a batch of files SO FAST!!!!!! An editor's dream come true!!!!
Edit by @mifi:
Features:
For being able to run the exact same cut or operation on multiple files, see this separate issue #868
The text was updated successfully, but these errors were encountered: