Skip to content

An Alpine based image with ffmpeg version 4.4.built with gcc 10.3.1 (Alpine 10.3.1_git20211027)

License

Notifications You must be signed in to change notification settings

bruno-sf/ffmpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ffmpeg

An Alpine based docker image multiarch with ffmpeg version 4.4.built with gcc 10.3.1 (Alpine 10.3.1_git20211027). Link:https://hub.docker.com/repository/docker/brunoferreira/ffmpeg

Why ffmpeg?

Based on https://github.com/bruno-sf/conversor-webm-mp4

ffmpeg

Prerequisites

  • Docker 🐋

Usage

Just use it like executing ffmpeg locally.

Basic Transcode:

docker run --rm -it \
  -v $(pwd):/conversor \
  brunoferreira/ffmpeg \
  -i /config/input.mkv \
  -c:v libx264 \
  -b:v 4M \
  -vf scale=1280:720 \
  -c:a copy \
  /config/output.mkv

Bulk compress .mp4 files in the current directory:

 docker run --rm -it -v ${PWD}:/conversor ffmpeg find /conversor -maxdepth 1 -type f -name "*.mp4" -exec ffmpeg -i {} -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -b:v 256k -bufsize 256k {}.mp4 -hide_banner \;

Tips 💭

Use it with alias, for example:

alias @vid_conv_mp4_to_mp4_bulk_compress='docker run --rm -it -v ${PWD}:/conversor ffmpeg find /conversor -maxdepth 1 -type f -name "*.mp4" -exec ffmpeg -i {} -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -b:v 256k -bufsize 256k {}.mp4 -hide_banner \;'

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

An Alpine based image with ffmpeg version 4.4.built with gcc 10.3.1 (Alpine 10.3.1_git20211027)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published