
onerahmet/ffmpegA lightweight Docker container for running FFmpeg commands.
This container provides a ready-to-use FFmpeg environment for video and audio processing. It's built on Alpine Linux to maintain a small footprint while including common FFmpeg codecs and tools.
Pull and run the container:
shelldocker pull onerahmet/ffmpeg docker run --rm -v "$(pwd):/workspace" onerahmet/ffmpeg -i input.mp4 output.mp4
The -v "$(pwd):/workspace" flag mounts your current directory to /workspace inside the container, allowing FFmpeg to access your local files.
shelldocker run --rm -v "$(pwd):/workspace" onerahmet/ffmpeg -i input.mp4 output.mkv
shelldocker run --rm -v "$(pwd):/workspace" onerahmet/ffmpeg -i input.mp4 -vn -acodec libmp3lame output.mp3
shelldocker run --rm -v "$(pwd):/workspace" onerahmet/ffmpeg -i input.mp4 -c:v libx264 -crf 23 -preset medium -c:a aac output.mp4
shelldocker run --rm -v "$(pwd):/workspace" onerahmet/ffmpeg -i input.mp4 -ss 00:00:01 -vframes 1 -q:v 2 thumbnail.jpg
The container requires specifying an FFmpeg version during build:
shelldocker build --build-arg FFMPEG_VERSION=n7.1 -t onerahmet/ffmpeg:7.1 .
Available versions can be found in FFmpeg's release tags. For example:
Note: The FFMPEG_VERSION build argument is required. The build will fail if not provided.
/workspace directory inside the containerThis project is licensed under the MIT License - see the LICENSE file for details.
This container packages FFmpeg, a complete, cross-platform solution to record, convert and stream audio and video. FFmpeg is licensed under the LGPL v2.1+ License.
FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project.



manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务