[MPlayer-users] Using -wid option embed mplayer into Java Window

Swarna Gowri sgowri at cornet.com
Sat Mar 25 00:08:02 CET 2006


I am trying to embed mplayer into my java application window. This way I
will be able
to view video stream in my application window.
In order to make sure it works, I launched a window, got its window handle.
In the dos window passed window handle id in the command line as:

mplayer -wid 328222 rtp://239.192.1.1:16400

Mplayer starts with no problems, but no video shows on the screen.
If I send a command without any wid option, it works fine.
I also checked by giving wrong wid which will error out.. soo I guess the
window handle
I am passing is correct..

I also tried by passing -geometry, -colorkey, -slave etc.. but nothing
worked..

Any light on the problem I am facing would be of great help.
Thanks in advance.
Sona

I have attached the messages I see in the dos window.

C:\mplayer>mplayer -wid 197518 rtp://239.192.1.1:16400
MPlayer dev-CVS-050928-16:38-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel  (Family: 8, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer
with --disable-runtime-cpudetection.

Cannot load font: c:/windows/fonts/arial.ttf
Playing rtp://239.192.1.1:16400.
STREAM_RTP, URL: rtp://239.192.1.1:16400
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
FPS seems to be: 29.970030
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.50:1 - prescaling to correct movie aspect.
VO: [directx] 720x480 => 720x480 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.








More information about the MPlayer-users mailing list