PDA

View Full Version : Mencoder commandline, no non english characters


zehd
12th September 2007, 20:29
I hope that this is in the right area (This place is huge)

I have been using MEncoder to transcode on the fly, non-MPG files into MPG to be used with GB-PVR and the MediaMVP.

Everything works well except I can't pass non english characters to MEncoder.

My program writes a batch file, that passes a source file name that might include let's say a Swedish character like : ö

The batch file is written correctly, the command line calls MEncoder , but in the console output, it claims it cannot find the file, and the file it is looking for is the wrong thing altogether...

Commandline in Batch:

"C:\Program Files\mplayer\mencoder.exe" -delay 0.55 -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf scale=476:356,expand=-164:-124:95:62,eq2=1.0:1.0:0.0:1.0:1.0:1.0:1.0:1.00,harddup -srate 44100 -af lavcresample=44100,volume=0.0 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=2400:vbitrate=2400:keyint=15:acodec=mp3:abitrate=192:aspect=4/3 -fps 25 -ofps 30 -o "D:\My Documents\My Videos\sökarna.mpg" "D:\My Documents\My Videos\sökarna.wmv" > "C:\Program Files\devnz\gbpvr\Third Party\ZTools\transcode.log"




Output:

"C:\Program Files\mplayer\mencoder.exe" -delay 0.55 -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf scale=476:356,expand=-164:-124:95:62,eq2=1.0:1.0:0.0:1.0:1.0:1.0:1.0:1.00,harddup
-srate 44100 -af lavcresample=44100,volume=0.0 -lavcopts codec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=2400:vbitrate=2400:keyint=15:acodec=mp3:abitrate=192:a
spect=4/3 -fps 25 -ofps 30 -o "D:\My Documents\My Videos\s÷karna.mpg" "D:\My Documents\My Videos\s÷karna.wmv" 1>"C:\Program Files\devnz\gbpvr\Third Party\ZTool
s\transcode.log"
File not found: 'D:\My Documents\My Videos\s¸karna.wmv'
Failed to open D:\My Documents\My Videos\s¸karna.wmv.
Cannot open file/device.

If my program skips creating the batch file and calls MEncoder directly, it seems to work.

Any ideas why the character sets are getting messed up?

Thanks in Advance