JMF - video + subtitles ?

hello everyone,
I know the JMF supports only video and audio formats. How can a .srt file (subtitles) or something similar be viewed together with video ? I know SLIM can do the job (viewing both) but I don't think it's capable for media player development. So, any suggestions?
thank you.

nfs_xxx wrote:
Hi there,
does anyone no something about showing subtitles in a
simple jmf-based video player?
I need to show/hide subtitles of a quicktime cinepack
video (*.mov)You can get it done at:
http://www.thesoftwareobjects.com
Hi.. I'm trying to learn how subtitles works... I need to change the font size and color according to user settings.
The site http://www.thesoftwareobjects.com is out.
Does anybody has experience with it, or can told me where I can find some doc, article, link that explains how to do it?
Marcos - Brazil

Similar Messages

  • Jmf video fps problem

    Hi to all,
    I'm developing a program that takes frames from a video, which are currently working on a jmf player object, and display them with jogl in a GLJPanel. the video is 30 fps. But my display function is called 20 times per second. Therefore I'm loosing some of the frames and video cannot be seen smoothly. I guess that the problem is due to the jmf player's frame rate, because it is the only thing that triggers jogl display function. What I want to know is if there is a way of displaying a 30 fps jmf video by jogl bindings and if yes how? I'm taking the current frame and displaying it as a texture within the display function. Is it ok for my application?
    I will be glad if anyone can help me..Thank you very much.

    Two things you should know:
    1) You can't play ANYTHING in AE.  It's not an editing application, and it doesn't work like one... as in, "push the spacebar and video plays".  Nope.   You have to do a RAM Preview by hitting the zero key on the numeric keypad.
    2) You'll save yourself days of frustration and anger by learning the basics, which can be found here:
    Getting started with After Effects (CS4, CS5, CS5.5,  CS6, & CC)

  • JMF video streaming

    Hi all,
    I want to use JMF video streaming api but I have no idea how to do it.
    I want to create several "agents" where each agent streams a single video to a certain ip address . (actually i want each agent to stream to the same computer)
    I want in my application (not the agents applications) to capture each of these streams and display each of them seperately.
    How can this be achieved with JMF ?
    thx.

    no one ????

  • * JMF Video Server Codec *

    I have added another example to http://www.exactfutures.com/index02.htm which is an Effect that does nothing at all to the video data stream! However, do see below.
    Add it by setCodecChain (see example source TestEffect.java), and then whether you are running a webcam or video you will see no difference in the display or speed.
    To test on a PC you can hit on run.bat and then it may find your webcam to run TestEffect.
    Otherwise, to use for a video track, just set the final codec in setCodecChain to the ServerEffect Codec, and include ServerEffect.class and ServerEffect$SvrControl.class and ServerEffect$clientThread.class in the classpath or application directory.
    So what does this Effect actually do?
    If once running you use your web browser to find http://localhost:8080/any.jpg then JMF will serve it a jpeg. Further, if you load http://localhost:8080/ and hit the link, or just hit http://localhost:8080/camapplet.htm directly, then an applet will pop up streaming the source jpegs.
    This can also stream video over a LAN if localhost is replaced with the IP address. If you try this over a network (adjust your firewall and/or router and/or security settings) then one can achieve good results, especially given the simplicity.
    The code to view the output of this JMF Video Server Codec is like for any other such stream, it does not need JMF, and there are Axis video server cam examples on this forum or elsewhere.
    I have added this because it offers an alternative to using RTP (although one can still use that alongside for the audio if required). It may not be as fast as RTP, although with improving broadband speeds that is becoming less of a issue, but it is simpler and robust.
    It is also interesting to see how such a simple plug in can add such useful further functionality. It may help someone. Enjoy.

    write a codec for jmf that accepts, i think rtp type 96 and something else, look in log files, answer is there

  • JMF Video Capture in Vista

    Hey all,
    I have done a lot of searching on this matter, but most of the threads are old. I am wondering if there has been any updates or if this issue has been solved in any way.
    I am trying to create an applet that captures an image from a webcam. I created the applet, using sample code found somewhere on these forums, and it works perfectly. I modified it to take 6 screenshots instead of 1 when the Capture button is pressed, and that works perfectly. However, when I developed this I was at work (Windows XP). When I got home and attempted to test my work further I got the following error:
    java.lang.RuntimeException: No permission to capture from applets
    java.lang.RuntimeException: No permission to capture from applets
    javax.media.NoPlayerException: Error instantiating class: com.sun.media.protocol.vfw.DataSource : java.lang.RuntimeException: No permission to capture from applets
         at javax.media.Manager.createPlayerForContent(Manager.java:1362)
         at javax.media.Manager.createPlayer(Manager.java:417)
         at javax.media.Manager.createRealizedPlayer(Manager.java:553)
         at lib.snapshot.applet.Snapshot.init(Snapshot.java:68)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)I read, through these forums and searching google, that IE is in a sandbox in Vista, which makes signed applets only able to access java related data and certain temporary directories, rather than the whole system like other OS's. However, we have other signed applets that create directories in Program Files folders, download files from the server, etc that work fine in Vista, so that makes no sense. Also, I have disabled Protected Mode on my my machine and turned all security measures off, to no affect. Also the same thing happens in Firefox.
    Has anyone found a way around this for Vista? Does anyone know of another easy to use java API for doing this that works in both Vista and XP? Has anyone who has encountered this problem ended up developing something similar in another language (flash, etc)?
    I require this applet for taking snapshots for a project for my job. I had preferred Java, because our other applets are all Java and I didn't want to mix techonologies too much. But if there is no way to do this in a stable way for both Vista and XP, then I will have to look at other languages.
    Thanks for the help.
    Bryan

    compbry, the fundamental problem is that Vista is 3 years old and the latest releast of JMF is like, 5 or 6 years old. So, there's nothing in the realm of "Vista compatibility" for JMF.
    That said, to my knowledge no one has ever gotten JMF to capture video from inside an applet in Vista, JMF installed on the computer or not.
    However, if you have JMF installed, you can easily run a JMF web-start app that will work just fine in Vista, that would allow you to do whatever it is you're needing to do.
    But if you're going in a different direction, I'd suggest looking at the Adobe Flex API. It's free and from what I've researched about it, it makes webcam and microphone capture damn easy. If you've got a decent web server that will allow you to do ColdFusion or (can't remember the term for it, but you can write Java code that will run on-demand on the web host that your Flex application can talk to to do stuff like upload the images, etc...), it should be a relatively easy and short as far as LOC is concerned, minus of course the learning curve associated with learning something new (which is why I've only researched it, but I would've played with it too had I had a "decent webserver" ;-)

  • Easiest Way To Create Video Subtitle

    Does anyone know how to create VIDEO"S SUBTITLES.....
    I don't want closed caption...i want subtitle
    Using Premiere Pro's text to create subtitle...it will spend me for lots of hours doing that
    It's very wasting my time doing that....
    Does anyone have the way to do it???
    I tried using Indesign to create text and export to premiere...but that are too much work to do....
    Does anyne have the Plugins or something that can make subtitle.....
    And..I want to create not only english...same time i want to create two or three subtitles in the same time
    Example...chinese...malay..etc
    http://www.youtube.com/watch?v=pCcDTyFNfnk
    or
    http://www.youtube.com/watch?v=FRvV-1pu9Pg&list=UUxJlPlbhLmM3pKrPsnidRuA
    Create Many Subtitles in a short time...i hope you guys will know...
    I really damn appreciate it....
    because i really sick of this problem everytime when i met it.....

    Premiere Pro isn't designed to handle open captions; so you will either need to:
    Use external tools to generate an image sequence or video track holding the text - Photoshop for example can use external data sources (text/CSV files) to dynamically create a whole series of PNG files.
    Render closed caption data to open caption pixels with a plugin such as SUGARfx's "Subtitles".
    Generate the caption track using After Effects, which can in turn use scripting to pull the text from a data file. There's an AE plugin called pt_ImportSubtitles which can automate that process for you - Google it.

  • JMF video while in Fullscreen Exclusive

    I am trying to show a video (using JMF) in my window while in fullscreen exclusive mode. Its for a game. It works occasionally. What I've done is turned of the repetitive rendering (from the game loop), and just added the visual component to the window (it can do its own painting). Sometimes it works fine, other times you just hear the sound, and other times its just grey or black.
    Does anybody have any idea how to get the current frame, and draw it so that I can keep the repetitive rendering (from the game loop) running.
    Any other ideas are appreciated too.

    Never written a fullscreen exclusive application. In fact, I've never even heard of such a thing.
    http://download.oracle.com/javase/tutorial/extra/fullscreen/exclusivemode.html
    "In full-screen exclusive applications, painting is usually done actively by the program itself"
    Ah. So no, I don't think JMF would support that because it's not going to be actively rendering, only passively rendering in response to paint requests. It's AWT/Swing based, after all...
    But, the fact that JMF doesn't support it does not mean JMF can't support it. JMF provides a custom Renderer interface which you could implement to actively render the stuff. It'll essentially give you a copy of the video frame in a Buffer object which you can then turn into an image using the BufferToImage class and then render that however you'd render an image for a full screen exclusive application...

  • JMF; Video watermarking in java?

    Can any one suggest me how to proceed for this problem?
    Input is quicktime file. A watermark should be added to the video track (this can be a small black square in the upper left hand corner of the screen, or something more elaborate). The watermarked movie is output to a new Quicktime file.

    Is n't that qtjava out of JMF? i mean it looks like it has got its own packages of Apple

  • How to determine the bit rate with button over video subtitles?

    I have a project where I've got several questions that come up on the screen. The DVD is subtitled in 14 languages, so depending on the language chosen, it will show the question in the proper language along with navigation buttons to go to the next question or track.
    The problem is this: I added several new questions that each have a black only video that runs about 1min with 14 subtitle tracks made from photoshop psds. When I try to build, it fails saying "bit rate too high." When I removed all but 5 of the subtitle tracks, then it would build. I came up with a workaround, but then hit the limit of 99 tracks, menus or stories on a DVD.
    I went back and tried combining all 3 questions in to one slide, but now with more information on the psd, it will only allow 3 subtitle tracks before it reaches the max bit rate.
    How does it determine the bit rate? What can I do to lower the rate? I tried compressing the video at the lowest bitrate, but it didn't' help. I tried changing the psds to much smaller jpg files, but it didn't change anything. If anyone has any suggestions, please let me know!
    Thanks.

    CS,
    Almost all DVD SP Tracks should first be completely constructed in a Sequence in FCP, the markers placed there, and then everything encoded into a single Mpeg 2 clip with matching length audio (even if just low bit rate AC3 silent audio, as the case may be, because all Mpeg 2 clips in the Title domain should be accompanied by an audio stream), and then imported into DVD SP.
    Lay your subtitles under that and see what happens.
    Take care,
    Trai
    TFDVD Research Labs

  • Buttons over video, subtitle stream displays on wrong story!

    Here's a quick run down of my project:
    the client has a video program which should play two different ways. the first button on my main menu should play the video program with no subtitle streams on. the second button on my main menu enables the same program to be played only now with subtitles stream 1 turned on. the subtitle stream is serving as buttons that appear over the video which jump to other submenus.
    my problem is that the first button, no matter what i've tried, still displays the subtitles stream though i don't want it to. i have one track of the video with two stories, 1 for display without the subtitle track and the other to display with the subtitle track. the button for the 1st story is set with the "view" option unchecked for subtitle stream 1 while the second is set with the "view" box checked...yet it still displays both! i've checked my disc options and the subtitle track's "view" is unchecked...
    i'm at a loss for what else to try. please help!

    i'm encountering the exact same problem with buttons over video in dvd studio pro. despite of the fact that the simulation within dvd studio pro works flawlessly, after buidling the video_TS folder and opening it in the dvd-player application, you can't hide the subtitles anymore (you can set the subtitle-streams in the menu to whatever you like but the subtitles never disappear). the same problem exists if i burn or build and format a physical dvd.
    help is really appreciated! thanks in advance for every hint!

  • JMF video capture on OS X?

    Hello,
    is it possible to somehow do video capture under JMF? I use Mac OS X on Macbook Pro. I have found Quicktime for Java, but I would rather avoid using proprietary QuickTime APIs and work with portable JMF API. When I run JMF studio, I only see audio capture device.
    Juraj.

    You should take a look at the hardware requirements and supported formats for the cross platform version of JMF.
    http://java.sun.com/products/java-media/jmf/2.1.1/formats.html
    http://java.sun.com/products/java-media/jmf/2.1.1/requirements.html
    Be aware that JMF does not have its own video format, but supports proprietary formats like Quicktime.
    regards

  • Jmf video capture

    Hi iam new in jmf. The jmf alredy detected the capturing device , but not capturing video. only showing a black screen.while setting its parameters(RGB..) getting the error message "could not inetialize capturiing device". i am using windos xp.

    Interesting read on JMF on wikipedia here
    http://en.wikipedia.org/wiki/Java_Media_Framework
    The article states:
    Many JMF developers have complained that it supports few codecs and formats in modern use. Its all-Java version, for example, cannot play
    MPEG-2, MPEG-4, Windows Media, RealMedia, most QuickTime movies, Flash content newer than Flash 2, and needs a plug-in to play the
    ubiquitous MP3 format. [3] While the performance packs offer the ability to use the native platform's media library, they're only offered for Windows and
    Solaris, the latter rarely used as a desktop OS. Furthermore, Windows-based JMF developers can unwittingly think JMF provides support for more
    formats than it does, and be surprised when their application is unable to play those formats on other platforms.
    Another knock against JMF is Sun's seeming abandonment of it. The API has not been touched since 1999, and the last news item on JMF's home
    page was posted in November 2004.
    While JMF is built for extensibility, there are few such third-party extensions.
    Furthermore, editing functionality in JMF is effectively non-existent, which makes a wide range of potential applications impractical.

  • Jmf video capture in an Applet

    Hello
    I use netBeans 6.9.1 and would like to use JMF and the webcam capture JMF function in my applet
    but Iget a no permission error see below
    How can I get out of that?
    Thank you
    Fred
    Public class SourceCam extends java.applet.Applet implements Runnable {
    public int wmax,hmax,ix, x1, y1, x2, y2,y3,y4=0;
    public double yc1=0.0,yc2=0.0, yc3=0.0,yc4=0.0,yc5=0.0,yc6=0.0;
    Color colors[] = new Color[50];
    int[] couleur=new int[50];
    Thread runner;
    Frame f=new Frame("Stimulated Polarized Light @FF ");
    public static Player player = null;
    public static MediaPlayer MediaPlayer1=null;
    public CaptureDeviceInfo di = null;
    public MediaLocator ml = null;
    run:
    java.lang.RuntimeException: No permission to capture from applets
    java.lang.RuntimeException: No permission to capture from applets
    javax.media.NoPlayerException: Error instantiating class: com.sun.media.protocol.vfw.DataSource : java.lang.RuntimeException: No permission to capture from applets
    at javax.media.Manager.createPlayerForContent(Manager.java:1362)
    at javax.media.Manager.createPlayer(Manager.java:417)
    at javax.media.Manager.createRealizedPlayer(Manager.java:553)
    at org.me.light.SourceCam.init(SourceCam.java:58)
    at sun.applet.AppletPanel.run(AppletPanel.java:424)
    at java.lang.Thread.run(Thread.java:662)

    I did that already
    i.e. what is written in
    Q: Can I capture audio or video from within an Applet with JMF 2.1.1?
    By default (for security reasons), JMF 2.1.1 does not allow capture from an applet. The user can turn this on by using JMFRegistry.
    Run "java JMFRegistry", select the UserSettings tab and check "Allow Capture From Applets". If the browser's security permits loading native libraries, then you will now be able to capture audio/video from an applet.
    but the program lines
    try
    player = Manager.createRealizedPlayer(ml);
    FormatControl formatControl = (FormatControl)player.getControl("javax.media.control.FormatControl");
    Component co = formatControl.getControlComponent();
    Thread.sleep(2000);
    player.start();
    give always the same error
    java.lang.RuntimeException: No permission to capture from applets
    java.lang.RuntimeException: No permission to capture from applets
    why?
    I am working inside the netbeans 6.9.1 editor

  • JMF Video Capture, output not properly

    hello,
    i'm trying to capture Video using JMStudio. my webcam is Logitech QuickCam IM, and it's detected succesfully by jmregistry. but then when i run jmstudio and start video capturing from logitech webcam, the output is only black and green, and beeping.
    i don't know if anyone has ever experienced this before. what should i do to make it work?
    Thank you.

    Sorry, that last post was misposted. It was supposed to go on a thread where the OP did resolve his problem. Sorry about that!
    If your web cam isn't V4L compliant and only supports V4L2, then it won't work with JMF. Also, if you're using the cross-platform pack instead of the Solaris performance pack, it won't work with JMF.
    Finally, if you're running it as a user with insufficent permissions to access the hardware, it won't work (try running as root just to check this).

  • How jmf  video dispaly  using javafx

    i want to place a video in applet by javafx,the idea can work?
    var myMedia: Media = Media {
    source: "http://sun.edgeboss.net/download/sun/media/1460825906/1460825906_2957290001_DayEarth-Bluray.flv"
    the media only from a file ,is it a stream , Capture from Device?
    please give me some suggestion,thanks
    Edited by: alading on Jul 9, 2009 12:38 AM

    captfoss wrote:
    alading wrote:
    i tested
    var dlist:Vector=CaptureDeviceManager.getDeviceList(new VideoFormat(
    VideoFormat.YUV));
    System.out.println(dlist.size());//0
    result =0, that say can't CaptureDeviceActually, no, it says that you havn't previously run JMRegistry to detect capture devices, there are no capture devices present, none of the capture devices present support YUV formatting, JMF isn't installed correctly, etc...first i am very happy friends forcus the topic,Actually,I had Installed jmf, Captured the video successfully using applet
    Name = vfw:Microsoft WDM Image Capture (Win32):0
    Locator = vfw://0
    Output Formats---->
    0. javax.media.format.YUVFormat
    YUV Video Format: Size = java.awt.Dimension[width=640,height=480] MaxDataLength = 614400 DataType = class [B yuvType = 32 StrideY = 1280 StrideUV = 1280 OffsetY = 0 OffsetU = 1 OffsetV = 3
    1. javax.media.format.YUVFormat
      YUV Video Format: Size = java.awt.Dimension[width=160,height=120] MaxDataLength = 38400 DataType = class [B yuvType = 32 StrideY = 320 StrideUV = 320 OffsetY = 0 OffsetU = 1 OffsetV = 3
    2. javax.media.format.YUVFormat
      YUV Video Format: Size = java.awt.Dimension[width=176,height=144] MaxDataLength = 50688 DataType = class [B yuvType = 32 StrideY = 352 StrideUV = 352 OffsetY = 0 OffsetU = 1 OffsetV = 3
    3. javax.media.format.YUVFormat
      YUV Video Format: Size = java.awt.Dimension[width=320,height=240] MaxDataLength = 153600 DataType = class [B yuvType = 32 StrideY = 640 StrideUV = 640 OffsetY = 0 OffsetU = 1 OffsetV = 3
    4. javax.media.format.YUVFormat
      YUV Video Format: Size = java.awt.Dimension[width=352,height=288] MaxDataLength = 202752 DataType = class [B yuvType = 32 StrideY = 704 StrideUV = 704 OffsetY = 0 OffsetU = 1 OffsetV = 3
    Edited by: alading on Jul 10, 2009 8:06 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Moving average price  has become Zero in Material Master

    Hi, Can you please help us , if you have any ...this kind of situation in your projects. Scenerio: We are using Workflow mechanism for creation material in Master data client 01. After creation of Material, it will go for approval (to six departments

  • 17" Studio Display & VGA Display

    I was recently running dual 17" monitors on a dual 800 G4. When I powered down, I disconnected one of the 17" displays. When I turned the system back on, the cpu still thought one of the monitors was connected. When I clicked on display preferences,

  • IWork 09 in Yosemite

    Hi all, I was wondering if anyone had found a way to get iWork 09 to work in Yosemite. I really would like to keep it. Thanks. - Gaurav.

  • Assign Tasklist in PM Order - Menu option

    Hello , We have a requirement to have inspection after finishing the operations so i have to attach the general tasklist keeping the Quality Information.So that after release i can get a inspection lot in order.Now here when i am trying to attach the

  • Related to Service Call

    In Service Call window in Add Mode the Call ID : 6 (Successive no.) Once after entering a customer code and name in Service Call Window, If I cancel the transaction without pressing ADD button, the Call ID of the no. 6 is getting Blocked and again if