I have a script that gets video files from a folder and calls an ffmpeg command on them with subprocess. Everything works fine until i try to put accents in the filenames. When filenames have no accent i have the ffmpeg command output but i get nothing with filenames with accents so i don't know the error. I'm using Python 2.6 on Windows.
My subprocess call looks like this :
p=subprocess.Popen(command)
p.wait()
And my command arguments looks like this :
['\\\\path\\to\\ffmpeg\\bin\\ffmpeg.exe',
'-i',
u'\\\\path\\to\\root\\folder\\\xd9\xda\xdb\xdc\xdd\xe0\xe1\xe2\xe3\xe4\xe5\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf1\xf2\xf3\xf4\xf5\xf6\xf9\xfa\xfb\xfc\xfd\xff.avi',
'-vcodec', 'mjpeg',
'-qscale', '1',
'-y',
'-r', '30000/1001',
'-vf', 'scale=1280x720,setsar=1:1',
'-strict', '-2',
'-codec:a',
'copy',
u'\\\\path\\to\\root\\folder\\Converted\\\xd9\xda\xdb\xdc\xdd\xe0\xe1\xe2\xe3\xe4\xe5\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf1\xf2\xf3\xf4\xf5\xf6\xf9\xfa\xfb\xfc\xfd\xff_20170321.mov']
my filename raw string is ÙÚÛÜÝàáâãäåèéêëìíîïñòóôõöùúûüýÿ.avi
but i tried even with only a simple accent é
in the filename and it doesn't work either. Also i tried running the ffmpeg directly from the command line and it works.
I guess it's an encoding issue but all the encoding stuff is a mystery for me so my apologies in advance.
EDIT : This could be a potential duplicate but i'm not using any external module.