我正在向 powershell 传递命令
Dim command As String
command = "ffmpeg -vsync 0 –hwaccel cuvid -c:v h264_cuvid –resize 1280x720 -i D:\Imagens\nova\bol.mkv -c:a copy -c:v h264_nvenc -b:v 5M D:\Imagens\nova\bol_encod.mkv"
和
Dim powerShell As String = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
Process.Start("powershell", "-noexit " + command)
但powershell返回
Unable to find a suitable output format for 'ÔÇôhwaccel' ÔÇôhwaccel: Invalid argument
我相信“ÔÇôhwaccel”是–hwaccel;这很奇怪,一旦我直接在 PowerShell 上传递代码,它就可以正常工作。
那是我的字符串有问题吗?
谢谢你!
最佳答案
关于vb.net - PowerShell 无法正确识别字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59816291/