Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (50 sloc) 1.01 KB
label: Split and Stitch Demo
inputs:
- name: input
label: Input File
type: string
required: true
- name: output
label: Output File
type: string
required: true
tasks:
- name: input
type: var
value: ${input}
- name: outputDir
type: filePath
filename: ${output}
- name: chunks
type: vsplit
input: ${input}
chunkSize: 10s
- name: chunks
type: map
list: ${chunks}
iteratee:
type: var
value:
start: ${item.start}
end: ${item.end}
output: ${outputDir}/chunk_${itemIndex}.mp4
- type: each
list: ${chunks}
iteratee:
type: ffmpeg
options: [
"-y",
"-ss", "${item.start}",
"-i", "${input}",
"-to","${item.end}",
"${item.output}"
]
- name: chunkPaths
type: map
list: ${chunks}
iteratee:
type: var
value: ${item.output}
- type: vstitch
chunks: ${chunkPaths}
output: ${output}
You can’t perform that action at this time.