Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ampervue/docker-ffmpeg
Latest FFMPEG (built from source) with Python 3.5
https://github.com/ampervue/docker-ffmpeg
Last synced: 13 days ago
JSON representation
Latest FFMPEG (built from source) with Python 3.5
- Host: GitHub
- URL: https://github.com/ampervue/docker-ffmpeg
- Owner: ampervue
- License: mit
- Created: 2015-12-17T19:52:06.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T03:53:10.000Z (almost 4 years ago)
- Last Synced: 2024-07-03T09:21:07.352Z (4 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Docker image running ampervue/python34 and latest FFMPEG (built from source)
### To Build
~~~~
docker build -t .
~~~~### To pull and run from hub.docker.com
Docker Hub: https://registry.hub.docker.com/u/ampervue/ffmpeg/
Source and example: https://github.com/ampervue/docker-ffmpeg
~~~~
docker pull ampervue/ffmpeg
docker run --rm -ti ampervue/ffmpeg ffmpeg -version
docker run --rm -ti -v ${PWD}:/work ampervue/ffmpeg ffmpeg -i video.mp4 ...
docker run --rm -ti -v ${PWD}:/work ampervue/ffmpeg python your-python-script.py
docker run --rm -ti ampervue/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 ampervue/ffmpeg# Get example files and build new image
git clone https://github.com/ampervue/docker-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
~~~~## Python 2.7
For Python 2.7, use https://github.com/ampervue/docker-python27-ffmpeg