使用ffmpeg提取中间位置的关键帧

for i in ../../video/*.mpeg; do ffprobe -i "$i" -show_entries format=duration -v quiet -of csv="p=0"|xargs -I {} echo "{}/2"|bc| xargs -I{} ffmpeg -i "$i"  -ss {} -vframes 1  ../../video-frame/end/"$(basename "$i" .mpeg)".jpg ; done
posted @ 2023-02-25 10:32  海_纳百川  阅读(73)  评论(0编辑  收藏  举报
本站总访问量