2006-05-20, 09:28 PM
zehd Wrote:When you said 'pathing' is there any other path needed to be set other than for ffmpeg?
I mean, the default path for ffmpeg in gbpvr is "C:\Program Files\devnz\gbpvr\Third Party\FFmpeg" so if I add:
Code:cd "C:\Program Files\devnz\gbpvr\Third Party\FFmpeg"
Opps! I made a change to the path because I do my testing in a different directory, and forgot to change it back. The line
Code:
for /f "eol=; tokens=1 delims=~" %%a in ('ffmpeg -i %inputfile% 2^>^&1') do (
Code:
for /f "eol=; tokens=1 delims=~" %%a in ('THIRDP~1\ffmpeg\ffmpeg -i %inputfile% 2^>^&1') do (
But you are right, changing the current directory at the beginning is also a good general solution. However, as you have put it will change the default directory on the C drive, but it won't change the default drive if the command line process happens to start on a different drive (only if the batch file is located on a different drive, so unlikely).
You could add this to the beginning:
Code:
C:
cd "\Program Files\devnz\gbpvr\Third Party\FFmpeg"