嗨,我想使用 ffmpeg 编写一个 vb.net 应用程序。有没有可能的方法来运行 ffmpeg 而不将 ffmpeg.exe 放入应用程序路径或没有任何硬编码路径?
任何 ffmpeg 的硬编码路径都可以在 Windows 服务应用程序中使用吗?
Process.Start("cmd.exe", "/k c:/ffmpeg/bin/ffmpeg.exe -i rtsp://198.168.1.40/cam -map 0:0 -map 0:1 -s -vcodec libx264 -g 60 -vb 500000 -strict experimental %03d.ts")
最佳答案
您可以编译适用于 Windows 运行时的 FFmpeg 库并链接它们。
这里有一个指南: https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT
微软也released一个FFmpegInterop library 。这对于播放非常有用,因为它实现了 MediaStreamSource
。
关于vb.net - 在vb.net服务应用程序中使用ffmpeg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32841047/