mirror of
https://github.com/sismics/docs.git
synced 2024-12-25 20:53:48 +01:00
fix travis build
This commit is contained in:
parent
52065dda6b
commit
ab69e502da
@ -38,7 +38,7 @@ public class VideoUtil {
|
||||
public static BufferedImage getThumbnail(Path file) throws Exception {
|
||||
List<String> result = Lists.newLinkedList(Arrays.asList("ffmpeg", "-i"));
|
||||
result.add(file.toAbsolutePath().toString());
|
||||
result.addAll(Arrays.asList("-vf", "\"thumbnail\"", "-frames:v", "1", "-f", "mjpeg", "-"));
|
||||
result.addAll(Arrays.asList("-vf", "thumbnail", "-frames:v", "1", "-f", "mjpeg", "-"));
|
||||
ProcessBuilder pb = new ProcessBuilder(result);
|
||||
Process process = pb.start();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user