【发布时间】:2022-05-20 20:23:24
【问题描述】:
我使用 FFMPEG 库每 5 秒使用以下命令生成带有时间码的视频缩略图:
ffmpeg \
-i 20051210-w50s.flv \
-y \
-frames 1 \
-vf " \
select=not(mod(t\,5)), \
scale=320:-1, \
drawtext=fontfile=/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf: \
timecode='00\\:00\\:00\\:00': r=25: fontcolor=white: x=220: y=220: box=1: boxcolor=black@0.5, \
tile=5x2" \
-vsync 0 \
out.jpg
【问题讨论】: