gpt4 book ai didi

vb.net - ffmpeg 使用 screen-capture-recorder cmd 截屏在 vb 中不起作用

转载 作者:行者123 更新时间:2023-12-04 23:29:26 43 4
gpt4 key购买 nike

我已经在 VB 中将 ffmpeg 作为进程启动,但单独捕获的 ffmpeg cmd 不起作用。我的代码是,我不知道如何解决问题,如果有任何帮助,不胜感激

proc.StartInfo.FileName = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\converter\bin\ffmpeg.exe"            
proc.StartInfo.Arguments = "-f dshow -i video=screen-capture-recorder screen.mp4"
proc.StartInfo.UseShellExecute = False
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
proc.StartInfo.RedirectStandardInput = True
proc.StartInfo.RedirectStandardOutput = True
proc.StartInfo.CreateNoWindow = True
proc.Start()

最佳答案

    This is my code

Dim sAppPath As String
Dim sCommand As String
Dim sFilePath As String

sCommand = AppSettings.Get("command")
sFilePath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
'Full HD
sAppPath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\converter\bin\ffmpeg.exe " & sCommand & " " & sFilePath & "\RENDER\" & m_sFileName & ".mp4"
WriteLog("Testing " & sCommand & " " & sFilePath & " " & sAppPath)
'sAppPath = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\converter\bin\ffmpeg.exe -f dshow -vcodec rawvideo -s 1920x1080 -r 24 -pix_fmt yuv420p -i video=screen-capture-recorder -c:v libx264 -pix_fmt yuv420p -preset ultrafast -qp 0 -tune zerolatency -vf fps=24 -framerate 24 -y" & " C:\Users\Bode20\Documents\RENDER\" & m_sFileName & ".mp4"
ProcID = Shell(sAppPath, AppWinStyle.MinimizedFocus)

关于vb.net - ffmpeg 使用 screen-capture-recorder cmd 截屏在 vb 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24164363/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com