Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save q8f13/481afded883b5de8a74ff8c4b928c8c8 to your computer and use it in GitHub Desktop.
Save q8f13/481afded883b5de8a74ff8c4b928c8c8 to your computer and use it in GitHub Desktop.
通过导出的“时间-字幕”文本文件,将对应的视频文件导出视频帧截图
#!/bin/bash
t=`awk '{ print $1 }' Assets/subtitles.txt`
n=1
for v in $t;
do
# echo $v
`ffmpeg -ss $v -i Recordings/movie0702.mp4 -vframes 1 -q:v 2 $n.jpg`
n=`expr $n + 1`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment