escape filename
This commit is contained in:
parent
6527f53d1a
commit
5ea689fe5d
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ def extract_frame(movie_file, timestamp, img_folder, width=128, offset = 0, redo
|
||||||
timestamp_in_file = timestamp
|
timestamp_in_file = timestamp
|
||||||
if os.path.exists(movie_file):
|
if os.path.exists(movie_file):
|
||||||
mplayer_options = ''
|
mplayer_options = ''
|
||||||
mplayer_options += " '%s'" % movie_file
|
mplayer_options += ' "%s"' % movie_file.replace('"', '\"')
|
||||||
mplayer_options += " -ss '%s' -frames 2" % (timestamp_in_file)
|
mplayer_options += " -ss '%s' -frames 2" % (timestamp_in_file)
|
||||||
mplayer_options += " -vo jpeg:quality=90 "
|
mplayer_options += " -vo jpeg:quality=90 "
|
||||||
if width > 0:
|
if width > 0:
|
||||||
|
|
Loading…
Reference in a new issue