10-26-2012, 04:55 AM
Hi guy im stuck <!-- s --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt="" title="Sad" /><!-- s -->
Ive become obsessed with console/cmd application that you run from the command prompt with parameters like wget, ffmpeg, rtmpdump etc.....
So i tried researching how to make a frontend GUI for such applications and this is where i have hit a brick wall.
For example one such console app i would like to make a nice GUI for ffplay(media player) which is part of the ffmpeg package and you run it from a command prompt like this.....
Working example.....
Any idea how i could make a simple GUI for ffplay ?
So far i have.....
This only works with certain parameters like......
but try and run a video it wont work ?
<!-- s --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt="" title="Sad" /><!-- s -->
Ive become obsessed with console/cmd application that you run from the command prompt with parameters like wget, ffmpeg, rtmpdump etc.....
So i tried researching how to make a frontend GUI for such applications and this is where i have hit a brick wall.
For example one such console app i would like to make a nice GUI for ffplay(media player) which is part of the ffmpeg package and you run it from a command prompt like this.....
Code:
ffplay [options] [‘input_file’]
Code:
ffplay -i http://wpc.573d.edgecastcdn.net:80/00573D/live/enc0001/a-bbc1/m3u8/a-bbc1-1.m3u8
Any idea how i could make a simple GUI for ffplay ?
So far i have.....
Code:
Imports System.ComponentModel
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myProcess As New Process()
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = True
Try
myProcess.StartInfo.FileName = "ffplay"
myProcess.StartInfo.Arguments = TextBox2.Text
myProcess.StartInfo.CreateNoWindow = True
myProcess.Start()
TextBox1.Text = _
Replace(myProcess.StandardOutput.ReadToEnd(), _
Chr(13) & Chr(13), Chr(13))
myProcess.WaitForExit()
Catch ex As Win32Exception
MsgBox((ex.Message + ". Error Detected."))
End Try
End Sub
End Class
This only works with certain parameters like......
Code:
--help
<!-- s --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt="" title="Sad" /><!-- s -->