iowatcher: Switch to ffmpeg for movie encoding. Chrome and vlc like these better.
authorChris Mason <chris.mason@fusionio.com>
Tue, 21 Aug 2012 13:18:15 +0000 (09:18 -0400)
committerChris Mason <chris.mason@fusionio.com>
Tue, 21 Aug 2012 13:18:15 +0000 (09:18 -0400)
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
iowatcher/main.c

index 760fffb5f5ffdc857994bb088e8cd0dad56d7263..bc6132ad0e65da23fcd0820dde348ebad04fa5c2 100644 (file)
@@ -600,9 +600,8 @@ static void convert_movie_files(char *movie_dir)
 static void mencode_movie(char *movie_dir)
 {
        fprintf(stderr, "Creating movie %s\n", movie_dir);
-       snprintf(line, line_len, "mencoder mf://%s/*.png -mf type=png:fps=16 -of lavf "
-                "-ovc x264 -oac copy -o %s",
-                movie_dir, output_filename);
+       snprintf(line, line_len, "ffmpeg -r 25 -y -i %s/%%10d-%s.svg.png -b:v 250k "
+                "-vcodec libx264 %s", movie_dir, output_filename, output_filename);
        system(line);
 }