Menu

Audio Files

user
2004-11-24
2013-05-09
  • Nobody/Anonymous

    Hi.
    I am running a linux debian enviroment; JSDK build 1.4.2_06-b03. I compiled the ffmpeg with liblame for *.mp3 and libvobis for *.ogg support and added both libs to the  EXTERNAL_LIBS var. So far no bug to report. Everything seemed to compile and build find appart from warnings. I wanted to use the wrapper with jmf so next step was to register the fobs packet there.
    Finally I was able to play DIVX and XVID files!!! Nevertheless I compiled the package with ogg and mp3 support the pure mp3 and ogg files will  cause an exception:
    <code>
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x4D9D3503
    Function=_ZN9omnividea4fobs7Decoder9_getWidthEv+0x13
    Library=/path/to/java/j2sdk1.4.2_06/jre/lib/ext/libfobs4jmf.so
    </code>
    So I decided to check
    omnividea::fobs::Decoder::getWidth() in Decoder.cpp
    After some debuging I realized that even "lib/samples/test" exits with a "Segmentation Fault" with an only audio input file. So i decided to put some "if (videoStreamIndex >=0)" lines into Decoder.cpp and got rid of the Segmentation Fault. BUT javas jmf now reports now a player not font exception

    Can somebody help me please and fix this or recomend me something?!

    Tom

     
    • José San Pedro

      José San Pedro - 2004-11-24

      Hi Tom,

      you are no the only one with this problem... I'm beggining to think seriously of provinding a patch for this issue. The problem is related to the architecture of the core of Fobs. Fobs was intended to work with video files, and all timing related functions make use of video timestamps. This means that without a video stream, the core is unable to work correctly. SOund support was not one of my goals when developing Fobs, but it seems to be having a great demand. I will try to fix the situation ASAP.

      Cheers!

      Jose San Pedro Wandelmer

       
    • Nobody/Anonymous

      Dear Jose San Pedro

      Nevertheless YOU did A GREAD JOB. I am working on this jmf media server and after hearing about vcm on windows I was eager to find something similar on other platforms. I can' t tell you how relieved I was when I found your project! I am not really into C++; more into Java of course. So I don't think I would be much of a help. But, please keep up the good work!!!

      Tom

       
    • Nobody/Anonymous

      Hi it's again me Tom,

         I somehow managed to get through the c++ code . So now I am able to play mp3s and oggs alone. I would be pleased to commit my changes in the next few days and share with everyone interested! I just need to find some time and read through the cvs developer instructions and get rid of serveral debug messages :)

      Yours Tom

       
      • José San Pedro

        José San Pedro - 2004-11-25

        Hi Tom,

        well... first of all, thanks a bunch for your fixes!!! I haven't configured Fobs SourceForge CVS service, so currently the only way to commit your changes is through me... I know is not the best option, but believe... there hasn't been too much colaboration from the outside :(

        Please, feel free to submit your code changes to my email (a brief change log will be very welcome)

        fobs@mac.com

        You will be, of coursed, greeted both in the code and in the documentation...

        I will consider setting up the cvs service if people begin posting changes!

        Again, thanks a lot for contribution to Fobs!

        Cheers

        Jose San Pedro Wandelmer

         
    • Nobody/Anonymous

      Hi all,
      Great to know you got audio working. I was surprised to know ogg decoder was packed into fobs. It's great news that you've fixed audio playback though. As for mp3 I ended up writing my own codec using jlayer just before sun released one.
      It's a little bit off topic but my question is, what codecs are in the latest release ? Is h264 decoder working ? can it play mp4 files ?

      Thanx for the great work

      Masato

       
      • José San Pedro

        José San Pedro - 2004-11-26

        Hi,

        about codecs and format support, please go to ffmpeg web site. Fobs is nothing no more than a wrapper. It is true that binary releases are not compiled with support for every codec... After some problems with dynamic linking, I decided to create binaries that include only codecs that don't need the aid of external libraries (sorry for that, but I can't figure out how to force gcc to use the static version of the libs... -static didn't solve it ).

        Audio playback (without video stream) is not yet included in Fobs, but thanks to this contribution it seems that it will be ready soon!

        Finally, I have had positive and negative experiences with ffmpeg (i.e. Fobs) and mp4 files. Some of them don't work correctly. About h264, i think it is already supported by ffmpeg, but I haven't tested it at all.

        Cheers!

        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.