escape filename

This commit is contained in:
j 2008-07-06 19:22:59 +02:00
parent 6527f53d1a
commit 5ea689fe5d

View file

@ -139,7 +139,7 @@ def extract_frame(movie_file, timestamp, img_folder, width=128, offset = 0, redo
timestamp_in_file = timestamp
if os.path.exists(movie_file):
mplayer_options = ''
mplayer_options += " '%s'" % movie_file
mplayer_options += ' "%s"' % movie_file.replace('"', '\"')
mplayer_options += " -ss '%s' -frames 2" % (timestamp_in_file)
mplayer_options += " -vo jpeg:quality=90 "
if width > 0: