Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMF applet does not displayer picture. Help please?

 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I wrote and applet that display picture using JMF technology. However, i can hear the voice but cannot see the picture, this is the error i saw when i run appletviewer
####################################
Unable to handle format: MPEG, 176x112, FrameRate=29.9, Length=29568
Unable to handle format: mpegaudio, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 8000.0 frame rate, FrameSize=32768 bits
####################################
Can someone help me?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know a lot about mpeg files. I do know that many different codecs are used to compress/encode mpeg files and so your JMF mpeg viewer might not have the proper codec available to properly read the mpeg file.
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. I try to run this applet on other window machine with Divx codec 5.0. It runs perfectly fine. I try to install Divx 5.0 on my linux RH7.2 as instructed in REAME file provided by the bundle, applet still does not work in linux. Do you have any thought?
I post the code i use as follow


From the code above, player.getVisualComponent()
always return null, thus it cause the add("Center", comp) line never get executed. This may be the reason that i cannot see the picture. I don't know what this is the case. It could be the problem with codec as you mention. However, i can view other video applet on the internet using the same browser. If i can view other applet's video, i should be able to do it too.
Any thought?
Thanks.
[ May 16, 2002: Message edited by: SoonAnn Lim ]
[ May 16, 2002: Message edited by: SoonAnn Lim ]
[ May 16, 2002: Message edited by: SoonAnn Lim ]
[ May 16, 2002: Message edited by: SoonAnn Lim ]
[ May 17, 2002: Message edited by: SoonAnn Lim ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tsk, tsk, tsk... You've been 'round these parts long before I <something>. You know about the [ code ] and [ /code ] tags. Tsk, tsk, tsk...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic