Topic: Help with WSF(Windows Script File) SVPTube
I have been trying to get the SVPTube WSF script to work so I can download the videos that I interpolate from Youtube.
I put in the path to ffmpeg.exe as "C:\ffmpeg" which by reading how the script works should work but it doesn't. When I try it out I get an error which points to this line of code: "shell.Run(cmd,1,true);"
Most likely something is going wrong when the cmd string is created. I've looked over the code and I don't see anything wrong and I haven't changed any of the code besides editing the ffmpeg path which you have to do anyways.
path = downloadPath+"\\"+fileName+".mp4";
cmd = "\"";
if(ffmpegPath.length>0)
cmd = "\""+ffmpegPath+"\\";
cmd += "ffmpeg.exe\" -y -i \""+videoURL+"\" ";
if(audioURL) cmd += "-i \""+audioURL+"\" ";
if(subsURL) cmd += "-i \""+subsURL+"\" ";
cmd += "-vcodec copy ";
if(audioURL) cmd += "-acodec copy ";
if(subsURL) cmd += "-scodec mov_text ";
cmd += "\""+path+"\"";shell.Run(cmd,1,true);
And the exact error I get:
Script:
File path to svptube-dl.wsf
Line: 71
Char: 3
Error: The system cannot find the file specified.
Code: 80070002
Source: (null)