Skip to content

Commit

Permalink
Update batch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi authored Jan 31, 2025
1 parent 06cae06 commit 08b0a18
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions batch.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Batch processing ⏩

I get a lot of questions about whether LosslessCut can help automate the same operation on X number of files. For example given a folder of 100 files, cut off 10 seconds from the beginning of every file. LosslessCut can generally not do this, however the good news is that often it's not very hard to automate with a simple script.
I get a lot of questions about whether LosslessCut can help automate the same operation on X number of files. For example given a folder of 100 files, cut off 10 seconds from the beginning of every file, or split each file into 30 second files. LosslessCut was not designed to be a batch processing toolkit and generally cannot not do these things, however the good news is that often it's not very hard to automate with a simple script.

See also [#868](https://github.com/mifi/lossless-cut/issues/868).
See also [#868](https://github.com/mifi/lossless-cut/issues/868). https://github.com/mifi/lossless-cut/discussions/1490#discussioncomment-12008653

## Setup FFmpeg 📀

Expand All @@ -22,7 +22,10 @@ If there's a particular operation from LosslessCut you want to automate across m

## Using AI 🤖

I wish more people were aware of this: large language models like ChatGPT can be incredibly useful for helping non-programmers with simple scripting tasks as well as helping you learn things, and it's free! Basically you just ask the AI to write a script for you to do whatever you need. If it doesn't work, you can continue the conversation with the AI and give it the error messages you received and it will try to help your get it working.
> AI opposers are plentiful - they swore they'd never [kneel before AI](https://github.com/mifi/lossless-cut/discussions/1490#discussioncomment-12014019) — now they're [writing psalms](https://github.com/mifi/lossless-cut/discussions/1490#discussioncomment-12019277) about the [efficiency of neural networks.](https://github.com/mifi/lossless-cut/discussions/1490#discussioncomment-12018982)

I wish more people were aware of this: large language models like ChatGPT can be incredibly useful for helping non-programmers with simple scripting tasks as well as helping you learn things and debug error messages, and it's free! Basically you just ask the AI to write a script for you to do whatever you need. If it doesn't work, you can continue the conversation with the AI and give it the error messages you received and it will try to help your get it working.

Start your sentence with your operating system, e.g. "I am using Windows 10", then try to be so exact and concise as possible to describe what kind of files you have and what you want to do with them to the AI using FFmpeg. Example prompt:

Expand Down

0 comments on commit 08b0a18

Please sign in to comment.