vb.net - 在 .NET 上使用 ffplay / ffmpeg 播放 ogg 文件
问题描述
我正在尝试使用 VB.NET 播放 Ogg 文件,ffplay.exe
但我不知道具体如何。这是我的代码:
Private Sub ButtonIR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonIR.Click
If IsNotNothing(TextBoxSource.text) Then
TextBoxDETALLES.Clear()
Try
Dim CONVERSOR As New Process
CONVERSOR.StartInfo.FileName = "C:\ffplay.exe"
CONVERSOR.StartInfo.Arguments = TextBoxSource.Text
CONVERSOR.StartInfo.UseShellExecute = False
CONVERSOR.StartInfo.RedirectStandardOutput = True
CONVERSOR.StartInfo.RedirectStandardError = True
CONVERSOR.StartInfo.CreateNoWindow = True
CONVERSOR.Start()
While Not CONVERSOR.StandardError.EndOfStream
TextBoxDETALLES.AppendText(CONVERSOR.StandardError.ReadLine & vbCrLf)
Application.DoEvents()
End While
MsgBox("HECHO")
Catch ex As Exception
MsgBox(ex.Message)
End Try
Else
MsgBox("Error")
End If
End Sub
我不是在尝试转换它,而是在尝试播放它。
解决方案
推荐阅读
- api-platform.com - 具有有限属性的操作/GET
- c - c中的溢出错误以找到十二位数的素数
- python - 当所有测试一起运行时,Python unittest 停止工作,但个别测试工作正常
- c# - 在报表查看器中显示富文本框格式
- python - discord.py 命令不起作用(没有给出错误)
- android - Videoview无法播放通过ES文件资源管理器选择的视频
- snowflake-cloud-data-platform - kafka connect 的雪花连接器的消息大小是否有上限?
- ruby - 尝试使用 discordrb 响应事件,事件处理方式似乎不一致
- php - PhpStorm Xdebug、WSL2、Docker // 无法评估表达式 '$_SERVER['SERVER_PORT']'
- javascript - vue.js 无法在创建的函数内调用函数