Help (JavaTV vs JMF vs MHP?!)

hi,
could someone delineate for me the roles of the different APIs mentioned in the title. From what I have read I infer that MHP is a framework which allows sending Xlets with the TV stream which are then executed on the set top box. What API should you use if you want to have a go at writing an application that resides on the computer/STB and gives the user information about scheduling and allows them to change channels, and which might be extended to employ recording of tv programmes? I am a little confused as to whether JavaTV should be used for this or JMF?
In addition what is the hardware compatibility like for these technologies - I was looking at trying to write a program to use on my PC and receive digitalTV from an ATI or NVIDIA card. Do these APIs support this hardware?
Many thanks

MHP is more than an API - it includes a specification for content formats, for network protocols, for security policy, for a graphics model as well as a number of APIs of which JavaTV and JMF are examples.
JMF is a generic media player API originally designed for streaming media across intranets or perhaps the internet. MHP and JavaTV use parts of JMF version 1.0 but a lot of it is simply not appropriate in TV.
JavaTV sounds closest to what you want.
None of these (yet) support recording apart from JMF version 2.0 which is not included in either JavaTV or MHP and probably never will be.
There is an implementation of MHP available for free for the PC from www.m hp4free.de but this may not support the hardware platform you want to use and the www site is entirely in German. There is also www.openmhp.org but there's not a lot of documentation on their www site without downloading it.

