The problem about Java media framework

Excuse me, How to use Real Time Protocol Vedio with web camera?
My program can use MIC, but can't found camera?
Please Help me

Hi,
You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
In the simplest case, one line of Java code can solve your problem.
Good luck!

Similar Messages

  • The problem about java.sql.CallableStatement

    we need call oracle store procedure to get a record set.
    the code below is the oracle's pl/sql program for test
    package test2 as
    type sample_record is record(id char(4),
    name varchar2(10),
    addr varchar2(30));
    type sample_cursor is ref cursor return sample_record;
    function get_resultset return sample_cursor;
    end;
    package body test2 as
    function get_resultset return sample_cursor is
    p_cursor sample_cursor;
    begin
    open p_cursor for select 'aaaa' id,'John' name,'guangzhou' addr from dual;
    return p_cursor;
    end get_resultset;
    end;
    and ,in java,how to use java.sql.CallableStatement to
    run the store procedure to get the cursor,a sql type define in our oracle programme

    see the code below,
    public static sun.jdbc.rowset.WebRowSet testmethod(){
         Connection conn = null ;
              CallableStatement cstmt = null ;
              String str = null ;
              ResultSet result = null ;
              str = "{?=call test2.get_resultset()}" ;                    
              try
                   conn = DbPool.getConnection() ;
                   cstmt = conn.prepareCall(str) ;
                   cstmt.registerOutParameter(1, OracleTypes.CURSOR);
                   cstmt.execute();
                   result = (java.sql.ResultSet)cstmt.getObject(1) ;                                             
                   sun.jdbc.rowset.WebRowSet wrs = new sun.jdbc.rowset.WebRowSet() ;
              wrs.populate(result) ;//in this statement,it will throw a NullPointerException
                   return wrs;
              catch (Exception e)
                   CommLog.writeLog("pr", "PrLogic test: " + e.toString()) ;
                   return null ;
              }finally
                   try
                        result.close() ;
                   catch (Exception e3)
                   try
                        cstmt.close() ;
                   catch (Exception e1)
                   try
                        conn.close() ;
                   catch (Exception e2)
         }

  • Is the Java Media Framework still supported by Sun or not ??

    Hello my name is Michael.
    I have questions about the JFM, are there any person who can response it, please post it.
    I don't know if the technology is up to date if there is no release or bug fix since 2003.
    Please tell me something about the plan from Sun about the Java Media Framework.
    Is there any substitute java framework to work with ??
    Thank you for your benefit !!
    Michael

    Doug,
    Your iPod should work with no issues on 10.4.11 and iTunes 8+.
    When the iPod "locks up" do you hear any clicking noises? Your symptoms sound like the hard drive is having hardware issues.
    Here's a trick I used to use to fix the older iPods. It involves opening up the iPod, so if you don't feel comfortable, you might want to go to someone who does.
    Take a blade from a box cutter and gently move it along where the plastic meets the metal on the iPod. Use the blade to pry open the iPod from the metal case for the back.
    Once you get the iPod out, look towards the bottom of the iPod, and you should see the hard drive with a wide cable attached to it. Take that cable out of the hard drive (gently). Find a Bic pen cap (or something similar) and push it in between the two rows of pins on the cable. Try to make sure the pins are spread apart evenly and all pointing directly out. Once you get that in place, firmly push the cable back into the hard drive and gently put the iPod back together.
    You may then want to restore just to be safe, and try loading your music again. I've used this trick on many old iPods to bring another couple of years of life into them. (sometimes this cable comes loose, causing the issues you're describing)
    Justin

  • Java Media Framework fails on Windows 7

    I wrote a Java program to manage and play my MP3 files. This program works fine on Windows XT and Windows Vista but does not work on the new laptop I just purchased with Windows 7. The Java Media Framework cannot play my MP3 files running on Windows 7. Does anyone know of a fix? I saw some very old forum posts where the poster asked if anyone knew how to obtain the source code for the Java Media Framework. If I could get my hands on the source, I would debug the problem and provide the fix to the Java community. So does anyone know of a fix to Windows 7 problems or know how to get the Java Media Framework source code????

    I believe you are right. I didn't know how much native support the JMF code requires but that must be the problem because it doesn't work on Windows 7. I think I would get some other error if the native libraries needed by JMF were not available on Windows 7. Appears that the native code is invoked but fails for some reason resulting in the JMF ControllerEventError that I get when attempting to play my MP3 files. I always had an error on a very few MP3 files that I have downloaded using LimeWire but the songs were playable by Windows Media. So whatever native support JMF uses, it is not the same as Windows Media or JMF is just not using the native MP3 support correctly. I guess I will just have to keep my Music Library on one of my older computers and not use my Java program on Windows 7 to play my MP3 files. Do you have any idea if the programmers who wrote the JMF code are still maintaining it? Perhaps they would be interested in fixing the Windows 7 problem in a new release??

  • Java Media Framework (JMF) Installation on Linux platform

    Currently I'm developing a Cross-Platform Media Player. My application runs properly on my machine running Windows. But I'm unable to test my application on my machine running Linux just because I'm unable to Install and configure Java Media Framework (JMF) on Linux.
    Can somebody tell me how to Install and Configure Java Media Framework (JMF) on Linux platform? Please tell me about all the required steps in detail.

    Are you perhaps trying to install a specific verion of Oracle on a specific verison of Linux?
    Both sets of specific version information are useful.
    For example, Fedora Core 5 has made a lot of changes in the stdandard c/C++ libraries and is incompatible with an regular Oracle install. (You would need to install the 'compatible' libraries in Fedora Core 5 before attempting to install Oracle..)

  • Java Media Framework silent install

    Hi,
    When I install JMF on HP laptop, in JM studio File->Capture i donot get "use video device" portion so i am not able to capture video with the help of WebCam :( on other hand if i install JMF on Dell laptop, JM studio->File->Capture is disabled may i know what can be possible reason of this?
    Please guide me help.

    983818 wrote:
    I need to install the Java Media Framework to over 1000 windows computers. How to do this. MSI package does not exist. Oracle does not change this installer since 1998. Oracle spit of the fact that someone is forced to use this software. I hate proprietary software.You should take the hint: it is abandoned, don't use it.

  • Request: Java Media Framework

    http://java.sun.com/products/java-media … nload.html
    OpenOffice.org 2,x uses the Java Media Famework (JMF) to render media such as film and sound under Linux.
    It would be very usefull in Impress presentations
    I tryed but was unable to make a package
    Thanks in advance

    Try this package:
    http://aur.archlinux.org/packages.php?d … 1&ID=11728
    Give me feedback please
    See you
    You also have to:
    Set up OpenOffice.org to use Java Media Framework
    Use the Tools > Options > OpenOffice.org > Java menu
    Click the Class Path... Button.
    Click the Add Archive... Button.
    Browse to the /opt/java/jre/lib/ext/jmf.jar file to add it.
    More info at http://www.oooforum.org/forum/viewtopic … mfhome+sun
    Last edited by darzephyr (2007-06-20 19:23:47)

  • Silent installation Java Media Framework

    Anyone knows the parameters to install the Java media framework 2.1.1 in silent mode?
    Thanks

    Abra-Cadabrah!
    There is no such option. Though you might deploy JMF using JWS, for a less painful experience for your users.

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • I've got the problem about sharing the screen

    Hi, i bought iMac 21.5 (Late 2013), i'v upgraded it to the Mavericks. I've got the problem about sharing the display, i have thunderbolt to hdmi adapter and while i plug it to my TV, it doesn't work, it has no signal on TV, can someone help me ?? Thank Yo

    Hello Gukakila
    Start your troubleshooting with the article below. Try out the cable on a different tv or monitor to see if it shows up there. You may also need to reset the SMC and Parameter Ram.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    -Norm G.

  • Codecs for the Java Media Framework now available

    Hi,
    Firstly, apologies for the "ad"...
    The "jffmpeg" project at sourceforge (of which I am a developer) is now producing a codec pack for JMF. This consists of a selection of pure Java codecs, and a JNI wrapper onto the native FFMPEG codecs.
    See http://jffmpeg.sourceforge.net/ for details.
    Please let me know if you find this useful.
    JonathanH

    Thanks a lot for your answer...!!!!
    I am not really a pro in codecs, and I think that it's the main problem. :p
    I want to find a solution (I have to ! ), but it's very difficult for me..
    For the mpeg2 Transport stream format : you've totally right !
    In the mpeg2 TS format, the main difference with standard mpeg2 is that there is a structure "packet by packet", with a given packet length (188 bytes)... Each packet has an header which gives some information as you've said : transport error bit, synchronisation bit, etc... (and to be true, I have some difficulties understand really what each packet contains... I've understood the IPB principle, but this format is not very clear for me...)
    How can I explain my program ? heu...
    after extracting datas (I work in real time), at time t, I have in a byte array many 188 bytes blocks
    (I store them in a big byte array in a Buffer)... What have I to do with it ? Now, my program reads each 188 bytes and when the time represented is > 100ms, I run the processor on it, and so the decoding process...
    Is my error here ? how have I to do ? is it really a problem of size ?
    I have transformed my program this morning so as to have datas incoming from a file (and not my peripherical) : so, now, in theory, I can read datas which are not mpeg2 ts. But I haven't made test yet...
    But, I suppose that I am going to have the same problems that I have already faced :
    if I try to take a large chunk of data, jmf generates an error (I supposed that it's because the videoformat definition doesn't correspond with what jmf is waiting for !):
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0c307669, pid=2992, tid=2604
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_01-b08 mixed mode)
    # Problematic frame:
    # C [jmmpegv.dll+0x7669]
    # An error report file with more information is saved as hs_err_pid2992.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    the famous error that we often see on this forum....!
    And, if I take a little chunk, I have a ffmpeg error (I have understood now why... thanks to you)!
    And so, in decoder output, null length datas... logical !
    Maybe, I have an error in my program, but I really don't know where...
    I have an other problem... I would like to know if it is normal :
    I can't register (via jmregister) the NativeDecoder (but I can register NativeEncoder !)...
    It's quite strange... I've tried on 2 differents computers, and I have the same error "can't add item"..
    Why ? (windows xp - jmf 2.1.1e) jmf error or jffmpeg error or my error ?
    I have posted here because I have no guarantee that the problem comes from jffmpeg... I am a jmf newbie...
    The exception access violation error is quite surprising...
    I know that the format I use is not standart, but ... !!
    But, I am going to work again this afternoon, and then, I will post to jffmpeg development !
    If my problem can be solved, or if I can prevent other people to have the same problem, I will do !
    And if I found the solution to all my problems, I will post it ! :)
    EB

  • The problem about settuping up the development Enviroment for OA

    Hi, All
         I just began to learn the development of OA Framework, I met the problem of setting up the dev environment by using jdevelop 9i OA
    extension.
         The following is steps of setting up the env by referrring to the "Oracle Application Framework Developer's guide".
         1, set the environment variable JDEV_USER_HOME to <jdeveloper dir>\jdevhome\jdev
         2. copy the DBC file from <EBS install dir>\visappl\fnd\11.5.0.\secure in EBS server to the local machine.
         3. create a tester user and assign it the responsibility "OA Framework ToolBox Turtorial" and "OA Framework ToolBox Turtorial
    Labs" in EBS
         4. create a database connection. set the connection type as Oracle(JDBC), username and password as "Apps" and "Apps" , Set the
    hostname and SID the same values as those specified in the DBC file. And the connection is created successfully.
         5. Then open the toolbox.jws (The sample code in the jdeveloper9i)
              i) select the tutorial.jpr , select Project > Project Setting -> Runtime Connectiong. setting the "DBC File Name" to the
    DBC file path in local machine. setting the "user name" and password to EBS user I just created in step 3. Set the Application Short Name
    to "AK" and Responsibility Key as "FWK_TBX_TUTORIAL".
              ii) right click tutorial.jpr. select "Edit Business Components Poject..." -> Connection . choose the Connection created in step 4.
         6. setting the same configuration for LabSolutions.jpr.
         7. After all these setting , then rebuild the toolbox.jws and run the project. It took a long time to display the test_fwktutorial.jsp and when I click the link in it. I wil get an error page. The Detail Info is the following:
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.adf.mds.exception.MDSRuntimeException; (Could not lookup message because there is no database connection) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1960) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418) at OA.jspService(OA.jsp:40) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209) at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189) at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199) at OA.jspService(OA.jsp:45) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)
    I'm not sure whether my configuration is set correctly. can anyboy help to figure it out, thansk in advance

    r u able to connect to schema from sqlplus ??
    I suspect check that first ,also see if you are able to TNS ping to the SID you have mentioned and if the port and hostname is correctly specified in ur dbc file .
    here is my dbc file .. if it helps
    #DB Settings
    #Mon Mar 20 07:58:34 CST 2006
    FND_JDBC_USABLE_CHECK=false
    APPS_JDBC_DRIVER_TYPE=THIN
    APPL_SERVER_ID=1EDB3E51DEE569E3E0440003BA68147136073878907234418604230042147702
    TWO_TASK=IG10B
    FND_JDBC_STMT_CACHE_SIZE=200
    FND_JDBC_CONTEXT_CHECK=true
    FND_JDBC_BUFFER_DECAY_SIZE=5
    FND_JDBC_BUFFER_DECAY_INTERVAL=300
    FND_JDBC_BUFFER_MAX=5
    GUEST_USER_PWD=GUEST/ORACLE
    FND_JDBC_STMT_CACHE_FREE_MEM=TRUE
    FND_JDBC_BUFFER_MIN=1
    DB_HOST=<host Name>
    FND_JDBC_PLSQL_RESET=false
    FNDNAM=APPS
    FND_MAX_JDBC_CONNECTIONS=500
    GWYUID=APPLSYSPUB/PUB
    APPS_JDBC_URL=jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=maxcold)(PORT=1525)))(CONNECT_DATA=(SID=IG10B)))
    DB_PORT=1525

  • The problem about vrrp

    Dear all,I have a problem about vrrp,my core switch is cisco 3750x and huawei S5700-28C-EI, after I configured vrrp between them,the switch log got the error problem as follow:
    *Jan 11 00:01:43.111: %VRRP-6-STATECHANGE: g1/0 Grp 3 state Backup -> Master
    *Jan 11 00:01:43.111: VRRP: tbridge_smf_update failed
    *Jan 11 00:01:44.187: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:46.539: VRRP: Advertisement from 10.252.200.36 has an incorrect group 10 id for interface g1/0                
    *Jan 11 00:01:50.323: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:51.707: VRRP: Advertisement from 10.252.200.36 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:52.079: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    *Jan 11 00:01:53.079: VRRP: Advertisement from 10.252.200.34 has an incorrect group 10 id for interface g1/0
    If cisco and huawei cannot interconnect with each other?

    Can you post the interface config from the huawei and cisco device?
    HTH,
    John
    *** Please rate all useful posts ***

  • Please HELP !!! Signed Applet & Java Media Framework(JMF)

    Hi,
    I have written a self signed applet that is used for Recording voice running in browser:
    The tag that I've given is as follows:
    <OBJECT
    classid = "clsid:CAFEEFAC-0014-0001-0000-ABCDEFFEDCBA"
    id="recordApplet"
    codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_1-windows-i586.cab#Version=1,4,1,0"
    WIDTH = 268 HEIGHT = 27>
    <PARAM NAME = CODE VALUE = "RecWindow">
    <PARAM NAME = ARCHIVE VALUE = "jmf.jar,sound.jar,SignedRecWindow.jar">
    <PARAM NAME = "soundtrack" VALUE="testFile.mp3">
    <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.1">
    <PARAM NAME = "scriptable" VALUE = "true">
    <PARAM NAME = "MAYSCRIPT" VALUE = "true">
    </OBJECT>
    I've also signed jmf.jar as well as sound.jar that come in JMF 2.1 and am including it the archive. These jars are downloaded on client machine.
    My code works perfectly BUT only when JMF 2.1 is installed on the clients machine else I get a RunTime Exception stating "no permission to capture from applet".
    JMF FAQ states that If a user chooses to allow playing back locally stored media files or saving media files locally, he/she can do so by making use of a policy file. http://java.sun.com/products/java-media/jmf/2.1.1/faq-jmf.html#jmf2-applet-run
    My requirement is that once the user has agreed to the signed applet to run then there should be no need to install JMF rather use the jmf.jar that is downloaded on client machine.
    Also how can I grant the permission (permission javax.sound.sampled.AudioPermission "record";) to my applet in client computers ?
    The client should not be asked to add any files (policy) by itself, all must be transparent for him.
    Thanks in advance.
    Vipin.

    I too have been trying to get Java JMF sound recording to work via webstart. No luck so far.
    I even tried playing (security.AllPermissions) with .java.policy file in the user's home directory and even modifying java.policy in the JRE/lib/security directory. No luck there too!
    I also added security.AllPermissions to the javaws.policy in the JRE/jawas/javaws.policy file. Still no luck!
    Any idea, anyone?

  • Help me sort out the problems with Java 2 SDK SE

    I install Java SDK 2 standard Eddition version 1.4 in my computer (Window NT4). When I test the installation by typing in "java -version", it displays the following message.
    C:\JavaPractice>java -version
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    But, When I compile a simple programme, it doesn't work and displays the following message.
    C:\JavaPractice>javac HelloDan.java
    The name specified is not recognized as an
    internal or external command, operable program or batch file.
    Could anybody help me sort out the problem, Please?

    i might guess that you have j2sdk1.4.0\jre\bin on your PATH, but not j2sdk1.4.0\bin ...
    Larry

