I want to encode a movie through IO.popen by ruby(1.9.3) in windows 7. If the file name contains only ascii strings, encoding proceed normally. But with unicode filename the script returns "No such file or directory" error. Like following code.
#-*- encoding: utf-8 -*-
command = "ffmpeg -i ü.rm"
IO.popen(command){|pipe|
pipe.each{|line|
p line
}
}
I couldn't find whether the problem causes by ffmpeg or ruby. How can fix this problem?