Created
July 7, 2020 05:51
-
-
Save q8f13/481afded883b5de8a74ff8c4b928c8c8 to your computer and use it in GitHub Desktop.
通过导出的“时间-字幕”文本文件,将对应的视频文件导出视频帧截图
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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