Skip to content

Commit

Permalink
treat filenames with spaces correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbalaci committed Mar 3, 2013
1 parent c81e8c9 commit 469d874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions movie2android.py
Expand Up @@ -52,10 +52,10 @@
AUDIO_CODEC_DEFAULT = 'libvo_aacenc'
AUDIO_CODEC_FAILSAFE = 'copy' # if the previous fails

command = """{ffmpeg} -i %(input)s -codec:v libx264 -quality good -cpu-used 0
command = """{ffmpeg} -i \"%(input)s\" -codec:v libx264 -quality good -cpu-used 0
-b:v {bitrate} -profile:v baseline -level 30 -y -maxrate 2000k
-bufsize 2000k -vf scale={width}:{height} -threads {threads} -codec:a %(audio_codec)s
-b:a 128k %(output)s""".replace('\n', ' ').format(**config)
-b:a 128k \"%(output)s\"""".replace('\n', ' ').format(**config)

audio_codec_problem = "Warning! There was a problem with the audio codec and the conversion failed. " + \
"Retrying another method..."
Expand Down

0 comments on commit 469d874

Please sign in to comment.