Update batch.md

pull/2320/head
Mikael Finstad 9 months ago committed by GitHub
parent 06cae06f4b
commit 08b0a185ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 📀
@ -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:

Loading…
Cancel
Save