From 6364513485e99c20aaf07902521fc50895d62a05 Mon Sep 17 00:00:00 2001 From: Karl Kroening Date: Sat, 2 Jun 2018 01:05:53 -0700 Subject: [PATCH] Fix get_video_thumbnail example --- examples/get_video_thumbnail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/get_video_thumbnail.py b/examples/get_video_thumbnail.py index d19f899..d1e608a 100755 --- a/examples/get_video_thumbnail.py +++ b/examples/get_video_thumbnail.py @@ -5,7 +5,7 @@ import ffmpeg import sys -parser = argparse.ArgumentParser(description='Extract video thumbnail') +parser = argparse.ArgumentParser(description='Generate video thumbnail') parser.add_argument('in_filename', help='Input filename') parser.add_argument('out_filename', help='Output filename') parser.add_argument( @@ -21,7 +21,7 @@ def generate_thumbnail(in_filename, out_filename, time, width): ffmpeg .input(in_filename, ss=time) .filter_('scale', width, -1) - .output(out_filename, vframes=1, format='image2', vcodec='mjpeg') + .output(out_filename, vframes=1) .run(capture_stdout=True, capture_stderr=True, overwrite_output=True) ) except ffmpeg.Error as e: