
scottweston/ffmpegscottweston/ffmpeg是一个基于Alpine Linux构建的轻量级ffmpeg镜像,大小仅40MB,内置ffmpeg 2.6.3版本。该镜像专注于提供精简高效的音视频处理能力,适用于需要在容器环境中运行ffmpeg的场景。
查看ffmpeg版本及配置信息:
bashdocker run --rm -it scottweston/ffmpeg
输出示例:
ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (Alpine 4.9.2) configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libmp3lame --enable-librtmp --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-x11grab --disable-stripping --disable-static --enable-vaapi --enable-libopus --disable-debug libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100
将RTSP流转换为静态JPG图片并持续更新:
bashdocker run -d --restart=always -v /var/www/html/outside.jpg:/data/output.jpg \ scottweston/ffmpeg -nostdin -rtsp_transport udp -y -threads 1 -analyzeduration 30 \ -i rtsp://rtsp-proxy/proxyStream-1 -r 1 -updatefirst 1 -f image2 \ -s 1280x720 /data/output.jpg
参数说明:
-d:后台运行容器--restart=always:容器退出时自动重启-v /var/www/html/outside.jpg:/data/output.jpg:挂载宿主机目录,将输出图片保存到宿主机-nostdin:禁用标准输入-rtsp_transport udp:使用UDP传输RTSP流-y:覆盖输出文件-threads 1:使用1个线程-analyzeduration 30:分析流的时长(秒)-i rtsp://rtsp-proxy/proxyStream-1:RTSP源地址-r 1:每秒1帧-updatefirst 1:首次更新后持续更新文件-f image2:输出格式为图片序列-s 1280x720:输出图片分辨率/data/output.jpg:容器内输出路径(对应宿主机挂载路径)


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务