fix travis build

This commit is contained in:
Benjamin Gamard 2018-03-02 19:43:28 +01:00
parent 52065dda6b
commit ab69e502da

View File

@ -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();