Similar Messages

  • Scaling a video played by JMF in MHP

    Hi
    I'm looking for the approach scaling the area where
    a video plays in MHP.
    This video is played by JMF.
    MHP HAVi defines a class "HVideoDevice",
    and it has a member method "getVideoController()"
    which return a java.lang.Object. It seems that
    the returned video controller should be able to
    scale the video area.
    I also check the javaDoc of JavaTV and I found that
    there is an interface "AWTVideoSizeControl"
    which looks exactly what I need.
    Is this how MHP scales a video area?
    Does JavaTV RI 1.1 implement this interface?
    I'm also wondering that if the implementation returns
    a class which implements AWTVideoSizeControl.
    Any reply is appreciated.

    Hi!
    I can give you a code that uses the AWTVideoSizeControl and scales the video.Here is the code:
    Rectangle source = new Rectangle(0, 0, 720, 576);
    Rectangle destination = new Rectangle(360, 0, 720/2, 576/2);
    resize(new AWTVideoSize(source, destination));
    private void resize(AWTVideoSize size) {
              ServiceContextFactory serviceContextFactory = null;
              javax.tv.service.selection.ServiceContext serviceContext = null;
              try {
                   serviceContextFactory = ServiceContextFactory.getInstance();
                   serviceContext = serviceContextFactory.getServiceContext(context);
              }//end try
              catch (Exception ex) {
                   ex.printStackTrace();
              }//end catch
              if (serviceContext != null) {
                   ServiceContentHandler[] serviceContentHandler = serviceContext.getServiceContentHandlers();
                   Player player = null;
                   if (serviceContentHandler.length > 0) {
                        player = (Player) serviceContentHandler[0];
                   }//end if
                   if (player != null) {
                        AWTVideoSizeControl awtVideoSizeControl = (AWTVideoSizeControl) player.getControl("javax.tv.media.AWTVideoSizeControl");
                        awtVideoSizeControl.setSize(size);
                   }//end if
              }//end if
         }//end methodThen you can start the player and play the scaled video.
    I hope it can help you.
    (I'm sorry for my bad english)
    Bye!!

  • Is licence required for implementing JavaTv and JMF.

    Hi,,
    I am trying to develop GEM middleware for my STB,
    The STB has OS20 as RTOS and implemented on an ST chip
    This GEM is DVB MHP minus DVB.
    We have to implement JavaTV package and JMF for that,
    But do we have to pay any royalty to SUN for implementing the JavaTV or JMF packages or can we implement the binary versions of the packages.
    Please letme know how to implement the following packages
    org.havic.*
    org.davic.*
    javax.tv.*
    org.dvb.*
    and JMF?

    Hi Rohit,
    let me also add a few words. In principle the process Sales Order Processing B2B with ERP sales order in CRM Web Channel means that you setup (a) Web shop(s) that use and display the CRM product catalog but create orders directly in SAP ERP without first creating them in SAP CRM. It also allows to use certain E-Marketing features of CRM in the Web shop. The CRM product catalog in this process can only be used if you do use the TREX. There is no way of directly call up the catalog from CRM in the Web shop by bypassing the TREX.
    In the SAP E-Commerce for SAP ERP solution (ECO ERP) we in contrast offer the possibility to use the ERP catalog without the TREX. In this solution you can use the Memory Catalog which is not using the TREX. This solution by this way allows to directly use and display the ERP catalog and create orders directly in SAP ERP.
    For the CRM catalog in contrast we do not have something similar to the Memory Catalog. Instead you DO need to use the TREX to display the CRM catalog in the Web shop.
    The only option you have to "avoid" the TREX i a CRM web shop is what Easwar and Christoph have written about: The usage of an external catalog from a 3rd party catalog engine via the Open Catalog Interface (OCI) in the CRM Web shop. This we do offer for the CRM Web shop. However if you do not have an external catalog engine and want to use the CRM catalog then again you do need to use the TREX. It does not matter if you do not want to use product search nor prices other than fro ERP sales order.
    Greetings
    Torsten Kliesch

  • Need help in installing jmf

    Hi friends, i installed jmf-2_1_1e-windows-i586 to c:\programfiles .i need it just to capture image from webcam using java code.I installed it and read the readme about seting classpath and path.i have set it as follows
    i dont know whether to change classpath and path from user variables for administrator or from system variables. please tell me
    from user variables for administrator my class path has automatically changed to
    .;.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;
    C:\PROGRA~1\JMF21~1.1E\lib;C:\WINDOWS\java\classes;.
    and path
    C:\Program Files\Sun\jstudio_ent8\ide\uml1\modules\DoorsIntegrationFiles\modules\bin;
    i added this to it
    C:\Program Files\JMF2.1.1e\lib
    and from system variable i added following to class path
    C:\Program Files\JMF2.1.1e\lib\jmf.jar;C:\Program Files\JMF2.1.1e\lib\sound.jar;C:\Program Files\JMF2.1.1e\lib\customizer.jar;C:\Program Files\JMF2.1.1e\lib\mediaplayer.jar;C:\Program Files\JMF2.1.1e\lib\multiplayer.jar;.
    and to path
    C:\Program Files\JMF2.1.1e\lib
    and now while compliling the code it says package javax.media does not exists
    i have set everyhting as mentioned above
    please some one help me

    Doesn't jmf set the classpath and path for you. We don't even have to move even a strand of hair. Everything is handled by the jmf.

  • What is the relationship of javatv api,jmf api and mhp api ?

    Whether all these three set of API are required to write digital tv program?

    That depends on what the digital TV program (I assume you mean MHP application) wants to do. Specifically;
    - javax.tv.xlet.Xlet is needed whatever you want to do.
    - Most of the rest of JavaTV is only needed if you want to write an electronic program guide, e.g. to get at service information.
    - If you want to write a program which manipulates the video & audio of the TV signal then you need the JMF API and also a small part of javax.tv.service.selection to get hold of the JMF player for the running TV content.
    - The MHP APIs do many different things, again depending on what your application wants to do.
    - You don't mention them but you also probably need some of the org.havi.ui APIs. In MHP, the top level graphics Container class for applications is an instance of org.havi.ui.HScene. Also the "VK_" constants for some of the remote control codes are only defined in org.havi.ui.HRcEvent.
    See http://www.mhp-interactive.org for examples of how to use many of the MHP APIs.

  • Jmf in mhp

    Hi all,
    Can any one tell me how can I creat JMF player in MHP without any services I mean STB is not connected to any satellite.Ur help is higly appriciated in this regard.Pls let me know in detail.U can mail me at [email protected]
    Ramesh

    You can't create a valid JMF player for a DVB service without having a valid locator for it (meaning, one that the implementation can recognise as valid and pointing to some useful content). If you try, Manager.createPlayer() should throw an IOException.
    You can create a Player for other media types supported by MHP without having a connection to a transport stream, but I guess this isn't what you want to do, right?

  • New MovieTools project to help gather useful JMF utilities

    Hi,
    I wanted to announce a new project called movieTools on java.net that may be helpful to folks working with JMF. http://movietools.dev.java.net
    I started this project because I was spending a lot of time pulling my hair out trying to understand how JMF works (and I consider myself a decent Java programmer). It's a set of tools to handle tasks that would be useful to the vast majority of Java users who want to make movies or stream data but find the particulars of the JMF interface daunting. Instead of dealing with JMF Buffers and Sinks, you can deal with an interface that asks for BufferedImages.
    This project was started with the generous contribution of source by some folks on the JMF-INTEREST mailing list. If anyone is interested in tools that let competent java programmers (but non-JMF gurus) use JMF, please have a look at the project.
    Also, if you have developed useful tools that you'd like to contribute, please do so. :)
    Mark McKay

    Make that URL http://movietools.dev.java.net

  • Help needed with JMF and FFMPEG

    Hi, im using Jave which is a wrapper libraray for FFMPEG to encoded videos and im also using JMF to take snapshots of the video to save as thumbnails. All the code I have works except that I cant get Jave(FFMPEG) to encoded the videos in to a format that JMF can handle. Does any body know a format or codec that Jave(FFMPEG) can use to get JMF to handle the videos.
    Cheers, any help will be much apprecitated.

    One solution to most of your questions : Read the advanced table section of Dev guide.
    Always go through the dev guide before putting up the issue. Let the forum be for those scenarios which dev guide doesn't covers in much detail.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need Help Mp3 with jmf?

    Can somebody write a few lines of code that i can play an *.mp3 file with the jmf (with an application). I visited the Jmf HP but i can't find some examples about this problem.
    Please help me rapidly
    Thank you
    Thomas R.

    It's been a while, but I think I still remember:
    To play any media with the JMF you must obtain a Player object for the file containing the media. This is done by invoking the static createPlayer method of the Manager class. The only import you should need is javax.media.*;
    example:
    File f = new File("myMP3File.mp3");
    Player p = Manager.createPlayer(f);This will return to you a Player object, which has start and stop methods to start and stop playing the media, obviously.
    The JMF is pretty limited w.r.t. mp3 playback unless you delve deep into the API, and get the GUI component for the player, but I can't remember the code for doing that, and anyway, playing mp3s with the JMF is pretty poor at the moment, because it is so slow to start the songs. Who knows, maybe when computers get fast enough, java may actually perform reasonably in this area.
    Hope this helps.

  • Help for "Table" component in mhp/dtt

    Hi,
    i'm a Italian software developer.
    i'm searching for some "table" component to use it in my projects to display lot of Strings in a such clear way.
    I tryed HListItem and HListGroup without appreciable resoults.
    Do you know and/or use particular Objects to do it well?
    Or, must build i my own customized component from existing yet!?
    Thx for answers and sorry for my bad enghlish too!!
    Claudio

    hi
    i am also searching for table like component in mhp, but their is no such component i had found. so i think you have to create your own component.

  • HELP, Diagnostics Applet JMF classes.....Not Found

    Hi,
    I installed JMF and verified the jars are included in classpath and path, but when I run the diagnostic applet page, it still says Applet JMF classes not found, anyone has any idea?
    classpath:
    .;.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib
    ;C:\WINDOWS\java\classes;.
    path:
    C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program F
    iles\IBM\Infoprint Select;C:\Notes;C:\Program Files\XLView;C:\lotus\compnent;C:\Utilities;C:\Program Fil
    es\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\Program Files\ThinkPad\ConnectUt
    ilities;C:\WINDOWS\Downloaded Program Files;C:\Program Files\Common Files\Lenovo;C:\Program Files\ATI Te
    chnologies\ATI Control Panel
    JMF Diagnostics:
    Java 1.1 compliant browser.....Maybe
    JMF classes.....Not Found
    http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/jmfdiagnostics.html

    Everything looks fine as far as the setup goes... Unless you're having problems with a specific JMF application, I wouldn't worry about the diagnostic applet telling you it isn't installed correctly.
    Very well could be a browser security issue with the applet...

  • Help with a JMF package

    I've found that the cross-platform JMF software that I have recently downloaded from the sun website doesnt contain the
    com.sun.media.protocol.vfw.VFWCapture package I was wondering if anyone could provide me with this file.
    I have extracted my "package.jar" file and traced out the folder structure.
    and Ive found that this package does not exist.

    Hi,
    try to implement the Interface MouseListener (or the corresponding MouseAdapter):
    eg:
    class DrawingToolFrame extends JFrame implements ActionListener, MouseListener{
    //add a MouseListener to the component withing you would like to fetch the mouse-coordinates
    yourPanel.addMouseListener(this);
    //implement the five methods of the MouseListener
    public void mouseClicked(MouseEvent�e){}
    public void mouseEntered(MouseEvent�e){}
    public void mouseExited(MouseEvent�e) {}
    public void mousePressed(MouseEvent�e){}
    public void mouseReleased(MouseEvent�e){
    e.getX(); //Coordinates of the mouse after releasing the button
    e.getY();

  • How to record DVB-S Stream with JavaTV/JMF ?

    Hi,
    i'm starting to program with JavaTV and JMF. Now my Question is, how can i record a DVB-S Stream (DVB-Card: Haupauge Nexus) to my hdd?

    MHP uses JMF 1.0, which does not include recording functionality. If you want to do this in Java then JMF 2.x includes recording support, but I'm not sure whether there is a JMF implementaiton that supports the Hauppage cards.
    Steve.

  • Javafx use jmf and capture audio device

    Hello, I noticed a problem with the use JavaFX and Java Media Framework (JMF), in a project javafx call Java classes using JMF, but are not recognized PC audio devices, in fact when I executed 's the code CaptureDeviceManager.getDeviceList (null), displays the error: "could not commit protocolPRefixList", without recognizing any audio device. Instead I call if my application using JMF, outside of a JavaFX project, the devices are found and everything works properly, perhaps this problem depends on the security settings of JavaFX, or inability to use JavaFX is that jmf interfaces with audio and video devices?
    thanks for the help

    I'd use jmf and javafx but it was not for capture devices.
    If you use jmf there are native libraries.
    The thing i found was about the java.library.path wich is overriden when you start javafx that jmf can't load approriate libs.
    Try to compare the System.getProperties for java and javafx then you should find where is the problem.

  • Code webcam using JMF

    anyone know how to code webcam application in java? I'm using "Vimicro USB PC Camera" webcam. Any helps are appreciated.

    JMF doesn't capture images from the web cam, it captures video streams from the web cam... if you're capturing individual images, you're doing something extra to make it to do that...
    So all you really need to do is to capture a frame of the web cam stream at whatever rate you need...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/FrameAccess.html]

Maybe you are looking for

  • How to create a popup window?

    I'm a JavaFX newby. I know that this question's been asked already and I read all the postings, but I still can't work out how to do this (I must be really stupid). Any sample code how to make this Popup class work will be highly appreciated. All I n

  • Exporting custom color palettes

    When I create a Pages 5 template for a client, how can I also send them the custom color palette that I created? Thank you!

  • Exporting from Quicktime for optimal editing in FinalCut Express

    I've read that it is recommended to export H.264 for best quality in Quicktime, but Final Cut Express doesn't play H.264 in real time. It forces you to render if you want to edit in the timeline. What is the best format to export from Quicktime in to

  • Zoom Factor won't work with PicRing??

    So a while back I asked if there was a way to be able to zoom in/out of a picture on the Front Panel. I was given the reply to use Zoom Factor and a user here even supplied me with a useful VI. And I've been working with this VI. It works well, but n

  • 10.4 update, cd/dvd stopped working

    Upon installing the 10.4 update my dvd drive has now stopped recognizing discs. I don't think it's even spinning. I fixed disk permissions via Disk Utility and restarted (several times) but still nada. Any ideas? It was working perfectly just seconds