vb 中调用 ffmpeg.exe 如何传递视频文件位置参数
Dim pid As Integer
pid = Shell("ffmpeg.exe -i c:\Media\MV.flv -y c:\Media\MV.avi")
把里面的 c:\Media\MV.flv 换成 strInputFLV
Dim strInputFLV As String
strInputFLV = "c:\Media\MV.flv"
就没有反应了, 请指教如何传递 源文件和 转换后文件。
[最优解释]
dim strShell as string
dim strInputFLV as string
strInputFLV = "c:\media\mv.flv"
strShell = "ffmpeg.exe -i " & strInputFLV &" -y c:\Media\mv.avi"
pid = shell(strShell);
[其他解释]
谢谢,可以通过,但对文件目录中有空格 或 文件名有空格的(例如C:\my files\music 或者 2008和路雪可爱多广告 剧情篇.flv) FFMPEG命令认为是不同部分,不予执行:
Dim pid As Integer
Dim strShell As String
strShell = App.Path & "\ffmpeg.exe -i " & txtInputFile.Text & " -y " & frmMain.txtFolder.Text & (StripPath$(frmMain.txtInputFile.Text) & ".avi")
pid = Shell(strShell)
如何解决?
[其他解释]
哦,加上 Chr(34) & 到里面就可,结贴送分。