Giter VIP home page Giter VIP logo

docker-fluent-ffmpeg's Introduction

A Docker image running Ubuntu:trusty with latest Python 3.5, latest FFMPEG (built from source) and latest NodeJS 4.X

For more on Fluent-FFMPEG, see

        https://github.com/fluent-ffmpeg/node-fluent-ffmpeg

Many thanks to all the contributors of that great project.

To Build

docker build -t <imageName> .

To pull and run from hub.docker.com

Docker Hub: https://registry.hub.docker.com/u/dkarchmervue/fluent-ffmpeg/

Source and example: https://github.com/ampervue/docker-fluent-ffmpeg

docker pull dkarchmervue/fluent-ffmpeg
docker run --rm -ti -v ${PWD}:/work dkarchmervue/fluent-ffmpeg node your-nodejs-script.js
# Image can also be used for ffmpeg/python calls:
docker run --rm -ti dkarchmervue/fluent-ffmpeg ffmpeg -version
docker run --rm -ti -v ${PWD}:/work dkarchmervue/fluent-ffmpeg ffmpeg video.mp4 ...
docker run --rm -ti -v ${PWD}:/work dkarchmervue/fluent-ffmpeg python your-python-script.py
docker run --rm -ti dkarchmervue/fluent-ffmpeg bash

Example

As an example, the nodeJS script using fluent-ffmpeg to split a video

# Pull image
docker pull dkarchmervue/fluent-ffmpeg

# Get example files and build new image
git clone https://github.com/ampervue/docker-fluent-ffmpeg
cd example
docker build -t split .

# Mount current directory on container so that file can be written back to host
# Assuming videos are on current directory
cd to/directory/with/videos
docker run --rm -ti -v ${PWD}:/videos split /videos/c1.mp4 5 10 /videos/out.mp4
ls out.mp4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.