JMF, Linux, wrong codec selected when using jarred version of app

I have problem realising an AVI player when I try and run Linux JMF application when whole application is bundled into jar file and I try and run it using
  java -cp <..JMF/lib/jmf.jar:/home/codroe/fobs4jmf.jar..> -jar app.jarIn jmf.log I see:
## Player created: com.sun.media.content.unknown.Handler@1cd2e5f
##   using DataSource: com.sun.media.protocol.file.DataSource@911f71
## Building Track: 0
## Input: XVID, 720x576, FrameRate=25.0, Length=1244160 68 extra bytes
!! Failed to handle track 0
XX   Unable to handle format: XVID, 720x576, FrameRate=25.0, Length=1244160 68 extra bytesThis is exactly the message I usually get when some part of JMF cannot find "jmf.properties" file (if for example could not find .jmfdir), but looking at strace from application run it does appear JMF found my jmf.properties this time, but still chose not to use omnvidea codec:
stat64("jmf.properties", 0xfeffc410)    = -1 ENOENT (No such file or directory)
stat64("/home/codroe/JMF-2.1.1e/lib/jmf.properties", {st_mode=S_IFREG|0644, st_size=31354, ...}) = 0
open("/home/codroe/JMF-2.1.1e/lib/jmf.properties", O_RDONLY|O_LARGEFILE) = 11When I run my unbundled (i.e. not wrapped up in jar) version of Linux application (same classpath), it finds jmf.properties no problem, and choses omnivoidea codec and now is able to play the video with good things in jmf log:
## Player created: com.sun.media.content.unknown.Handler@30c221
##   using DataSource: com.omnividea.media.protocol.file.DataSource@a401c2
## Building Track: 0
## Input: FFMPEG_VIDEO, 720x576, FrameRate=25.0, Length=414720 0 extra bytesMy windows version works fine in both configurations, jarred or not jarred.
From Linux strace log I it shows my working non-JARed version has selected omnividea codec:
gettimeofday({1100876842, 175149}, NULL) = 0
stat64("/home/codroe/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
stat64("/home/codroe/JMF-2.1.1e/lib/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
gettimeofday({1100876842, 179815}, NULL) = 0
stat64("/home/codroe/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
stat64("/home/codroe/JMF-2.1.1e/lib/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
gettimeofday({1100876842, 182979}, NULL) = 0
gettimeofday({1100876842, 183206}, NULL) = 0
gettimeofday({1100876842, 184371}, NULL) = 0
gettimeofday({1100876842, 184591}, NULL) = 0
stat64("/home/codroe/com/omnividea/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
stat64("/home/codroe/JMF-2.1.1e/lib/com/omnividea/media/protocol/file/DataSource.class", 0xfeffc384) = -1 ENOENT (No such file or directory)
gettimeofday({1100876842, 191005}, NULL) = 0but as I don't see this in trace from JAR version, and because in JMF log it says:
## Player created: com.sun.media.content.unknown.Handler@30c221
##   using DataSource: com.omnividea.media.protocol.file.DataSource@a401c2I believe it has not selected correct codec for a reason I don't understand.
[I checked I only have one version of jmf.properties on system].
Any ideas why jarred version is different from non-jarred version?
version information:
# JMF Version 2.1.1e
## Platform: Linux, i386, 2.6.5-1.358
## Java VM: Sun Microsystems Inc., 1.5.0
and using fobs4jmf from http://fobs.sourceforge.net

correction, for the last bit I should have said, for non-working jarred version in JMF log I see:
## Player created: com.sun.media.content.unknown.Handler@1cd2e5f
##   using DataSource: com.sun.media.protocol.file.DataSource@911f71indicating wrong codec selected

Similar Messages

  • Wrong views Selected when using LSMW + Recording

    Hi,
    I use LSMW + Recording method to extend warehouse management view, and it works fine in the DEV system, but when the LSME projrct was imported into QA system, the system selected wrong views at the begining when running this LSMW object, the WM 1 and WM 2 view should be selected, but in QA system, instead, only Accounting view is selected, what's the reason? Kindly please advise.
    Thanks.

    The reason is the dynamic on the view selection.
    Depending on the already maintained other views (like sales and purchasing and storage location) the position of WM 1+2 changes.
    Instead of recording MM01 you should record MMZ1 as this has a static place for WM views.
    But even better is to use report RLMG0020.

  • Drop down menus on iPad, the first selection in the drop down will not load as a selection when using safari, what can I do?

    Drop down menus on iPad, the first selection in the drop down will not load as a selection when using safari, what can I do?  I use this for my mobile, on-site auto repair business and not being able to call up repair and diagnostic info and reference for some cars is troublesome for sure. It works fine on the computer and I have installed a remote desktop app as a workaround but it is unreliable because the desktop is not business dedicated and may be off or in use at the time. So is there a known fix for this?
    Let me paint a more descriptive picture, visualize 4 drop down selection menus, first one is for year, next one is for make, 3rd one is model and the last one is for engine size/type. If I wanted to choose a 2012 vehicle it wont work because it is the top selection on the list. This can be forced by selecting any other year and then coming back to 2012. Ok fine, but then let's say I wanted to choose Acura as the make, well it won't take it because again it's the top selection. Again you work around it be selecting any other make and coming back to Acura. Ok now select the model, same trend follows. But now since most Acura vehicles come with dedicated engines and no optional engines I have only 1 selection in that final drop down menu and it will not take my selection and therefore never let me proceed to the info I need.
    This is also true when ordering parts from my wholesaler's website, they use drop downs and I can only get to that last drop down and then I'm stuck. This is blindingly frustrating, what options do I have. I'm not opposed to any avenue at this point.

    Did you ever figure this out? I bought my iPad last week to use in my business as well. I assume you are trying to use alldata? That is where I noticed this same issue. I had problems with identifix working with safari but downloaded a different browser and that works fine. Alldata does not work with either browser. The main difference is that on identifix if there is only one engine selection, it automatically selects the only option and continues to the home page. With alldata you have to make the selection manually even if there is only one option. Honestly if I can't get this to work I am going to return the iPad as it looses a significant amount of usefulness to men

  • Best practice when using Tangosol with an app server

    Hi,
    I'm wondering what is the best practice when using Tangosol with an app server (Websphere 6.1 in this case). I've been able to set it up using the resource adapter, tried using distributed transactions and it appears to work as expected - I've also been able to see cache data from another app server instance.
    However, it appears that cache data vanishes after a while. I've not yet been able to put my finger on when, but garbage collection is a possibility I've come to suspect.
    Data in the cache survives the removal of the EJB, but somewhere later down the line it appear to vanish. I'm not aware of any expiry settings for the cache that would explain this (to the best of my understanding the default is "no expiry"), so GC came to mind. Would this be the explanation?
    If that would be the explanation, what would be a better way to keep the cache from being subject to GC - to have a "startup class" in the app server that holds on to the cache object, or would there be other ways? Currently the EJB calls getCacheAdapter, so I guess Bad Things may happen when the EJB is removed...
    Best regards,
    /Per

    Hi Gene,
    I found the configuration file embedded in coherence.jar. Am I supposed to replace it and re-package coherence.jar?
    If I put it elsewhere (in the "classpath") - is there a way I can be sure that it has been found by Coherence (like a message in the standard output stream)? My experience with Websphere is that "classpath" is a rather ...vague concept, we use the J2CA adapter which most probably has a different class loader than the EAR that contains the EJB, and I would rather avoid to do a lot of trial/error corrections to a file just to find that it's not actually been used.
    Anyway, at this stage my tests are still focused on distributed transactions/2PC/commit/rollback/recovery, and we're nowhere near 10,000 objects. As a matter of fact, we haven't had more than 1024 objects in these app servers. In the typical scenario where I've seen objects "fade away", there has been only one or two objects in the test data. And they both disappear...
    Still confused,
    /Per

  • How do I have my IPad Provide alert when using "Find my iphone" app

    How can I set my IPad so that it gives an aleert when using "find my phone" app?

    That's not an option find my phone app currently supports.

  • My iPad jumps back to the desktop when using a page or app

    My iPad (original) jumps back to the desktop when using Safari or an app. Any fixes?  This is my second original iPad. The first one did the same thing.

    If you're stuck within an app or you've noticed a problem, simply hold both the home button and sleep/wake button at the same time. It's important to keep your fingers on these buttons until step 3.
    After a few seconds the red ‘slide to power off' screen will appear, simply ignore this. Ensure your fingers are still holding down the home and sleep/wake switch.
    Shortly after you should see the Apple logo, it's now safe to let go of the iPad's buttons. Your iPad should now boot, beware this process can take up to 10 minutes or so.

  • TS3367 My partner has the Iphone 5 and I am using a MacBook with version 1.0.2. When using the face time app to call him he says that cam freezes and he is unable to hear me. Any ideas of the problem and and ideas for resolving the issue?

    My partner has the Iphone 5 and I am using a MacBook with version 1.0.2. When using the face time app to call him he says that cam freezes and he is unable to hear me. Any ideas of the problem and and ideas for resolving the issue?

    Had the same problem, the only fault and the reason why it happend is a bad wifi connection!
    Could ofc be something else, but thats my two cents!

  • Cannot download aperture when using trial version and all photo work will be lost if delete trial version

    App Store will not download aperture when using trial version and all 30 days of photo work will be lost if delete trial version to be able to purchase Aperture download version???  any ideas?    

    Your Aperture library is not deleted when you delete Aperture from the Applications folder. Neither are your settings BTW.
    Do make certain your library is backed up!

  • Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

    Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

    Why would iPad 1st Gen show up in two different locations when useing find my iPad App. ?

  • My iPod shuts off repeatedly when using the Nike running app. Have already tried the headphones solution that Apple has recommended. Can anyone help?

    My iPod shuts off repeatedly when using the Nike running app. Have already tried the headphones solution that Apple has recommended. Can anyone help?

    Using the 5th generation iPod. Purchased it a few months ago before the new one was launched. Yes the workout randomly ends when I am no where near the time or distance I have programmed in. I keep tried to restart the workout and the same thing keeps happening over and over again. I figured it may have been the headphones but I have even tried holding the headphone connection in place, and different headphones as well and it continues to happen.

  • Wrong metadata retrieved when using Oracle8.1.7 + classes12.zip

    Hi,
    I am using Oracle8.1.7+classes12.zip+jdk1.2.2.
    I am always retrieving the wrong metadata for the tables. The same piece of code works fine when using Oracle8.1.5+classes111b.zip+jdk1.2.2.
    The code is as follows :
    try {
    db = Database.getDatabase();
    con = db.getConnection();
    ps = con.prepareStatement("SELECT * FROM " + tablename);
    meta = (ps.executeQuery()).getMetaData();
    } catch(SQLException e) {
    Debug.log("ServerMetaCache::requestMeta " + e);
    System.err.println("ServerMetaCache::requestMeta " + e);
    return null;
    The following is a list of the column name retrived from the metadata :
    TABLE_CAT
    TABLE_SCHEM
    TABLE_NAME
    COLUMN_NAME
    KEY_SEQ
    pk_name
    Anyone encountered this before?
    null

    The code I posted above was incomplete.
    The complete code is as shown below:
    db = Database.getDatabase();
    con = db.getConnection();
    ps = con.prepareStatement("SELECT * FROM " + tablename);
    meta = (ps.executeQuery()).getMetaData();
    try {
    int count = meta.getColumnCount();
    columns = new ColumnDefinition[count];
    System.out.println("tname = " + tname);
    System.out.println("column count = " + count);
    for (int i = 0; i < count; i++) { // arrays starts from 0 while columns start from 1
    String colName = meta.getColumnName(i+1); // get the database name for this column
    System.out.println("colName = " + colName);
    catch(SQLException e) {
    System.err.println(e.toString());
    The result is :
    tname = Product
    column count = 6
    colName = TABLE_CAT
    colName = TABLE_SCHEM
    colName = TABLE_NAME
    colName = COLUMN_NAME
    colName = KEY_SEQ
    colName = PK_NAME
    null

  • Jre 15.0_22/Linux - Swing components error when using GTKLookAndFeel

    Hello,
    I'm not sure if it's a JRE bug or what, but on Linux platforms our applet fails when using swing components using the GTKLookAndFeel.
    To demonstrate/test, I have the ff test applet:
    import java.applet.Applet;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    public class TestApplet extends Applet {
      @Override
      public void init() {
        super.init();
        test();
      public static void main(String[] args) {
        (new TestApplet()).test();
      public void test() {
        try {
          String className = UIManager.getSystemLookAndFeelClassName();
          System.out.println(className);
          javax.swing.LookAndFeel laf = (javax.swing.LookAndFeel) this.getClass().forName(className).newInstance();
          UIManager.setLookAndFeel(laf);
          System.out.println("setting classloader");
          UIManager.put("ClassLoader", this.getClass().getClassLoader());
          UIManager.getLookAndFeelDefaults().put("ClassLoader", this.getClass().getClassLoader());
        } catch (ClassNotFoundException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (InstantiationException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (IllegalAccessException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (UnsupportedLookAndFeelException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        System.out.println(UIManager.getLookAndFeelDefaults().getUIClass("javax.swing.JTextField"));
        UIManager.getLookAndFeelDefaults().getUI(new javax.swing.JTextField());
    }The system look and feel here is GTKLookAndFeel. The problem is that the getUI() call in the last line is returning null and I can see in the console:
    UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JTextField
    java.lang.Error
    .. etc.
    This is happening for different swing classes, I just used JTextField here as a simple test case.
    This only happens if the applet is run from the browser (via the java plugin). If I run the above code from the command line, there is no error raised, and the actual component UI class is a Synth class.
    This is only happening for us in Java 1.5.0_22 on Linux...on 1.5.0_15 and 1.6+ it seems to be fine. I'm using the 1.5.0_22 JDK downloaded from Sun.
    Anyone have any idea how to fix this error or any workaround? As you can see in the code above, I tried specifying the classloader (I read it in some other thread on these forums), but no luck there.
    Or is this a known problem in 1.5.0_22? Can anyone else replicate it?

    Installation howto you can find on http://www.puschitz.com
    Try use "Search" function before you create new topic. This one was discussed many times.

  • Trim mode 'wrong frame' problems when using merged clips

    Hello there,
    We are having a problem with the trim mode on FCP 6.0.4. We're working with 1080psf 24 Apple ProRes 422 material, captured using a AJA Kona card.
    The sound and picture were recorded separately, and synced manually (by creating merged clips) in FCP.
    When we go into the trim window, it shows a different frame as the incoming or outgoing frame on some clips. In other words it's not actually showing us the real frame before or after the cut. Instead it shows a frame that's half a second back, for example. When we preview the cut, it cuts in the 'right' place, but when we pause and try to fine cut the transition using +1 keys (or trim back/forward keys), it shows us the wrong frame. When we preview it again, the cut is still in the 'right' place - not the frame represented when it's stilled. This makes using trim mode nigh-on impossible since it's not actually showing you the frames you're cutting.
    Are there any patches or workarounds to fix this issue? I can't find any fixes on forums/help sites or the FCP manual.
    Tried trashing prefs, repairing disk permissions and all the usual maintenance stuff!
    Exporting new Quicktimes of the merged clips and then re-importing them is not an option, as they need to be timecode accurate to be recaptured for the online and vfx work.
    Any advice would be much appreciated - if no solutions exist we'll have to switch everything over to Avid, and that'd be a mammoth job.
    Many thanks in advance!

    You may not be zoomed in enough in the Timeline window, the more you zoom in, the more detailed edit you can perform. Zoom out too much, and you won't have the sensitivity.

  • Bug report & possible patch: Wrong memory allocation when using BerkeleyDB in concurrent processes

    When using the BerkeleyDB shared environment in parallel processes, the processes get "out of memory" error, even when there is plenty of free memory available. This results in possible database corruption.
    Typical use case when this bug manifests is when BerkeleyDB is used by rpm, which is installing an rpm package into custom location, or calls another rpm instance during the installation process.
    The bug seems to originate in the env/env_region.c file: (version of the file from BDB 4.7.25, although the culprit code is the same in newer versions too):
    330     /*
    331      * Allocate room for REGION structures plus overhead.
    332      *
    333      * XXX
    334      * Overhead is so high because encryption passwds, replication vote
    335      * arrays and the thread control block table are all stored in the
    336      * base environment region.  This is a bug, at the least replication
    337      * should have its own region.
    338      *
    339      * Allocate space for thread info blocks.  Max is only advisory,
    340      * so we allocate 25% more.
    341      */
    342     memset(&tregion, 0, sizeof(tregion));
    343     nregions = __memp_max_regions(env) + 10;
    344     size = nregions * sizeof(REGION);
    345     size += dbenv->passwd_len;
    346     size += (dbenv->thr_max + dbenv->thr_max / 4) *
    347         __env_alloc_size(sizeof(DB_THREAD_INFO));
    348     size += env->thr_nbucket * __env_alloc_size(sizeof(DB_HASHTAB));
    349     size += 16 * 1024;
    350     tregion.size = size;
    Usage from the rpm's perspective:
    The line 346 calculates how much memory we need for structures DB_THREAD_INFO. We allocate structure DB_THREAD_INFO for every process calling db4 library. We don't deallocate these structures but when number of processes is greater than dbenv->thr_max then we try to reuse some structure for process that is already dead (or doesn't use db4 no longer). But we have DB_THREAD_INFOs in hash buckets and we can reuse DB_THREAD_INFO only if it is in the same hash bucket as new DB_TREAD_INFO. So line 346 should contain:
    346     size += env->thr_nbucket * (dbenv->thr_max + dbenv->thr_max / 4) *
    347         __env_alloc_size(sizeof(DB_THREAD_INFO));
    Why we don't encounter this problem earlier? There are some magic reserves as you can see on line 349 and some other additional space is created by alligning to blocks. But if we have two processes running at the same time and these processes end up in the same hash bucket and we repeat this proces many times to fill all hash buckets with two DB_THREAD_INFOs then we have 2 * env->thr_nbucket(37) = 74 DB_THREAD_INFOs, which is much more than dbenv->thr_max(8) + dbenv->thr_max(8) / 4 = 10 and plus allocation from dbc_put, we are out of memory.
    And how we will create two processes that end up in the same hash bucket. We can start one process (rpm -i) and then in scriptlet we start many processes (rpm -q ...) in loop and one of them will be in the same hash bucket as the first process (rpm -i).
    I would like to know your opinion on this issue, and if the proposed fix would be acceptable.
    Thanks in advance for answers.

    The attached patch for db-4.7 makes two changes:
      it allows enough for each bucket to have the configured number of threads, and
      it initializes env->thr_nbuckets, which previously had not been initialized.
    Please let us know how it works for you.
    Regards,
    Charles

  • Multiple weight font selection when using STL file importing...

    I am aware how powerful the manual editor is for DSP4.2, but unfortunately a lot of the editing for my subtitles needs to be done outside of DSP. So I came across a little bit of a problem...
    When using a multiple weight font, like Kozuka Mincho Pro (and many others), there are several weights, and some don't even have a "Bold." As an example Light, Thin, Roman, Heavy, Black, etc.
    So, using the STL method of importing, how does one specify a font AND weight that does not correspond to a "Bold" version? i.e., setting "Helvetica Neue Bold" does not bring that weight up when specifying "Bold = False," and you can't possibly get "Helvetica Neue Black," under any circumstances. I've attempted to get around this, but all I get is a message saying that the font is not found, and that the default font will be used. Is it even possible to do this?
    Hand entering and altering kanji in DSP's manual editor will be a nightmare, if I can't figure a way around this (the STL file is re-loaded dozens of times for placement issues during the project, meaning manual edits would have to be re-done every time).
    Hopefully the next version will allow the user to edit the .rtf document with styles and fonts and import them as styled text the way it appears. Multiple fonts per line, so easy integration of various symbol fonts can be dealt with, etc.

    Nope, using "$FontName = Helvetica Neue Black" does not work. And you can't even do anything close to that with fonts whose weights are specified as W3, W5, W7, etc.
    I found another snippet buried in the new manual that states something to the effect that the name must be spelled exactly as it appears in the "Font Panel." If this is so, then you can only access two weights from any font, just like working with good old-fashioned windows...
    So, unless there is a DSP specific trick for the STL format, I'm going to guess it's not possible.
    And I cannot re-compile fonts with new names and data, since most of the fonts I will be working with, with this issue, are full Kanji Unicode fonts, and we would have to purchase a font-editor that, IIRC costs about a grand. I think the SysAdmin would frown over both aspects of that... ^_^

Maybe you are looking for

  • Load error code 11 when attempting to open .vi from library

    Hello, Recently a colleague sent me a .llb containing a VI and sub-VIs of a program needed for my research.  The VI opens correctly but none of the sub-VIs can be found by it and when I attempt to open the sub-VIs I get load error code 11: VI version

  • Problem in mapping -Guided procedures

    Hi All,       I have a interactive form parameter called Price of type decimal in Guided procedure, and i have a BAPI parameter StdPrice of type decimal. when i tried to group these two parameters the "Group" button gets disabled. When i  tried by ch

  • How to achieve same functionality for String as java in oracle 10g

    Example: In java if I use --------------->>> String.format("%03d", 11) then it will give me result 011 String.format("%03d", 1111) then it will give me result 1111 I need same result in Oracle also for a stored procedure. I have used to_char() and lp

  • Cost Center in work center

    *Hello* *I dont want to put the cost center in work center as we are not capturing the labour cost. so creating only dumy work center for each plant but the cost center is mandatory in work center* *I also try to make it non-mandatory through field s

  • How to solve the error " The installation process encountered an error while installing Shared Technologies.

    I had bought the adobe photoshop elements 12 online and I am not able to complete my installation although i tried many times . An error "The installation process encountered an error  while installing Shared Technologies. Please restart your compute