Play movie with subtitle..

i am using JMF player to play movies

i have downloaded some codecs (jffmpeg)

but one thing is missing

displaying subtitles

i been searching google but find nothing

There is something written all ready

or

should i start thinking how to do it my self.

i am thinking about using a glass pane to draw the subtitles

but i need and a subtitle parser (SRT,SUB files)

there is something written in java ?

or i need to do it by my self.

if all made by me?

i have question about subtitle timing

can i use JMF to throw some event when a

certain time in the movie is arrived

i don't want to check every second?

allot of questions

any help will be appreciated

thanks allot

shay

[798 byte] By [shay_tea] at [2007-11-27 4:11:44]
# 1
implement effect
capea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...
# 2

1) what do you mean by saying implement effect?

2) implement subtitle parser?

3) implement a way to display subtitles?

4) should i use a Glasspane or there is something build in for that?

5) can i get an events from the player when a specific time is arrived?

thanks alot

shay

shay_tea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...
# 3
hooo...and using Glasspane to paint subtitle dose not work..
shay_tea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...
# 4
Go to http://www.exactfutures.com/index02.htm and have a look at DrawEffect.zip
andyblea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...
# 5

Thanks i will try it. sound like a good solution

hope it will not slow down the movie.

shout it ?

so about the other questions

i wrote an SRT file parser (next SUB file parser)

the player can throw an event when a desired time arrived ?

i don't want to sample the movie time each 10 milli second ..

it will be a bed idea and implementation

thanks allot

shay

shay_tea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...
# 6
Any help?with listening to events from the player is it possible?
shay_tea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...
# 7
I am not entirely sure what you are asking, but take a look at the Buffer class. Each frame抯 buffer provides a sequence number and a timestamp, also flags and data. I cannot think of any events that will fire during a movie to help you, until you reach the end of media.
andyblea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...
# 8

It's so xxxx complicated to play a movie with subtitels

since JMF was last updated at 2004.

i am giving a try to MPlayer.

may be when there is a new version of JMF

with no need of hacking things like:

searching for codecs all over the web

find one site that hack JMF to display text over JMF Player .(and i searched google)

find a responsible why to handle player timing (subtitle timing)

and more simple why to play a movie without catching alot of exceptions

till you lost your mind.

sorry .i rely give it a try.

thanks allot every one.

shay_tea at 2007-7-12 9:17:36 > top of Java-index,Security,Cryptography...