Replies: 2 comments
-
|
Hi. Please see the FAQ. LosslessCut was not designed for completely automated batch operations. You're better off using some external tool for completely automating everything. That being said, I will help you to improve your workflow to make it faster/easier (Note: use the next upcoming nightly version which includes some changes):
Now for every file you want to do this, you repeat steps 2, 4, 5, 6, 7, 8, 9 Note: I will also add the following new keyboard actions:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks very much. I'll have a shot at implementing these steps.
Again... I REALLY LOVE LosslessCut!
…------ Original Message ------
From "Mikael Finstad" ***@***.***>
To "mifi/lossless-cut" ***@***.***>
Cc "ugfrog" ***@***.***>; "Author" ***@***.***>
Date 1/29/2026 7:02:11 AM
Subject Re: [mifi/lossless-cut] Session automation of steps common
across new MP4 files (Discussion #2699)
Hi. Please see the FAQ. LosslessCut was not designed for completely
automated batch operations. You're better off using some external tool
for completely automating everything.
That being said, I will help you to improve your workflow to make it
faster/easier (Note: use the next upcoming nightly version which
includes some changes):
(Only once:) I'll implement a new setting for import chapters, choose
"always"
Run toggleStripAll keyboard action to deselect all tracks (I will
improve this action in the next version)
(Only once:) Click "Filter tracks" (top right), enter the expression
track.codec_type === 'video' || track.codec_type === 'audio'
Run toggleStripCurrentFilter keyboard action (will select only audio and
video tracks)
Run deselectAllSegments keyboard action
Run selectSegmentsByExpr keyboard action (new action)
Paste the expression segment.label === 'My label' && segment.duration <
5 (from your clipboard)
Press Enter
Export+merge
Now for every file you want to do this, you repeat steps 2, 4, 5, 6, 7,
8, 9
Note: I will also add the following new keyboard actions:
selectSegmentsByLabel
selectSegmentsByExpr
labelSelectedSegments
mutateSegmentsByExpr
—
Reply to this email directly, view it on GitHub
<#2699 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMMHC5FRU3EUNVKPMNQ27D4JIHGHAVCNFSM6AAAAACQ7LCV36VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNRUGA3DQOI>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I love LosslessCut, having only found it a few days ago. THANK YOU for sharing it!
I've researched and tried to learn how to use "Filter Tracks", but can't get it to work well or work consistently. I'd like to see an option to automate common steps, like removing labeled advertisement segments from MP4 files, as follows...
Current workflow:
Drop MP4 into the DROP FILE(S) window.
Select "Import chapters".
Click on the upper left-hand corner button called "Tracks (4/5)" (in this example).
In the Tracks screen, click on any NON-video and NON-audio icons to DE-select them, leaving only "video" and "audio" tracks to be kept. Click the upper right-hand "X" to keep choices.
In the right-hand "Segments to export:" column, manually DE-select every "Advertisement" segment, leaving only the Video segments.
Click on the "Export+merge" button to let LosslessCut do its work.
Proposed workflow (upon launching LosslessCut the first time):
For each new LosslessCut session, basically go through the selection steps above (PLUS number 4, below), but in a recording mode which, based on user selections, would create a template for that LosslessCut session which would execute the (now recorded) steps performed by the user for every file dropped into the DROP FILE(S) window during that LosslessCut session. The user would make choices for each of these one-time steps to record the template's contents:
Result:
After having performed the "record-the-steps" exercise when first opening LosslessCut, the user would subsequently just have to drop a new file into the DROP FILE(S) window, then when the "Export+merge" is finished, just press the "Close" button, saving many, Many, MANY clicks per file.
Note
Even if the Proposed workflow recording session required the user to select (from a list of DE-selected tracks) the ones the user wants to always use ("video" and "audio"), and another decision-making item to select (from a list of DE-selected segments) "Video", that would be fine. The method of selecting the items isn't that important; whatever's easiest for you to code. But the result would be a HUGE savings of time for someone with thousands of MP4s to work on.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions