From: Michael Linfield Date: 2007-10-26T08:31:24+09:00 Subject: Re: cant seem to get system() & pipe to work together > ffmpeg = '"C:\\Documents and Settings\\dt\\Desktop\\my stuff\\songs\ > \wma\\ffmpeg.exe"' > lame = '"C:\\Documents and Settings\\dt\\Desktop\\my stuff\\songs\ > \wma\\lame.exe"' > > newFile = child.sub('wma', 'mp3') > #cmd = ffmpeg + " -i " + child + " -vn -f wav - | " + lame + " -V 6 - > " + newFile > cmd1 = "#{ffmpeg} -i #{child} -vn -f wav - | #{lame} -V 6 - > #{newFile}" > puts cmd1 > system(cmd1) > > NOTE: child points to the same file wma file as above. > > If i copy and paste the output of the puts command above into a > command window, it works fine...but from ruby, it seems to ignore the > pipe (|) command. I dont know if this is a windows issue, or if i am > missing something obvious. Any help is greatly appreciated. I have no idea if this was intentional or not but... #cmd = ffmpeg + " -i " + child + " -vn -f wav - | " + lame + " -V 6 - > " + newFile The # in front of cmd comments that entire line out..once again i have no idea if you were just putting that there to make a point in your post so I'm just making sure. - Mac -- Posted via http://www.ruby-forum.com/.