Doubt in JMF

Hi,
here i m installed a web cam driver and after that JMF also.
after start JMStudio it shows the video device encoding is in YUV format only. not in RGB. why it happens??
i m using Tech-com web camera. in tech-com web cam site it says that it will support RGB video support.
pls give me a solution
Thanks,
Anish

You should keep in mind that JMF is a rather old library, actually the media framework might be the weakest thing in the Java world.
The last official "update" was in 2003, see also the "Criticism and alternatives" section in Wikipedia:
http://en.wikipedia.org/wiki/Java_Media_Framework#Criticism_and_alternatives
(I think the 2.0 JMF API is even from 2001, so almost 10 years ago with no update).
You can see the "Criticism" also in the creation of all the alternative implementations.
So you might run into an issue where you will hardly find any answer (or will have a hard time until you actually find someone who is still working with it).
We might just hope that the switch to Orcale will lead to a revolution in the Media Framework in Java.
Sebastian

Similar Messages

  • Doubt with JMF

    Hi Java Rockers,
    Can any one clarify my doubt?
    I have a doubt in JMF.
    I just wrote a code to play audio and video and
    it was able to play audio and video in windows.
    When i run the same code in Mandriva Linux,
    'I obtained a message "Audio Bus Busy" and it does not played song.
    Actually What went to wrong?
    is it possible to play audio and videos With Java in Linux.?
    Java Version Used:JDK1.6

    Thank you Sir for your
    Suggestion and Help.Here is my Code:
    You please tell me necessary modifications that
    i have to make with this.
    I have 2 classes.
    One as JFrame and others a JPanel.
    JFrame Class:
    import java.net.URL;
    import java.io.File;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.ActionEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.ActionEvent;
    import javax.swing.JOptionPane;
    import java.util.Vector;
    import javax.media.*;
    class Media extends JFrame implements Runnable {
    MediaPanel mediaPanel ;
    Thread th;
    JScrollPane scrollPane2;
    Media(){
    MenuBar mbar=new MenuBar();
    Menu m=new Menu("File");
    MenuShortcut sc1=new MenuShortcut(KeyEvent.VK_O);
    MenuItem m1=new MenuItem("Open",sc1);
    m1.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
                   if(th!=null)
                        th.stop();
                   else{
                   Frame fr=new Frame();
                   FileDialog fd=new FileDialog(fr,"Open");
                   fd.setDirectory("E:\\songs");     
                   fd.setVisible(true);
                   try{
                   String name="file:\\"+fd.getDirectory()+"\\"+fd.getFile().toString();
                   URL mediaURL =new URL(name);
                   mediaPanel= new MediaPanel( mediaURL );
                   int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
                   int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
                   scrollPane2=new JScrollPane(mediaPanel,v,h);
                   setLayout(new BorderLayout());
                   getContentPane().add(scrollPane2,BorderLayout.CENTER);
                   if ( mediaURL != null ) {
                        mediaPanel.setVisible(true);
                        scrollPane2.setViewportView(mediaPanel);
                   repaint();
                   setSize(470,360);
                   //refresh_preview(new URL("file:\\"+fd.getDirectory()+"\\"+fd.getFile().toString()));
                   catch(Exception E){
                   JOptionPane.showMessageDialog(null,"Failed to play!"+"\n"+"Reason:"+"\n"+E.toString(),"Error",JOptionPane.ERROR_MESSAGE);
    MenuShortcut sc3=new MenuShortcut(KeyEvent.VK_E);
    MenuItem m3=new MenuItem("Exit",sc3);
    m3.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
              dispose();
    m.add(m1);
    m.add(m3);
    Menu Help=new Menu("Help");
    MenuShortcut hc1=new MenuShortcut(KeyEvent.VK_H);
    MenuItem H1=new MenuItem("About",hc1);
    H1.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
         JOptionPane.showMessageDialog(null,"Java ™ Media Player!","Version Info.. :",JOptionPane.INFORMATION_MESSAGE);
    MenuShortcut hc2=new MenuShortcut(KeyEvent.VK_Q);
    MenuItem H2=new MenuItem("JMF Installation Procedures",hc2);
    H2.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
         new HTMLHandler("file:\\"+System.getProperty("user.dir")+"\\html\\jmf.htm");
    MenuShortcut hc3=new MenuShortcut(KeyEvent.VK_S);
    MenuItem H3=new MenuItem("JMF Supportive File Formats",hc3);
    H3.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
         new HTMLHandler("file:\\"+System.getProperty("user.dir")+"\\html\\jmfdoc.htm");
    Help.add(H1);
    Help.add(H2);
    Help.add(H3);
    mbar.add(m);
    mbar.add(Help);
    setMenuBar(mbar);
    JLabel jl=new JLabel("Java Media Player",SwingConstants.CENTER);
    getContentPane().add(jl,BorderLayout.SOUTH);
    setSize(600,300);
    setTitle("Video/Audio Player in java");
    setVisible(true);
         Toolkit kit = Toolkit.getDefaultToolkit();
         Dimension screenSize = kit.getScreenSize();
         int screenWidth = screenSize.width;
         int screenHeight = screenSize.height;
         java.awt.Image img = kit.getImage("images//audio-category.jpg");
         setSize(screenWidth /2, screenHeight / 2);
         setLocation(screenWidth /4, screenHeight /4);
         setIconImage(img);
    Media(URL media_file){
    MenuBar mbar=new MenuBar();
    Menu m=new Menu("File");
    MenuShortcut sc1=new MenuShortcut(KeyEvent.VK_O);
    MenuItem m1=new MenuItem("Open",sc1);
    m1.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
                   if(th!=null)
                        th.stop();
                   else{
                   Frame fr=new Frame();
                   FileDialog fd=new FileDialog(fr,"Open");
                   fd.setVisible(true);
                   try{
                   String name="file:\\"+fd.getDirectory()+"\\"+fd.getFile().toString();
                   URL mediaURL =new URL(name);
                   mediaPanel= new MediaPanel( mediaURL );
                   int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
                   int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
                   scrollPane2=new JScrollPane(mediaPanel,v,h);
                   setLayout(new BorderLayout());
                   //JLabel jl=new JLabel("Java Media Player",SwingConstants.CENTER);
                   //getContentPane().add(jl,BorderLayout.SOUTH);
                   getContentPane().add(scrollPane2,BorderLayout.CENTER);
                   if ( mediaURL != null ) {
                        mediaPanel.setVisible(true);
                        scrollPane2.setViewportView(mediaPanel);
                   catch(Exception E){
                   JOptionPane.showMessageDialog(null,"Failed to play!"+"\n"+"Reason:"+"\n"+E.toString(),"Error",JOptionPane.ERROR_MESSAGE);
    MenuShortcut sc3=new MenuShortcut(KeyEvent.VK_E);
    MenuItem m3=new MenuItem("Exit",sc3);
    m3.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
              dispose();
    m.add(m1);
    m.add(m3);
    Menu Help=new Menu("Help");
    MenuShortcut hc1=new MenuShortcut(KeyEvent.VK_H);
    MenuItem H1=new MenuItem("About",hc1);
    H1.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
         JOptionPane.showMessageDialog(null,"Java ™ Media Player!","Version Info.. :",JOptionPane.INFORMATION_MESSAGE);
    MenuShortcut hc2=new MenuShortcut(KeyEvent.VK_Q);
    MenuItem H2=new MenuItem("JMF Installation Procedures",hc2);
    H2.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
         new HTMLHandler("file:\\"+System.getProperty("user.dir")+"\\html\\jmf.htm");
    MenuShortcut hc3=new MenuShortcut(KeyEvent.VK_S);
    MenuItem H3=new MenuItem("JMF Supportive File Formats",hc3);
    H3.addActionListener(new ActionListener(){
         public void actionPerformed(ActionEvent e){
         new HTMLHandler("file:\\"+System.getProperty("user.dir")+"\\html\\jmfdoc.htm");
    Help.add(H1);
    Help.add(H2);
    Help.add(H3);
    mbar.add(m);
    mbar.add(Help);
    setMenuBar(mbar);
    JLabel jl=new JLabel("Java Media Player",SwingConstants.CENTER);
    URL mediaURL = null;
    mediaURL = media_file;
    mediaPanel= new MediaPanel( mediaURL );
    int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    scrollPane2=new JScrollPane(mediaPanel,v,h);
    setLayout(new BorderLayout());
    getContentPane().add(scrollPane2,BorderLayout.CENTER);
    getContentPane().add(jl,BorderLayout.SOUTH);
    if ( mediaURL != null ) {
    mediaPanel.setVisible(true);
    scrollPane2.setViewportView(mediaPanel);
    setSize(600,300);
    setTitle("Video/Audio Player in java");
    setVisible(true);
         Toolkit kit = Toolkit.getDefaultToolkit();
         Dimension screenSize = kit.getScreenSize();
         int screenWidth = screenSize.width;
         int screenHeight = screenSize.height;
         java.awt.Image img = kit.getImage("images//audio-category.jpg");
         setSize(screenWidth /2, screenHeight / 2);
         setLocation(screenWidth /4, screenHeight /4);
         setIconImage(img);
    void init(){
    public void refresh_preview(URL media_file){
    URL mediaURL = null;
    mediaURL = media_file;
    if ( mediaURL != null ){
    MediaPanel mediaPanel = new MediaPanel( mediaURL );
    mediaPanel.setVisible( true );
    scrollPane2.setViewportView(mediaPanel);
    public void run(){
    try{
    th.stop();
    catch(Exception E){}
    **JPanel Class:**
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.IOException;
    import java.net.URL;
    import javax.media.CannotRealizeException;
    import javax.media.Manager;
    import javax.media.NoPlayerException;
    import javax.media.Player;
    import javax.swing.JPanel;
    import javax.swing.JLabel;
    import javax.swing.ImageIcon;
    import javax.swing.JOptionPane;
    public class MediaPanel extends JPanel
    JLabel l=new JLabel();
    public MediaPanel( URL mediaURL ){
    setLayout( new BorderLayout() ); // use a BorderLayout
    // Use lightweight components for Swing compatibility
    Manager.setHint( Manager.PLUGIN_PLAYER, new Boolean(false));
    try
    // create a player to play the media specified in the URL
    Player mediaPlayer = Manager.createRealizedPlayer( mediaURL );
    // get the components for the video and the playback controls
    Component video = mediaPlayer.getVisualComponent();
    Component controls = mediaPlayer.getControlPanelComponent();
    if ( video != null )
    add( video, BorderLayout.CENTER ); // add video component
    else{
    add(l);
    l.setIcon(new ImageIcon("images\\black.jpg"));
    if ( controls != null )
    add( controls, BorderLayout.SOUTH ); // add controls
    mediaPlayer.start(); // start playing the media clip
    } // end try
    catch ( NoPlayerException e ){
    System.err.println( "No media player found" );
         JOptionPane.showMessageDialog(null,"Reason:"+"\n"+e.toString(),"ERROR",JOptionPane.ERROR_MESSAGE);
    catch ( CannotRealizeException c ){
    System.err.println( "Could not realize media player" );
         JOptionPane.showMessageDialog(null,"Reason:"+"\n"+c.toString(),"ERROR",JOptionPane.ERROR_MESSAGE);
    catch ( IOException i ){
    System.err.println( "Error reading from the source" );
         JOptionPane.showMessageDialog(null,"Reason:"+"\n"+i.toString(),"ERROR",JOptionPane.ERROR_MESSAGE);
    ]

  • VoIP using JMF - RTP tx, rx - doubt

    Hi, I am computer engineering graduate from India doing a VOIP project.
    I am using JMF to develop the software and I have a few doubts :
    1. There are quite a few techniques for RTP transmission :
    a) Using RTPSocket and a custom UDP handler.
    b) Using RTPManager to start a session.
    c) Using a medialocator (rtp//inet addr.port//ttl) and a Datasink.
    and may there are other methods too ?!
    Now which of these should I use so that I have the best quality voice ?
    Please advise.
    2. Secondly, I read that H.323 is the ITU-T standard for multimedia networks. Is it necessary for my software to adhere to this standard ? If yes, how can I go about it?
    My email-id is : [email protected]
    Thank you,
    Arun .K

    well friend it depends totolly on you, what sort of thing u want to do i mean using media locator to send and recieve the media streams u can only response to single stream.While using RTPManager u can have mutiple streams in a session and using custom UDP protocols u can have much more controll over the media stream.
    I think u should send me a little detail about what you want so that i can guide u properly.
    thank you
    bye

  • JMF code working under linux but not windows XP

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

  • Can jmf control 4 ports input from falcon plus framegrabber card?

    Hihi,
    I am not sure if the jmf can be used to control or stream video from a frame grabber card with 4 ports? this is falcon plus card from ids-imaging. can some one help me to solve my doubt? thanks.

    I'm so stupid... I should've thought about iptables... I'm reconfiguring them now, thank you very much!

  • How to compile JMF source code

    Hello,
    Im working in an application which uses Java Media Framework to code/decode and transmit/receive the video and audio. I need to modify the h.263 codec in order to get an especial issue related to video.
    I download the source code of jmf I found in this topic: http://ohmydear.tistory.com/attachment/48fd0e73b49f9C0.zip. But I dont know how to compile the jmf in eclipse tool. Does anybody know?
    If anybody doesn't, would anybody know how to modify the coding and decoding of h.263 in JMF. I have no idea how to get that?
    Thanks a lot and best regards.
    Pedro

    pedritomoreno wrote:
    I download the source code of jmf I found in this topic: http://ohmydear.tistory.com/attachment/48fd0e73b49f9C0.zip. But I dont know how to compile the jmf in eclipse tool. Does anybody know?
    If it's not just a straightforward build, then I doubt anyone has instructions on how to do it...
    If anybody doesn't, would anybody know how to modify the coding and decoding of h.263 in JMF. I have no idea how to get that?Well, if you look at the following link...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
    You'll see that for h.263, decryption is the only thing that's implemented in Java (the things that are in the windows pack but not in the cross platform pack are implemented in native code)... so if you're wanting to do h.263 encoding, you'll have to code that from the ground up...
    Read the following post for more information about writing your own codecs...
    [http://forums.sun.com/thread.jspa?messageID=10725041#10725041]

  • Recording using JMF

    Hi,
    I am developing a web application where i need to capture the desktop activities along with the audio.This recording stuff i'm planning to do in applet.It would be greatly helpful if someone clarifies my doubts.
    1.Is JMF the right technology for this application?
    2.What are the best formats in which this recording should be done as per quality and for streaming.
    I have tried to some extent on this where i end up with the following doubts again
    3.I'm creating two processors for audio(LINEAR) and video(JPEG) datasources which i'm merging to a QUICKTIME format file created using datasink(all at a time).But when i play the recorded file there is no sink between audio and video.Video plays at a very faster rate.Can some one suggest the possible cause for this?
    4.The size of the file created is very large.How can i compress it as i need to upload this file on to server through network.
    Thanks in advance...

    When I tried transcode.java,and gave my 50MB "Quicktime" file to convert to "Avi" file, the file size drastically increased to 600MB....i don't know if I'm doing some thing wrong.
    Following is the code that i'm using to generate a quicktime file.If you can find something that is done wrong please let me know.
    videoSource = new com.sun.media.protocol.screen.DataSource();
                videoSource.setLocator("screen://0,0,1024,768/6");
                videoSource.connect();
                CaptureDeviceInfo di = null;
                Vector deviceList = CaptureDeviceManager.getDeviceList(
                        new AudioFormat("linear", 44100, 16, 2));
                if (deviceList.size() > 0) {
                    di = (CaptureDeviceInfo) deviceList.firstElement();
                audioSource = new com.sun.media.protocol.dsound.DataSource();
                audioSource.setLocator(di.getLocator());
                audioSource.connect();
                DataSource mergedSource = Manager.createMergingDataSource(new DataSource[]{videoSource, audioSource});
                Format[] trackFormats = new Format[2];
                trackFormats[0] = new VideoFormat(VideoFormat.JPEG);
                trackFormats[1] = new AudioFormat(AudioFormat.LINEAR);
                ProcessorModel pmodel = new ProcessorModel(mergedSource, trackFormats, new ContentDescriptor(FileTypeDescriptor.QUICKTIME));
                mergingProc = Manager.createRealizedProcessor(pmodel);
              outSink = Manager.createDataSink(mergingProc.getDataOutput(), createMediaLocator("NAV123.mov"));
                mergingProc.addControllerListener(new ControllerStopListener());
                sinkListener = new SinkStopListener();
                outSink.addDataSinkListener(sinkListener);Thank you very much for your patience and quick response......

  • JMF in Solaris - Unable to handle format

    Hi
    I ran the sample codes AVTransmit2 and AVRecive2 in Windows and it worked great. However, when I ran it in Solaris, I got the following error.
    Unable to handle format: mpegaudio/rtp, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
    Failed to prefetch: com.sun.media.PlaybackEngine@9ff0a8
    Error: Unable to prefetch com.sun.meida.PlaybackEngine@9ff0a8
    AVReceive2 internal error: javax.media.ResourceUnavailableEvent[source=com.sun.media.content.unknown.Handler@738d08, message=Failed to prefetch: cannot open the audio device]
    WARNING: XIL OBSOLESCENCE
    This application uses the Solaris XIL interface which has been declared obsolete and may not be present in versions of Solaris beyond Solaris 9. Please notify your application applier.
    Anyone has any idea on why it went wrong?
    Thanks,

    I doubt the convertion to stereo or to big endian will have any effect, because...
    AVReceive2 internal error: javax.media.ResourceUnavailableEvent[source=com.sun.media.content.unknown.Handler@738d08, message=Failed to prefetch: cannot open the audio device]That message is telling you that JMF has failed while trying to get permission to obtain the audio device...IE, your sound card. You probably need to run as root, if you're not...

  • JMF cant detect more than one camera

    hiiii to all
    1 ) in my program that list all devices (webcams) connected to my DELL laptop ( windows xp2 ) and choose one to capture from
    it detects only one cam that is embeded in my lap when i connected another cam
    it lists only the embeded cam and not detect the external connected cam although i capture from it with my program on other pc
    i tried also JMF registry to detect capture devices it also detect the embeded cam only
    2 ) also i tried to run the program on another HP laptop (windows vista business) and cant detect any devices(audio,video)
    Is JMF conflict with widows vista?
    really need answer for these 2 questions
    thanks in advance

    mena.sam6 wrote:
    really need these answers since i search and cant find all answers i needIf you can't find these answers, you're really, really bad at looking stuff up...because they are all easily answered by going to [www.adobe.com] and finding Flex.
    I'll answer your first round of Flex questions, but they are off-topic for this forum because they have nothing to do with Java...but I'll answer these for you.
    how about adobe flex? is it possible with desktop applications using socket programming ?
    or it is used on web pages only ?Flex is a web-based or Desktop application architecture...
    and how about its capabilities ? easy to use or not ?Dunno, never used it. The code I saw looked pretty simple, it uses something called "ActionScript" to function, which looks a lot like JavaScript.
    When I looked into it, I never had any doubt that I'd be able to write an application in it.
    can i use both JMF, Adobe flex in same application efficiently ?No, they are completely different things, you can't mix them into the same application. It's certainly possible to transmit data back and forth between a Flex application and a JMF application, but they would be separate applications.
    If you have any other questions about Flex, you'll need to find an Adobe Flex forum to ask them in...

  • Jmf web cam not recognize under ubuntu 12.04

    I installed the jmf2.11e under ubuntu 12.04 following all the steps of the guide jmstudio seems to work well I open a movie in rtp.
    the problem and the web cam is not recognized and when I try to get to recognize capture devices
    java.lang.Error: Can not open video card 1
    ava.lang.Error: Can not open video card 2
    ava.lang.Error: Can not open video card 3
    ava.lang.Error: Can not open video card 4
    ava.lang.Error: Can not open video card 5
    ava.lang.Error: Can not open video card 6
    ava.lang.Error: Can not open video card 7
    ava.lang.Error: Can not open video card 8
    ava.lang.Error: Can not open video card 9
    I wanted to know if it depends on the model of the web cam
    or this version of linux is not supported
    if that were true, there is another way to use the web cam using java and integrate it with the jmf
    my application should use the webcam under linux
    and transporting the contents in rtp,
    All this works fine under Windows
    Fortunately linux should be spotless and without bugs :)

    hello, since no great guru gave me answer, (I doubt that there are still now gone are the good old days)
    I solved using a library http://code.google.com/p/v4l4j/
    I hope this can be of help to someone
    avoid making a night to try jmf that do not work with the web cam in ubuntu 12.04

  • Adding MP4/RTP support in JMF

    Hi All,
    I want to add support in jmf to stream RTP streams for MP4 files. For this i used Fobs4Jmf to read mp4 files from the local system. As fobs4jmf only read MP4 file from local system and render it on jmstudio, but not able to create MP4V/RTP and MP4A/RTP, therefore i tried writing my own packetiser for MP4 files. But then i realised fobs4jmf uses FFMPEG_VIDEO codec to read all videos and FFMPEG_AUDIO codec to read all audios. FFMPEG_VIDEO converts all video types MP4,mpeg etc to RGB format and FFMPEG_Audio converts all audio types to LINEAR format. Now i want to send this data in MP4/RTP packet but have no idea how to convert RGB in MP4V and Linear into MP4A.
    I think i am missing something. Or i am doing it all together wrong.
    My ultimate aim is to stream videos to mobile using RTSP. I have written my RTSP server but for that i need RTP streams.
    Is there any other way to stream RTP streams to mobile from jmf.
    Kindly help me i am totally stuck.

    search4rajat wrote:
    Hi, is anyone there who can help me. Where is captfoss and other gurus of jmf. I was on vacation.
    Kindly help me it is very important. Any slight insight may be helpful.... like how to stream RTP to mobile.I doubt it's "very important"...
    If the remote system handles MP4/RTP streams, then you'll likely need to do nothing else but write an MP4 packetizer... and the packetizer probably won't need to do anything but break the file up into peices, no special processing.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/CustomPayload.html]
    Modify that example so that instead of taking in AudioFormat.LINEAR and outputting CUSTOM_PCM, make it so it takes in MP4 and outputs MP4_RTP... and just play around with the example. I've never written a custom packetizer, so I don't have any grand advice other than, use that example and try to create a simple MP4 packetizer.
    Your processor shouldn't be transcoding from MP4 to RGB if you're wanting to transmit in MP4-RTP. It should be transcoding from MP4 directly to MP4-RTP, which is what your custom packetizer will do...

  • Video Streaming with JSP and JMF.

    Hi. I have this problem. I'm projecting (not building yet) a system. In this system i have a Local Computer, a server, and a Web Page (JSP). The Local Computer is going to capture video from a WebCam with JMF. This videos is going to be passed to the server by RTP Control. A Web Page (JSP) is gonna acess the server to get this video and show it (Real Time Streaming).
    My doubt is, how I can do that on JSP ? How i can get the video from server (remebering that this one is getting the video from the local computer) and show it in my page ?

    no one ????

  • Play RTSP stream with JMF

    hello, all, i tried to play RTSP stream with JMF, but i always get error:
         connection info: IN IP4 0.0.0.0
         connection info: IN IP4 0.0.0.0
         Failed to realize: Server is not responding
    But when i play RTSP stream with VLC, everything is well.
    Anybody can help me?
    Regards,
    lefish

    JMF does not. JMF only plays RTP-protocol streams.I doubt it.....though I have never tried to play RTSP streams using JMF but seeing following links I do think client side RTSP is supported by JMF:
    [http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs/index.html#jmf2-rtsp-features]
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/support-rtsp.html]
    Thanks!

  • Jmf abandoned? Are there alternatives?

    Hey people,
    I think it's been a month since i started searching more about JMF, and the more i look more doubts i get. My problem is:
    I work on a web-based system for health assistance. Its objective is to let less-experienced doctors that work in smaller centers of medicine send info about some pacients to higher level doctors and ask for a second opinion. This info include: pacients' laboratory exams, videos, photos,etc. You can access the system via browser, and you just need a login and pw to use it.
    The main problem is with video exhibition, actually there are 3 problems about video exhibition:
    1.Our videos are played on an applet that uses JMF 2.1.1and because of that, the doctors that access the system for the 1st time will always have to install JMF. For us, this is a problem because our clients aren't people from IT that are used to install and uninstall all the time.
    2. JMF has a limited number of formats and codecs and, sometimes, a client has the GREAT idea of encoding the video in a not-standard format like Divx 5.0 (DX50). So we have to look all over the net trying to find some sort of implementation of the codec in java. And since the client machine only installs the jmf, any alteration has to be sent with the applet. Here is some part of the html code:
    <br><br>
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width = 800 height = 600 codebase="http://java.sun.com/products/plugin/1.1.1/jinstall-111-win32.cab#Version=1,1,1,0">
    <param name = CODE value = healthnet.player.MultiApplet.class >
    <param name = CODEBASE value = "${diretoryArchives}/player" >
    <!-- remeber of modifying the archives!!! -->
    <param name = ARCHIVE value = Player.jar,jmf.jar,sound.jar>
    <param name="type" value="application/x-java-applet;version=1.1">
    <param name = path value = "${diretoryExams}/${exam}">
    <param name = "size" value = "${size}">
    <!-- remember of modifying the archives!!! -->
    <embed type="application/x-java-applet;version=1.1" java_code = PlayerApplet.class java_codebase = "${diretoryArchives}/player" java_archive = "Player.jar,jmf.jar,sound.jar" width = 800 height = 600 file = "${diretoryExams}/${exam}" pluginspage="http://java.sun.com/products/plugin/1.1.1/plugin-install.html"><noembed></noembed></embed>
    </object>
    <br>
    We are trying to send the jmf together with the Applet but we are having some problems with native methods...
    3. We are trying to find an alternative for JMF since, as I can see, sun has amost abandoned JMF. Our main focus now is to find alternatives and not to implement new codecs, and etc.
    So what do you think? Is there any alternative for JMF? Do you know what people are using to play videos via browser in Java? Anything in this area can help, soo... Thanks =)

    Ah, about DivX, I've already tried to include ffmpeg.jar and fob4jmf.jar inside jmf.jar since these two have implementations of some codecs that aren't standard in jmf, but it doesn't work at all. I think that maybe I firstly have to find out how to send jmf together with the applet to the client-browser... or maybe not... maybe jmf isn't the solution to anything anymore... Anyway! Waiting for answers

  • JMF RTSP Client features: Recording & Playing?

    Hello all,
    we hace decided to use RTSP to use in our video surveillance application. We will have a central server with a RTSP server (DSS or other, we haven't decided yet) and users will connect to it with the JMF Client.
    Our doubt is to know what is implemented in JMF RTSP Client, it can receive video from the server (PLAY) and send it to the server (RECORD) or one of the features is not implemented? In this case, has someone implemented it? Is easy to realise?
    About the server we suppose that is better to use the of a commercial one (DSS) and program the interaction with the rest of the central server that design a RTSP Server in JMF. What do you think?
    Thanks in Advance :)

    if you download the source code for jmf, there is RTSP code there.
    It will give you guidence on how it works.
    http://wwws.sun.com/software/communitysource/jmf/download.html
    Using DSS will work, but there are brick walls, you will hit.There are posts about dss4 and dss5.
    I do not know if anyone has succeeded in what you want, but I know that a lot of work will get the job done.
    good luck ;)

Maybe you are looking for

  • Unable to install Windows Phone Recovery Tool.

    Hello, during an installation of Windows Phone Recovery Tool 1.2.4 (downloaded from official source), I get a message about error 0x80070002. All requirements seems to be fulfilled (disk space, OS version etc.). I want to install WPRT to make a downg

  • Pages 5.2.2 - how to add a logo in the page header

    Hi, how can I add a logo in the page header of each page?! seems header and footer only supports text and automated page numbering only... I need some advise on this one thanks

  • 32-bit Vista Home Premium - Explorer.exe visual basic library C++ runtime crash

    Friends, I have a weird Explorer.exe crash going on when attempting to use Windows Explorer to access my iTunes Movies folder. Background: Running 32-bit Windows Vista Home Premium (SP2) on a Gateway GM5664 Desktop (2.3 GHz Quad-core AMD CPU with 3 G

  • Backing up Personal Preferences

    Recently bought the Curve (Verizon) and after reading these threads, decided to use Missing Sync to backup my information.  It's been working great Then...I had an IM icon that I could not remove from my handset.  So...I did what was recommended and

  • Marketing Org Determination in Campaigns/Marketing Plans

    Hi Friends, Can anyone please tell me how do we do automatic determination of Marketing Org Unit for Marketing Plans/Campaigns? Thanks alot in advance !! Kind Regards, Neeraj Sharma