Split into Chunks
Cut a video or audio file into frame-exact parts between a minimum and a maximum length, or a video into one part per shot, and run the next node on each.
The Split into Chunks node cuts a long video or audio file into consecutive chunks. Every chunk is between a minimum and a maximum length that you set, and no chunk overlaps the next. With Cut by: Shots, the node instead cuts a video into one part per shot. Connect an output in Each mode, and the next node runs once for every chunk, so you can transcribe, dub or caption a long recording piece by piece.
When to use it
- Split a long podcast or interview into segments before you transcribe them with Transcribe.
- Cut a long video into short clips for social posts, and process every clip with the same chain of nodes.
- Cut an ad or a music video at its shots, then restyle or upscale each shot on an Each connection.
- Break a recording into parts for Dubbing or Voice Changer, then join the results again with Combine Videos.
Quick start
Add the node
Press Tab on the canvas and choose Video › Cut & Assemble › Split into Chunks.
Connect the media
Wire a video into the Video input, or an audio file into the Audio input.
Set the chunk length
Open the settings panel. Keep Cut by on Part length, or choose Shots to make one part per shot. For part length, set Max chunk length (seconds) and Min chunk length (seconds), and choose an Audio Format.
Connect the next node and run
Connect an output to the next node. A new connection uses Each mode, so the next node runs once for every chunk. Click Run. The chunks appear in the node's results and in the settings panel.
Inputs
| Input | Accepts | What it does |
|---|---|---|
| Video | Video nodes, such as Upload Video and Generate Video | A video to split. |
| Audio | Audio nodes, such as Upload Audio and Reference Audio | An audio file to split. |
Connect at least one input. With both inputs connected, the node splits each one on its own. A file can be up to 3 hours long. A longer file fails before any work is done, so trim it first.
Outputs
| Output | What it carries |
|---|---|
| Video | The video chunks, when a video is connected. |
| Audio | The audio chunks, when an audio file is connected. |
What a connection passes on
| Connection mode | What the next node gets |
|---|---|
| Each (the default for a new connection) | The next node runs once for every chunk, and each run gets its own chunk. |
| Item | The one chunk the connection picks. |
| Bundle | Every chunk at once, for nodes that take several, such as Combine Videos. |
| Selected | The chunk chosen under Output Chunk. |
Connections drawn before Each became the default keep passing one chunk. Workflow JSON written through the API or MCP passes one chunk when an edge has no outputMode. Set "outputMode": "each" on the edge's data to run the next node once for every chunk. See Lists and batching.
To keep the chunks as rows, connect a chunk output to the + input of a List. The List adds a video or audio column with one row per chunk. Nodes after the List then read the chunks like any other list.
Settings
| Setting | What it does |
|---|---|
| Cut by | Part length (the default) cuts chunks between the minimum and the maximum below. Shots cuts a video into one part per shot (see Cutting at the shots). With Shots, the length settings and Audio Format are hidden and not used. |
| Max chunk length (seconds) | The longest a chunk may be. The default is 10 seconds, and the minimum is 1 second. |
| Min chunk length (seconds) | The shortest a chunk may be. The default is 4 seconds. It can be 0, and it is never above the maximum. |
| Audio Format | The file type of the audio chunks: MP3 (the default), WAV or AAC. An AAC chunk is saved as an .m4a file. |
| Output Chunk | Appears after a successful run. Choose Chunk 1, Chunk 2 and so on. It is the chunk that a connection in Selected mode passes on. |
How the chunks are cut
- As long as the maximum allows. Chunks are cut in order, each as long as the maximum. A video chunk is cut on whole frames and rounded down, so it is never longer than the maximum. At 29.97 fps, a 10-second maximum gives chunks of 299 frames, or 9.98 seconds.
- The last chunks are evened out. If the leftover at the end is shorter than the minimum, it is evened out with the chunks before it. Every chunk then stays between the minimum and the maximum.
- The sound never runs past the picture. A video chunk's sound ends at most about 21 ms before its picture does.
- Audio files are cut exactly too. MP3 and WAV chunks are cut on exact samples. AAC chunks are cut on whole audio frames, and the last few milliseconds of the file, under 21 ms, are left out.
- At most 200 chunks. A split that would make more fails before any work is done. The message names the shortest maximum length that fits.
- A file that cannot be split fails with a message. This happens with a file shorter than the minimum, or a file that cannot be cut into chunks between the minimum and the maximum. For example, an 11-second file with a 6-second minimum and a 10-second maximum fails.
For example, a 60-second phone video at 29.97 fps has 1,798 frames. With a maximum of 10 seconds and a minimum of 4 seconds, it makes 7 chunks. The first five have 299 frames (9.98 seconds), and the last two have 152 and 151 frames (5.07 and 5.04 seconds). Without the minimum, the last chunk would be 4 frames long.
Cutting at the shots
With Cut by: Shots, a video is cut into one part per shot. The cuts are measured from the video itself: every decoded frame is scored, and each hard cut starts a new shot. Dissolves and fades are not cuts. A flash held for two or three frames before the picture comes back is not a cut either. A one-frame flash is a cut.
- Each part is cut on whole frames and keeps the video's own sound, which never runs past the picture. There is no minimum length, so a one-frame shot is a one-frame part.
- Shots mode cuts a video only. The Audio input is not used. With an audio file connected, the run fails with a message: disconnect the audio, or cut by part length.
- A video can be up to 30 minutes long, with at most 200 shots. A longer video, or one with more shots, fails with a message. Trim it first.
- The Output Chunk menu shows the start and end of each part. Through the API, the job's output also lists each shot:
shotCountandshots: [{ index, startSec, endSec, durationSec }], in seconds to the millisecond. - A shot's start is placed on the nearest frame. It is exact for a constant-frame-rate video, and within half a frame for a variable-frame-rate video.
Download the chunks
After a run, the settings panel lists the Audio Chunks and, for a video, the Video Chunks. Every chunk stays in these lists, whatever you choose under Output Chunk. Use Select All or Deselect All to choose chunks, then click Download to save them.
Credits
Split into Chunks costs 22 credits per run, whatever the number of chunks. Cutting at the shots costs the same. Each node after it on an Each connection is charged once for every chunk it runs on.
Before the run, the estimate counts the chunks from the input's recorded length divided by the maximum. It can count one chunk more than the run makes, never fewer. When the length is not known, for example for a video URL, the estimate assumes a 10-minute file. When cutting at the shots, the shots are only known once the video is measured, so the estimate assumes one shot every 4 seconds of the input, at most 200. After the run, the chunks are counted exactly.
Tips
- Choose the format for the job. WAV keeps lossless quality. AAC gives smaller files, for example for mobile delivery.
- Process only some chunks. Set a range or a list on the Each connection, for example chunks 1 to 5.
- Pick the chunk that moves on. Output Chunk only changes which chunk a Selected connection passes on. All chunks stay available for download.
- Cut one part only. To take a single section of a video instead of equal pieces, use Trim Video.
Frequently asked questions
How long is each chunk?
Every chunk is between Min chunk length and Max chunk length. The defaults are 4 and 10 seconds. Chunks are as long as the maximum allows, and the last chunks are evened out so that none is shorter than the minimum.
How do I run the next node on every chunk?
Connect an output of Split into Chunks to the next node in Each mode, the default for a new connection. The next node then runs once for every chunk.
How many chunks can one file make?
At most 200 chunks, from a file of up to 3 hours. A split that would make more chunks fails before any work is done, and the message names the shortest maximum length that fits.
Can I download all the chunks?
Yes. After a run, the settings panel lists every audio chunk and video chunk. Select the chunks you want and click Download.
Can I cut a video at its shots?
Yes. Set Cut by to Shots. The node measures the video, finds every hard cut, and makes one part per shot, each with the video's own sound. Videos can be up to 30 minutes long, with at most 200 shots, and the price is the same.
Which audio format should I choose?
MP3 is the default and suits most uses. Choose WAV for lossless quality, or AAC for smaller files. An AAC chunk is saved as an .m4a file.
Related
Transcribe
Dubbing
Combine Videos
Lists and batching
Trim Video
Last updated on
Compose Video
Describe the video you want, and an AI model arranges your connected images, clips and audio into a timed, multi-track composition that Render Video renders.
Shot Cuts
Find where every shot of a video starts and ends, measured from the file itself, and optionally save each shot's first and last frame as images.