Skip to content

ampervue/docker-python34-ffmpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-python34-ffmpeg

A Docker image running Ubuntu:trusty with Python 3.4 and latest FFMPEG (built from source)

Python 3.5

Use newer https://github.com/ampervue/docker-ffmpeg

To Build

docker build -t <imageName> .

To pull and run from hub.docker.com

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

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

docker pull dkarchmervue/python34-ffmpeg
docker run --rm -ti dkarchmervue/python34-ffmpeg ffmpeg -version
docker run --rm -ti -v ${PWD}:/work dkarchmervue/python34-ffmpeg ffmpeg -i in.mp4 ...
docker run --rm -ti -v ${PWD}:/work dkarchmervue/python34-ffmpeg python your-mscript.py
docker run --rm -ti dkarchmervue/python34-ffmpeg bash

Example

As an example, the python script uses FFMPEG to download a movie from the web and create a 100x100 thumbnail

# Pull image
docker pull dkarchmervue/python34-ffmpeg

# Get example files and build new image
git clone https://github.com/ampervue/docker-python34-ffmpeg
cd example
docker build -t thumbnail .
docker run --rm -ti thumbnail --input http://techslides.com/demos/sample-videos/small.mp4

# Mount current directory on container so that file can be written back to host
docker run --rm -ti -v ${PWD}:/code thumbnail --file http://techslides.com/demos/sample-videos/small.mp4
ls thumbnail.jpg
open thumbnail.jpg

# To run with bash
docker run --entrypoint bash -ti thumbnail

About

Docker image with Ubuntu 14.04, Python 3.4 and FFMPEG (built)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages