scale extracted frames to square pixels

This commit is contained in:
j 2013-07-22 11:19:03 +02:00
parent dc69a10e02
commit c458bb00af

View file

@ -65,7 +65,9 @@ def frame(video, target, position):
pre = 0
else:
position = 2
cmd = [command('ffmpeg'), '-y', '-ss', str(pre), '-i', video, '-ss', str(position), '-an', '-vframes', '1', target]
cmd = [command('ffmpeg'), '-y', '-ss', str(pre), '-i', video, '-ss', str(position),
'-vf', 'scale=iw*sar:ih',
'-an', '-vframes', '1', target]
r = run_command(cmd)
return r == 0