From 7a147342d67ca55908d4d726ba36eb9ba2446c62 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Tue, 21 Aug 2012 09:18:15 -0400 Subject: [PATCH] iowatcher: Switch to ffmpeg for movie encoding. Chrome and vlc like these better. Signed-off-by: Chris Mason --- iowatcher/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iowatcher/main.c b/iowatcher/main.c index 760fffb..bc6132a 100644 --- a/iowatcher/main.c +++ b/iowatcher/main.c @@ -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); } -- 2.25.1