Menu

Package com.sun.media & Java wrapper

user
2005-02-04
2013-05-09
  • Nobody/Anonymous

    Hello Everybody,
    I'm looking for some documentation about the package com.sun.media.*. I see it's bundled in jmf.jar, but I can't find any javadoc or similar documentation about it.
    I'm trying to implement a simple Java wrapper that integrates an MPEG decoder in JMF, something like a subset of what FOBS does with ffmpeg (but more simple) and I don't understand very well which could be a good starting point.
    For example, I see in FOBS Audio NativeDecoder source code that NativeDecoder.java extends com.sun.media.codec.audio.AudioCodec class: I can't really find anywhere some definition of that class!
    How did you get to know how this class was composed?
    (the problem is representig also in other classes...)

    Thanks for your eventual answers,
    Andrea

     
    • Jose San Pedro

      Jose San Pedro - 2005-02-04

      Hi,

      first of all, I would recommend you to use fobs. It does what you want to achieve and it is already coded ;)

      About coding your own codec, it's quite difficult to do it from scracth. I would begin from fobs classes and replace ffmpeg calls to your own library calls. My main documentation came from:
      - Javadocs and tutorials at the JMF site
      - Sample apps at the JMF site
      - I'm ashamed to accept it, but I did take a look at JMF sourcecode to debug some issues. Anyway, that wasn't too helpfull.
      - jffmpeg project for the JNI part.

      All of these sources are available from the internet.

      Good luck!!

      Jose San Pedro

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.