stephenmac7 / ffpy

A Python GUI for ffmpeg
2 stars 0 forks source link

spaces in filenames #4

Closed rshipp closed 12 years ago

rshipp commented 12 years ago

Here's a quick workaround. The best idea would probably be to escape all whitespace, quotes, and other special chars.

92c92
<         command = "ffmpeg -i " + input_file + " -acodec " + audio_codec

---
>         command = "ffmpeg -i \"" + input_file + "\" -acodec " + audio_codec

This fails when a filename has a ". It's up to you whether or not you want to change this, or just wait until you've fixed the problem for good.

stephenmac7 commented 12 years ago

Although this should have been in the issue already created thanks for the advice... although I don't think anyone has " s in their filenames.

rshipp commented 12 years ago

yeah, I realized I should have just commented on the other issue right after I posted it.