Skip to content

Commit

Permalink
Example job for creating test content
Browse files Browse the repository at this point in the history
  • Loading branch information
runabol committed Sep 15, 2023
1 parent ffa02be commit c2f8254
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/aws_create_master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: create test content master
tasks:
- name: stitch the chunks into a single video
run: |
mkdir /tmp/chunks
wget "http://ftp.nluug.nl/pub/graphics/blender/demo/movies/ToS/tears_of_steel_1080p.mov" -O /tmp/chunks/chunk0.mov
for i in 1 2 3 4 5; do
cp /tmp/chunks/chunk0.mov "/tmp/chunks/chunk$i.mov"
done
for filename in /tmp/chunks/*.mov; do
echo "file $filename" >> /tmp/chunks/chunks.txt
done
ffmpeg -f concat -safe 0 -i /tmp/chunks/chunks.txt -c:v copy -c:a copy /tmp/master.mov
image: jrottenberg/ffmpeg:3.4-alpine
post:
- name: upload the final video to minio
run: aws s3 cp /tmp/master.mov s3://$BUCKET_NAME/master.mov
image: amazon/aws-cli:2.13.10
env:
BUCKET_NAME: my-bucket
volumes:
- /tmp

0 comments on commit c2f8254

Please sign in to comment.