I am using mplayer in slave mode (VB.NET).
I used "-fs -noquiet -identify -slave -nomouseinput -sub-fuzziness 1 -vo direct3d, -ao dsound ".
ps = New Process()
ps.StartInfo.FileName = "D:\Music\mplayer.exe "
ps.StartInfo.UseShellExecute = False
ps.StartInfo.RedirectStandardInput = True
args = "-fs -noquiet -identify -slave " '
args += "-nomouseinput -sub-fuzziness 1 "
args += " -vo direct3d, -ao dsound "
Try
ps.Kill()
Catch
End Try
Try
ps.StartInfo.Arguments = args + " """ + Songfilelocation + """"
ps.Start()
SendCommand("set_property volume " + "80")
Catch e As Exception
MessageBox.Show(e.Message)
End Try
I can send slave mode command as follow..
Public Function SendCommand(ByVal cmd As String) As Boolean
Try
If ps IsNot Nothing AndAlso ps.HasExited = False Then
ps.StandardInput.Write(cmd + vbLf)
'MessageBox.Show(ps.StandardOutput.ReadToEndAsync.ToString())
Return True
Else
Return False
End If
Catch ex As Exception
Return False
End Try
End Function
Slave mode commands I used are
"stop"
"pause"
"quit"
"mute"
and much more.
But I don't know how to play series of jpg files like slide show. And mplayer need a delay time about 2s to play a video file. I want to play jpg file slide show in that 2s gap. I think I should create another process of mplayer and play image slide show. but dont know how to do it.
Another question is I would like to play mp3 file while playing image slide show. I am using Windows 8.1 and Visual Studio 2010. Please help me answer the questions.