Using JFFMPEG with JMF

Hi,
I had been trying to use jffmpeg within JMF to decode/encode media formats like mp4 etc to be used. When I am tryin to access net.sourceforge.jffmpeg.VideoDecoder and add it into the registry and try to run a usual avi file. It says
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key MJPG.JavaClass
at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
at java.util.ResourceBundle.getString(ResourceBundle.java:274)
at net.sourceforge.jffmpeg.JffmpegVideoFormat.getCodecClass(Unknown Source)
at net.sourceforge.jffmpeg.VideoDecoder.setInputFormat(Unknown Source)
at com.sun.media.SimpleGraphBuilder.verifyInput(SimpleGraphBuilder.java:923)
at com.sun.media.SimpleGraphBuilder.matches(SimpleGraphBuilder.java:888)
at com.sun.media.SimpleGraphBuilder.doBuildGraph(SimpleGraphBuilder.java:322)
at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:168)
at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:84)
at com.sun.media.PlaybackEngine$PlayerTControl.buildTrack(PlaybackEngine.java:2102)
The code snippet is as below which I am tryin to use
String JFFMPEG_VIDEO = "net.sourceforge.jffmpeg.VideoDecoder";
Codec video = (Codec)Class.forName( JFFMPEG_VIDEO ).newInstance();
PlugInManager.addPlugIn( JFFMPEG_VIDEO,
video.getSupportedInputFormats(),
video.getSupportedInputFormats(),
PlugInManager.CODEC );
Please let me know where things are going wrong. If possible if anyone has any sample jffmpeg with jmf code, it will be very helpful.
Thanks ,
-vijay

This looks like jffmpeg fails to load the native libraries via JNI. When this happens, jffmepg tries to find an optional pure-Java decoder (which is not available in for MJPEG) -> Look into jffmpeg.properties. You have to ensure that libjffmepg.so is available in your java library path in order to use the native jffmpeg decoder (will be found automatically).
Also, you could try something like this:
System.setProperty("java.library.path", LD_LIBRARY_PATH);
libname = "jffmpeg";
System.out.println("mapped name"+System.mapLibraryName(libname));
System.loadLibrary(libname);
System.out.println("library loaded");

