+
Skip to content

ctian1/chronodocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chronodocker

Amazon ECS Task for stitching together video clips using FFMPEG

With the default FFMPEG parameters, the clips must be encoded exactly the same way so that FFMPEG can stitch the clips together as quickly as possible.

How to use

First, set up this repository as an ECS task in AWS

Then, run the task from python:

import boto3, json

ecs = boto3.client('ecs')

clips = {
    clips_path: "clips/",
    render_output: "renders/full_video.mp4",
    clips: [
        "intro.mp4",
        "clip1.mp4",
        "clip2.mp4"
    ]
}

ecs.run_task(
    networkConfiguration={
        'awsvpcConfiguration': {
            'subnets': [
                '[ subnet ]',
            ],
            'assignPublicIp': 'ENABLED'
        }
    },
    overrides={
        "containerOverrides": [
            {
                "name": "[ ecs task name ]",
                "environment":[
                    {
                        "name": "RENDER_JSON",
                        "value": json.dumps(clips)
                    }
                ]
            }
        ]
    },
    launchType="FARGATE",
    cluster="default",
    taskDefinition="[ ecs task name and version ]"
)

About

Amazon ECS Task for stitching video clips together using FFMPEG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载