Menu

Error in open and playback

user
2007-11-01
2013-05-09
  • Nobody/Anonymous

    I have a java application using JMF and Fobs4JMF 4.1.

    When opening a mpeg2 video I get:

    ------------------------------------------------------------------
    [mpeg2video @ 6B513D24]ac-tex damaged at 17 1
    [mpeg2video @ 6B513D24]Warning MVs not available
    [mpeg2video @ 6B513D24]concealing 1305 DC, 1305 AC, 1305 MV errors
    OpenError: File open error
    AVCODEC: Constructor
    AVCODEC: setInputFormat
    AVCODEC: setInputFormat
    AVCODEC: getMatchingOutputFormats
    Fobs Java2DRenderer: setInputFormat
    AVCODEC: getMatchingOutputFormats
    Fobs Java2DRenderer: setInputFormat
    AVCODEC: setInputFormat
    AVCODEC: getMatchingOutputFormats
    AVCODEC: open
    AVCODEC: init_decoding
    Setting size - 720x480
    Encoding: mpeg
    Codec Found: 2
    Codec opened...W=720 H=480
    ------------------------------------------------------------------

    When playing a movie I get:

    ------------------------------------------------------------------
    Fobs Java2DRenderer: start
    [mpeg2video @ 6B513D24]ac-tex damaged at 17 1
    [mpeg2video @ 6B513D24]Warning MVs not available
    [mpeg2video @ 6B513D24]concealing 1305 DC, 1305 AC, 1305 MV errors
    [mpeg2video @ 6B513D24]ac-tex damaged at 26 12
    [mpeg2video @ 6B513D24]Warning MVs not available
    [mpeg2video @ 6B513D24]concealing 810 DC, 810 AC, 810 MV errors
    [mpeg2video @ 6B513D24]ac-tex damaged at 24 18
    [mpeg2video @ 6B513D24]concealing 540 DC, 540 AC, 540 MV errors
    [mpeg2video @ 6B513D24]ac-tex damaged at 35 18
    [mpeg2video @ 6B513D24]concealing 540 DC, 540 AC, 540 MV errors
    [mpeg2video @ 6B513D24]ac-tex damaged at 38 26
    [mpeg2video @ 6B513D24]Warning MVs not available
    [mpeg2video @ 6B513D24]concealing 180 DC, 180 AC, 180 MV errors
    [mpeg2video @ 6B513D24]ac-tex damaged at 28 17
    [mpeg2video @ 6B513D24]concealing 585 DC, 585 AC, 585 MV errors
    [mpeg2video @ 6B513D24]ac-tex damaged at 7 2
    [mpeg2video @ 6B513D24]concealing 1260 DC, 1260 AC, 1260 MV errors
    [mpeg2video @ 6B513D24]concealing 45 DC, 45 AC, 45 MV errors
    ------------------------------------------------------------------

    I have two computers, one I developed on and one I am testing deploying on. I took all the class/jars/.property files I need and put them on a shared drive on the network. I then wrote a batch file like this:

    ------------------------------------------------------------------
    set CLASSPATH=.;swing-layout-1.0.jar;nddsjava.jar;AbsoluteLayout.jar;sound.jar;customizer.jar;jmf.jar;mediaplayer.jar;multiplayer.jar;fobs4jmf.jar;
    set PATH=.;./i86Win32j2sdk1.3;./i86Win32VC60;fobs4jmf.dll;
    echo %CLASSPATH%
    C:\Windows\system32\java Main
    ------------------------------------------------------------------

    On the computer I developed on, I can click on this batch file and everything runs fine, with no errors. On the deployment computer I receive all the errors I've pasted above. It also plays the file much too quickly. For the life of me I can't figure out what could possibly be different between the two machines. They are both running the same version of java:

    C:\Documents and Settings\u90767>C:\windows\system32\java -version
    java version "1.5.0_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode)

    Just to sanity check, I did install using the windows installer for Fobs4JMF on the deployment computer, and this has had no effect. However, the JMFStudio player will play these clips without any problem and at the right speed.

    What could I be missing?

    Thanks,

    Kirk

     
    • Nobody/Anonymous

      Sorry, an correction on the output from opening the file. Some got pushed off the console and I didn't notice it. This is the full output from the point the application was launched to the point that the movie was loaded, but before it began playing:

      Z:\backup\IRAD\ExLS\ExVU1.21>C:\Windows\system32\java Main
      Fobs4JMF - Native shared library found
      OpenError: File open error
      Fobs4JMF - Native shared library found
      Little Endian
      AVCODEC: Constructor
      AVCODEC: setInputFormat
      AVCODEC: setInputFormat
      AVCODEC: getMatchingOutputFormats
      Fobs Java2DRenderer: setInputFormat
      AVCODEC: getMatchingOutputFormats
      Fobs Java2DRenderer: setInputFormat
      AVCODEC: setInputFormat
      AVCODEC: getMatchingOutputFormats
      AVCODEC: open
      AVCODEC: init_decoding
      Setting size - 720x480
      Encoding: mpeg
      Codec Found: 2
      Codec opened...W=720 H=480

      OpenErr[mpeg2video @ 6B513D24]oac-tex damaged at 17 1
      r:[mpeg2video @ 6B513D24] Warning MVs not available
      File open e[mpeg2video @ 6B513D24]rconcealing 1305 DC, 1305 AC, 1305 MV errors
      ror
      AVCODEC: Constructor
      AVCODEC: setInputFormat
      AVCODEC: setInputFormat
      AVCODEC: getMatchingOutputFormats
      Fobs Java2DRenderer: setInputFormat
      AVCODEC: getMatchingOutputFormats
      Fobs Java2DRenderer: setInputFormat
      AVCODEC: setInputFormat
      AVCODEC: getMatchingOutputFormats
      AVCODEC: open
      AVCODEC: init_decoding
      Setting size - 720x480
      Encoding: mpeg
      Codec Found: 2
      Codec opened...W=720 H=480

      Thanks,
      Kirk

       
    • Nobody/Anonymous

      I still don't know why this would be working on one computer and not the other, but I found a fix after reading through the forum.

      Here is an example of my code for opening a player:

              com.omnividea.media.protocol.file.DataSource ds = null;
              MediaLocator locator = null;
              locator = new MediaLocator(mediaURL.toString().replace("%20", " "));
              ds = new com.omnividea.media.protocol.file.DataSource();
              ds.setLocator(locator);
              mediaPlayer = Manager.createRealizedPlayer( ds );

      Note that you can not use the DataSource(MediaLocator) constructor, or else you will get an exception about it already having a locator (I assume this is a bug).

      The important things I did differently was replacing "%20" in the URL with a true " ". Also, I used the omnividea DataSource and passed that to Manager.createRealizedPlayer instead of using the Manager.createRealizedPlayer(MediaLocator) method.

       
      • Nobody/Anonymous

        ^ The above is from the original poster by the way.

        Kirk

         

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.