---
title: "Shake来做视频批量截图"
author: "willzh"
date: "2009-11-16T16:48:43Z"
tags: []
slug: "shake"
draft: false
lastmod: "2009-11-16T17:03:44Z"
id: 518317
url: "https://willzh.iteye.com/blog/518317"
---

本来一直用ffmpeg来获取视频文件的截图，后来发现Apple ProRes的格式，ffmpeg怎么都无法解码。只好用Apple Shake本身了。


截取一个mov文件的第一帧的命令是：

```shell

shake -filein sample.mov -t 1 -fileout /tmp/sample.jpg

```

**-t 1** 表示截取第一帧

批量的：

```shell

ls *.mov | while read f; do echo shake -filein $f -t 1 -fileout "/tmp/$(echo $f|sed s/.mov/\.jpg/)";done | sh

```