Maybe you are looking for

  • HP Photosmart 7520 e-all-in-one Series, Product # CZ045A Printer Windows 7 64 bit

    I have been setting up my new wireless printer for a couple of days.  My printer is connected wirelessly to a network and  printing well.  I have been trying to set up my web services to e-print and am having some problems.  I have a long printer e-m

  • Call failed constantly after upgrade to OS 4.2

    Has anyone else suffering the same problem? My iPhone 4 just keeps failing to make a call after upgrading to OS 4.2. The strange thing is that it seems this just happens within vodafone's 2G network. If I turn 3G on, there is no problem with call fai

  • Half my library shows when I'm not signed in, and lost playlists!

    I wonder if some i-tunes whizz can help me please. I did an update a few days ago and on re-opening i-tunes discovered that more than half the library was missing as well as all playlists, including purchased (and I purchase quite a lot). After a lot

  • JNI and STL undr SUN C++ 6 compiler

    Compiling a shared library (for loading by VM) according JNI specification i get "library not found" error in runtime. This error does not appear when compiling the same code with g++ or erasing all STL related code fragments. Has anybody an idea, wh

  • Interclustering not working in CUCM 7 & 8.5

    hello, i am having CUCM 7 at my end and CUCM 8.5 at another location. Earlier i was able to make successfull  calls from either of clusters, but currently dial pattern has been change and i am not able to make calls from my CUCM cluster to another CU