Hangs when calling mplayer by using java (getruntime.exec())
I don't know why the mplayer will hangs after a few sec when i use java getRuntime.exec() to call the mplayer. Anyone can help?? I am using Red hat 9 shrike
On Thursday 02 March 2006 12:30, Shinye Shinye wrote:
I don't know why the mplayer will hangs after a few sec when i use java getRuntime.exec() to call the mplayer.
Are you handling stdout, stdin and stderr of the MPlayer process?
I am using this kind of java code. Process proc = Runtime.getRuntime.exec("mplayer a.wmv");
From: Jan Knutar <jknutar@nic.fi> Reply-To: mplayer-dev-eng@mplayerhq.hu To: mplayer-dev-eng@mplayerhq.hu Subject: Re: [MPlayer-dev-eng] Hangs when calling mplayer by using java(getruntime.exec()) Date: Thu, 02 Mar 2006 16:39:45 +0200
On Thursday 02 March 2006 12:30, Shinye Shinye wrote:
I don't know why the mplayer will hangs after a few sec when i use java getRuntime.exec() to call the mplayer.
Are you handling stdout, stdin and stderr of the MPlayer process?
_______________________________________________ MPlayer-dev-eng mailing list MPlayer-dev-eng@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
On Thursday 02 March 2006 16:59, Shinye Shinye wrote:
I am using this kind of java code.
Process proc = Runtime.getRuntime.exec("mplayer a.wmv");
" Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock."
From Java API docs.
Hi, On Thu, Mar 02, 2006 at 05:12:58PM +0200, Jan Knutar wrote:
On Thursday 02 March 2006 16:59, Shinye Shinye wrote:
I am using this kind of java code.
Process proc = Runtime.getRuntime.exec("mplayer a.wmv");
" Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock."
From Java API docs.
-noconsolecontrols (MPlayer option) could help Greetings, Reimar Doeffinger
2006/3/2, Shinye Shinye <shinye858@hotmail.com>:
I am using this kind of java code.
Process proc = Runtime.getRuntime.exec("mplayer a.wmv");
less DOCS/tech/slave.txt man mplayer /-slave
participants (4)
-
Ivan Kalvachev -
Jan Knutar -
Reimar Doeffinger -
Shinye Shinye