Similar Messages

  • How to use JFFmpeg with JMF

    Hi ,
    I am trying to use Jffmpeg with JMF to extend the supported format in JMF. I added jffmpeg-1.1.0.jar in class path variable.And I also made necessary changes to JMF Registry for JFFMPEG given in following url:
    http://jffmpeg.sourceforge.net/download.html
    But I could not play any mp4 video with JMF Studio.
    So,can any one help me to solve this problem?
    Thanks in advance
    Regards,
    Jyotirmoy

    This may not help much re Solaris, but is worth putting up here for reference for others, whilst the code structure may also be useful anyway being close to pure java and as a solution that reads & saves every frame.
    For Windows the folder in the zip includes Fobs4jmf, and - if necessary - setting preferences via the runjmstudio.bat should mean that the sun.bat will work for .mp4 and .flv video files.
    See vid2jpg.zip at http://www.exactfutures.com/index02.htm which includes the java source.

  • How to use ffmpeg with jmf

    I am trying to use ffmpeg with jmf. Do any one have any idea how to do it.

    Get binary distro and follow Manual Installation section of http://fobs.sourceforge.net/f4jmf_first.html

  • Help with jmf & javasound (if needed?)

    Im using jmf for my internet phone system , anyone got an example of using javasound with jmf. My problem is how to select microphone as the recording input from the soundcard, what if the recording input was set to line-in? how would i change it to microphone. If it can be done only using jmf then please tell. Or a mixture of javasound and jmf would be ok also.

    Im using jmf for my internet phone system , anyone got an example of using javasound with jmf. My problem is how to select microphone as the recording input from the soundcard, what if the recording input was set to line-in? how would i change it to microphone. If it can be done only using jmf then please tell. Or a mixture of javasound and jmf would be ok also.

  • How to use of ffmpeg or jffmpeg with java

    I am creating an application in java to convert one video format to other. (eg. avi to wmv) . as JMF does not support all the video formats available today. I read on the net that I can use ffmpeg or jffmpeg together with jmf to process many video formats. but i did not get any example or guide to use ffmpeg with java. Can you plese guide me how to use this libraries with jmf. with some example or simple steps to integrate ffmpeg with jmf.
    I am using java 1.6 and jmf 2.1. eclipse IDE and windows xp professional and redhat linux.

    Can you plese guide me how to use this libraries with jmf. No.
    This is a JMF forum. 3rd party stuff like ffmpeg is not supported here.

  • Capture cards to use with JMF....

    Hello, I need to buy a video capture card to use with JMF in order to get a video signal and send it using a stream channel.
    Somebody can help me and post a list of compatible capture cards with JMF?.
    I think on buy a PINNACLE 500 PCI but i have read that it is incompatible with JMF.
    Thanks.

    Creative webcam live should work, most webcams will work... at least under Windows. I've 2 older creative webcams that work under Windows.
    Not sure about Linux support though...
    Ps. there's a Java Media Framework section of this forum, where all the JMF related questions should be posted.
    regards,
    Owen

  • RTP (UDP) multicast stream with JMF...?!

    Hi.
    I am quiet new in the material of jmf and its plugins. I have a network which offers me an UDP stream (mpeg2 or mpeg4 both could be available). I can watch this stream with an freewareplayer called VLC.
    When using the JMF Studio tool, I can't watch the stream ... The Player is waiting for signals and breaks after 60 seconds. So, okay ... Maybe the JMF doesn't bring the right codec with it.
    Now I've installed jffmpeg, but that doesn't help a lot. I write done the JAR File in Classpath and installed the Plugin, MimeType and Demultiplexer (as described) in the JMF Registry. The behaviour of JMF Studio is the same. Does anybody have an idea wether jffmpeg supports this kind of streaming
    and/or what I can do to get the stream?! Maybe there is an better Plugin for my solution.
    I can't suppose that nobody here ever tried to get an Mpeg2 or Mpeg4 multicast stream with JMF. There must be an solution.
    Many thanks for your help and reply!
    Jan Stanetzki

    Hi funnyjanni,
    May be I am writing this after 4 years.
    I am also in the stage when you faced the same problem. You might have found the solution to this.
    Please help me on this. I am trying to use jffmpeg to play UDP mutlicast stream.
    Thanks
    jklanka

  • Using Jffmpeg

    Hi,
    I need to make a project that consist of receving the video stream from internet camera , than decoding it and displaying it in jogl based application as a frame by frame amination. I already implemented all that open gl part, but to use it I need to receive each frame as a BufferedImage.
    I found out that I could use mpeg2 compression.I also found Jffmpeg here:
    http://sourceforge.net/projects/jffmpeg/
    But I have no idea how to use it. I don't need to play any movies with JMF but simply decode received stream. Can you please write me some example ?
    And how to make it ready to use because the documentation is very poor and not so comprehensible
    I'm using NetBeans 5.5 to develop my application.

    This looks like jffmpeg fails to load the native libraries via JNI. When this happens, jffmepg tries to find an optional pure-Java decoder (which is not available in for MJPEG) -> Look into jffmpeg.properties. You have to ensure that libjffmepg.so is available in your java library path in order to use the native jffmpeg decoder (will be found automatically).
    Also, you could try something like this:
    System.setProperty("java.library.path", LD_LIBRARY_PATH);
    libname = "jffmpeg";
    System.out.println("mapped name"+System.mapLibraryName(libname));
    System.loadLibrary(libname);
    System.out.println("library loaded");

  • Recording (encoding) MP3 with JMF

    Hi all,
    I'm not sure to be the first one, but I ask anyway.
    Does anybody out there have a solution how to record (encode) MP3 with only using JMF.
    Your help will be highly appreciated !!!!!!
    Kind regards
    aro

    I havent installed that plugin but i can decode (play) mp3 files with jmf.
    So, i suppose it was for encoding.
    If anyone has proved the plugin... ?
    Anyway you can use fobs project or jffmpeg.

  • Play rtpdump files with jmf

    hello,
    I am trying to play a file created with rtpdump (or etheral) directly with jmf. I don�t know, how to create valid datasource and processor objects for a file with stored rtp-packets. Is there a possibility? Do I have to write an own demultiplexer f�r this rtp-dump format? Especially this RTP packets uses the H.263 format.
    Maybe there exists a code fragment for this problem.
    thanks a lot for your help

    I still didn't get it to work as I need it, but I made some progress so far:
    Instead of jffmpeg I used the FOBS for JMF Package (http://fobs.sourceforge.net/index.html) in addition with the JMF.
    Using this package allows you to play a 3gp-Video in Swing that is stored in your filesystem (!).
    I'm still having two problems with this solution:
    - I use a Java Webstart-framework and can't acces the user's harddisk, so I need to play the 3gp-Videos directly from memory (they are stored as byte[] in a database), but the current version of FOBS is limited to 3gp-Playback only from filesystem.
    - Each user of the application has to download and install JMF and FOBS for their OS (system-specific libraries). Especially FOBS is not always very easy to install, because it needs to change some of the jmf.properites. This can not be done with the JAR-distribution-System of WebStart and I'm expecting problems, when the users try to install both packages on their own.
    If you are developing a plain Swing-Application you might be satisfied with the possibilities of FOBS and JMF.
    Good luck :-)

  • How i can transmitt audio in LAN through the use of Java JMF

    can anynone help me to give the code for audio transmission in LAN through the use of JMF classes

    If you need help with JMF, there's a forum specificlly for JMF. Go ask your JMF question there...

  • Suggestion on using Cross platform JMF

    hi all,
    I have been using JMF windows performance pack to run audio and video in an applet.After creating jar file out of that, i tried running it in another system and found that,my jar file executes only after installing JMF in that system.How to solve this problem.What if i want to execute my jar file in other platforms such as linux,mac os x,etc.Should i use CROSS PLATFORM JMF.Please help me solve this problem.
    Thanks in advance
    Regards

    The performance pack versions of JMF are "generally" just for video capture functionality, eg. webcams and tv cards.
    If your code just requires JMF to play media ( video/sound) then I suspect you can get away with the cross-platform version. But if you need video capture, then that's too intensive for pure java, and Sun had to use native code, which required the separate "performance pack" releases.
    regards,
    Owen

  • How to create a Macromedia's Flash Java Player with JMF?

    How to create a Macromedia's Flash Java Player with JMF? Can you give me an example? My email:[email protected] [email protected]

    Yes, there is a way. Look up JTree in the API.-can you post some code.... i cant figure out on how to use JTree...
    i'm still confused on where will i get the entire directories of my drives...
    thanks

  • Play sdp file with JMF

    Hi,
    I have a Darwin Streaming Server(DSS) running on a machine, that reflects several broadcasts from other machines (I'm broadcasting to the DSS with JMF).
    I can see all the videos and audio without any problem with Quick Time, but I can't find a way to play the sdp files with jmf. I've searched the web for jmf and sdp, and there isn't much information, i've also tried to play with JMStudio..no luck. In the JMF solution there aren't any samples for SDP files....
    If I can't find a way to do it, I'll use Quick Qime 4 Java, the only problem is that there isn't a linux implementation :(
    Thanks in advance.
    Best regards,
    ANeto

    Hi,
    I have read all the mails on the JMF interest group regarding the Broadcaster and DSS.
    Well i too am trying to do a similar application. This is an Application
    Casting program basically to share my desktop with the other person sitting
    across the network using my client. And in order to multicast this, i am
    looking at using Darwin Streamng Server.
    The whole idea here is that i break the desktop image up into frames and
    then compress them and then send it over, protocol used here is TCP/RTP/UDP.
    I am trying to hit this stream of packets to DSS so that it can be accessed
    else where over the internet. I'm trying to under stand the basic
    authentication mechanism DSS uses, so that i can create the .sdp file and
    transfer it over to the DSS, which can further be accessed by any client
    that can understands sdp.
    As i read in the mail some of you were able to create the .sdp file with your custom built boradcaster and send it to DSS if i am not wrong.
    I have tried this with Mpegable Broad caster as you said.
    Now the problem i had was to create .sdp file with my application and push it to the DSS.
    So have you made some kind of a documentation or can you give me an idea as
    to how i can go about this. Or it will be even better if you can share the code with me.

  • Can I do this with JMF?

    hi,I am new to JMF
    I am doing a door bell system project.
    At the front of the entrance we have a micphone and webcam,when the vistor come to the door and "knock at" a staff's bell,
    1: I wanna show the staff who sits in his office who is the vistor. (He might use any kind of operating system,not just windows)
    2. if the staff is away I wanna to give the visitor an oppotunity to record down a voice message and when the staff come back he can retrieve the voice message.
    can I achieve all these functions with JMF?
    thanks!

    hi,I am new to JMF
    I am doing a door bell system project.
    At the front of the entrance we have a micphone and webcam,when the vistor come to the door and "knock at" a staff's bell,
    1: I wanna show the staff who sits in his office who is the vistor. (He might use any kind of operating system,not just windows)
    2. if the staff is away I wanna to give the visitor an oppotunity to record down a voice message and when the staff come back he can retrieve the voice message.
    can I achieve all these functions with JMF?
    thanks!

Maybe you are looking for