Problem with source of JMF

I downloaded the source code of JMF and I put the directories "com", "javax" inside the "src" directory of my project but now I have some problem:
Enumeration enum = devices.elements();
and the error message is that is not possible to resolve enumeration, but I haven't message error when I import it.
Keep in mind that in eclipse I found enum in red bold, it should mean something
Ciao
THX
Marco

do you want to get the media components?
     // Visual content component to show a video
     private Component visualMedia;
     // Media control component. play, stop and pause
     private Component mediaControl;
     // Main container
     private Container container;
     //*...some code...*
     // obtains the visual controller for the media player
     public void getMediaComponents() {
          // obtains the visual media components,
                // and returns null if is an audio media type
          visualMedia = player.getVisualComponent();
          // if exists, add the visual component
          if (visualMedia != null)
               container.add(visualMedia, BorderLayout.CENTER);
          // obtains the GUI
          mediaControl = player.getControlPanelComponent();
          // if exists, add the media visual controller
          if (mediaControl != null)
               container.add(mediaControl, BorderLayout.SOUTH);
     } // getMediaComponents endEdited by: cassioso on Nov 27, 2007 9:53 AM

Similar Messages

  • Problems with sources of supply determination for external requirements.

    Hi gurus...
    My scenario is  SRM Classic Extended.
    We have a problems with sources of supply determination for external
    requirements comes from ECC. The shopping cart is created with successful
    based in the purchase requisition at ECC, but when i try to make the
    determination of sources of supply the system doesnt find any source of
    supply.
    There are a lot sources of supply creates for these parameters. The
    contracts were already replicated to ECC.
    This problem only occurs with external requirements comes from ECC, if i
    created a shopping cart directly at SRM, using the same parameters, the
    system propose the sources of supply correctly.
    Is there something that we can do?? This is the normal comportment for the souces of supply?
    Tks,
    Gustavo Nogueira

    Hello Gustavo Nogueira
    Then it is an issue.
    How are you searching the source of supply in sourcing cockpit.
    Can you replicate the issue?
    Let me know step by step,
    as per standard SAP , source of supply data must be available for shopping carts so that buyer can assign the source of supply.
    please share what source of supply you have there .

  • File transfer via socket problem (with source code)

    I have a problem with this simple client/server filetransfer program. When I run it, only half the file is transfered via the net? Can someone point out to me why this is happening?
    Client:
    import java.net.*;
    import java.io.*;
         public class Client {
         public static void main(String[] args) {
              // IPadressen til server
              String host = "127.0.0.1";
              int port = 4545;
              //Lager streams
              BufferedInputStream fileIn = null;
              BufferedOutputStream out = null;
              // Henter filen vi vil sende over sockets
              File file = new File("c:\\temp\\fileiwanttosend.jpg");
    // Sjekker om filen fins
              if (!file.exists()) {
              System.out.println("File doesn't exist");
              System.exit(0);
              try{
              // Lager ny InputStream
              fileIn = new BufferedInputStream(new FileInputStream(file));
              }catch(IOException eee) {System.out.println("Problem, kunne ikke lage fil"); }
              try{
              // Lager InetAddress
              InetAddress adressen = InetAddress.getByName(host);
              try{
              System.out.println("- Lager Socket..........");
              // �pner socket
              Socket s = new Socket(adressen, port);
              System.out.println("- Socket klar.........");
              // Setter outputstream til socket
              out = new BufferedOutputStream(s.getOutputStream());
              // Leser buffer inn i tabell
              byte[] buffer = new byte[1024];
              int numRead;
              while( (numRead = fileIn.read(buffer)) >= 0) {
              // Skriver bytes til OutputStream fra 0 til totalt antall bytes
              System.out.println("Copies "+fileIn.read(buffer)+" bytes");
              out.write(buffer, 0, numRead);
              // Flush - sender fil
              out.flush();
              // Lukker OutputStream
              out.close();
              // Lukker InputStrean
              fileIn.close();
              // Lukker Socket
              s.close();
              System.out.println("File is sent to: "+host);
              catch (IOException e) {
              }catch(UnknownHostException e) {
              System.err.println(e);
    Server:
    import java.net.*;
    import java.io.*;
    public class Server {
         public static void main(String[] args) {
    // Portnummer m� v�re det samme p� b�de klient og server
    int port = 4545;
         try{
              // Lager en ServerSocket
              ServerSocket server = new ServerSocket(port);
              // Lager to socketforbindelser
              Socket forbindelse1 = null;
              Socket forbindelse2 = null;
         while (true) {
         try{
              forbindelse1 = server.accept();
              System.out.println("Server accepts");
              BufferedInputStream inn = new BufferedInputStream(forbindelse1.getInputStream());
              BufferedOutputStream ut = new BufferedOutputStream(new FileOutputStream(new File("c:\\temp\\file.jpg")));
              byte[] buff = new byte[1024];
              int readMe;
              while( (readMe = inn.read(buff)) >= 0) {
              // Skriver filen til disken ut fra input stream
              ut.write(buff, 0, readMe);
              // Lukker ServerSocket
              forbindelse1.close();
              // Lukker InputStream
              inn.close();
              // flush - sender data ut p� nettet
              ut.flush();
              // Lukker OutputStream
              ut.close();
              System.out.println("File received");
              }catch(IOException e) {System.out.println("En feil har skjedd: " + e.getMessage());}
              finally {
                   try {
                   if (forbindelse1 != null) forbindelse1.close();
                   }catch(IOException e) {}
    }catch(IOException e) {
    System.err.println(e);
    }

    Hi!!
    The problem is at this line:
    System.out.println("Copies "+fileIn.read(buffer)+" bytes");
    Just comment out this line of code and see the difference. This line of code causes another "read" statement to be executed, but you are writing only the data read from the first read statement which causes approximately half the file to be send to the server.

  • Problem with source tape and drop frames with capturing HDV

    I am having trouble capturing a tape. Every time I try and capture I get the message problem with tape, I try to change settings but after a few seconds of capturing the capture stops. I know that the tape is fine so it does not have anything to do with my tape. Capture also stops because it comes up with a message saying drooped frames.

    Are you capturing to an external or secod drive, right? What kind of drive? What camera?
      Alberto

  • Problem with Sourcing for multiple line items SRM 7.0

    Dear All,
    We are in SRM 7.0, extended classic scenerio,
    For sourcing we have selected config "Sourcing is carried out for items without a Assigned source of supply" for all sytems and all product categories
    Our requirement is Catalog items should not go to sourcing, Item with and without assigned source of supply both should go to sourcing and external requirements SC should go to sourcing.
    We have done coding in BADI "DOC SAVE BADI" and "BBP_SRC_DETERMINE" method DETERMINE_SOURCING.
    Now we create SC with line items only using Catalog it is working fine, SC not going to sorcing,
    Create SCfor line items with assigned source of supply only it is working fine, SC going to sourcing,
    and Create SCfor line items without assigned source of supply only it is working fine, SC going to sourcing,
    But problem is with the combination of all items i.e. Catalog, with and w/o assigned source of supply in one SC
    Assigned  source of supply item is not appearing in Sourcing cockpit, and some time catalog items also available for sourcing.
    Please help
    Thanks in Advance
    Vikas
    Edited by: VIKAS CHINCHORE on Oct 4, 2011 11:53 AM
    Any luck?

    Hi
    Please revisit your logic wriiten in this method
    DETERMINE_SOURCING
    Are you checking here sc has item or sc  has supplier or not ( fixed supplier) in the logic? it must be item check.
    As per sap standard , catalog item / fixed source of supply assigned will not venture to cockpit (Sourcing is carried out for items without a Assigned source of supply)

  • Problems with solving a JMF - JFFMpeg/gstreamer/fobs4java mpeg4 - stream

    hi!
    im doing a final at univerity, the aim is to enable JMF to play AND stream mp3, mpeg4, aac
    im already trying to get more than the basic JMS-stream (h.263) to work, for a couple of days of intensive work. only things i know now, is, that it is a lot more work than i expected first.. tryed it with gstreamer, JFFMpeg, FFMpeg-java, fobs4java, ... only things which worked been local player .. but the JMS in combination with upper named plugins lost even the ability to stream anything...
    am i doing something very wrong, does any one know about some solutions which work already? or did same i am doing now?
    im wondering if theres some one out there who has a bit more know how or may have a few hints or even some solutions
    would be very happy about some help
    T
    Edited by: T-offline on Jul 8, 2008 5:25 AM

    Hi funnyjanni,
    May be I am writing this after 4 years.
    I am also in the stage when you faced the same problem. You might have found the solution to this.
    Please help me on this. I am trying to use jffmpeg to play UDP mutlicast stream.
    Thanks
    jklanka

  • Problem with -source 1.5

    Map<String, Image> images = new HashMap<String, Image>();
    this line is a problem on my JSC while compiling. It generates an error:
    generics are not supported in -source 1.4
    (try -source 1.5 to enable generics)In the project's File/Properties it is possible to choose from two Java platforms:
    1. Java HotSpot(TM) Client VM 1.5.0_06-b05, which is JDK installed by myself
    2. JDK 1.5 (Default) , which is installed with the Java Sun Creator
    So... both Java platforms seem to be 1.5 - where is the problem? How can I tell JSC to switch its compiler to java 1.5? I also tried "-source 1.5" as a compiler parameter - doesn't work. I feel confused a little bit. This hashmap is rather essential to my project. Thanks in advance for any suggestions or help.
    Orkan

    Hi
    Take a look at the FAQ
    Does Java Studio Creator support Java 5? at
    http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/configuration/index.html
    MJ

  • Mapping problem with source structures in LSMW thru idoc

    Hello,
            I am using crmxif for bp saving. I have flat file with one line. But it has many segments. do i need to mapp all segments with different source structures.
    Even for any other transactions with crm xifs, how to fill the segments .  do i need to create source  structures for all the segments.
    do i need to create different flat files for all the segments filling.   plz suggest with flat file, and source sturctures.
    thanks
    ram

    Hi RAM,
    Please refer notes 554635 and see if this helps.
    regards,
    Muralidhar Prasad Chatna

  • Problem with Source:Object and Output:File

    Hello dear people,
    i have been found example like FileCompressTool.
    But i have been coded for conversors or decompilers.
    I have got error of File and FileStream
    Look at my picture
    I have been tried because my Adobe AIr Application has not error..
    How do i fix this error? Or i must run Adobe Air as Administrator Right?
    Code for Example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication
              title="Half-Life Map Decompiler"
              xmlns:mx="http://www.adobe.com/2006/mxml"
              layout="absolute"
              showStatusBar="false">
              <mx:Script>
                        <![CDATA[
                                  import com.valve.utils.mapEncorder;
                                  import flash.filesystem.File;
                                  private var bspSrc:File;
                                  private var mapDes:File;
                                  private function ChooseSrc():void
                                            if( bspSrc == null ) {
                                                      bspSrc = new File();
                                            bspSrc.addEventListener(Event.SELECT,  sourceSelectHandler);
                                            bspSrc.browseForOpen("Choose Half-Life 1 Bsp File", [new FileFilter("Half-Life 1 *.bsp", "*.bsp")]);
                                  private function sourceSelectHandler(event:Event):void
                                            bspSrcText.text = bspSrc.nativePath;
                                            StateLog.text = bspSrc.nativePath + " has been selected.";
                                  private function ChooseDes():void
                                            if ( mapDes == null ) {
                                                      mapDes = new File();
                                            mapDes.addEventListener(Event.SELECT, destinationSelectHandler);
                                            mapDes.browseForDirectory("Choose for decompiled Map file!");
                                  private function destinationSelectHandler(event:Event):void
                                            mapDesText.text = mapDes.nativePath;
                                            StateLog.text = mapDes.nativePath + " has been selected.";
                                  private function Decompile():void
                                            var bsp2map:mapEncorder = new mapEncorder();
                                            bsp2map.decompileBsp2map(bspSrc, mapDes);
                                            StateLog.text = "This Map File has been decompiled complety.";
                        ]]>
              </mx:Script>
              <mx:Label left="10" top="10" text="Choose your bsp ( used by Half-Life 1 ):"/>
              <mx:TextInput id="bspSrcText" left="15" right="63" top="36"/>
              <mx:Button right="15" top="36" label="..." click="ChooseSrc()"/>
              <mx:Label left="10" top="70" text="Choose your decompiled map in your directory:"/>
              <mx:TextInput id="mapDesText" left="15" right="63" top="96"/>
              <mx:Button right="15" top="96" label="..." click="ChooseDes()"/>
              <mx:Label left="10" top="130" text="View with decompiled details:"/>
              <mx:Button right="98" top="128" label="Decompile" click="Decompile()"/>
              <mx:Button right="192" top="128" label="Clean log"/>
              <mx:TextArea id="StateLog" left="15" right="15" top="156" bottom="15"/>
              <mx:Button right="15" top="128" width="75" label="About..."/>
    </mx:WindowedApplication>
    And com.valve.utils.mapEncorder.as
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapDes:File):void
                                  if( bspSrc == null || mapDes == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapDes.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = new File;
                                            if(bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray;
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Thank you for help - If you find an error than you can tell me. If it doesn't work than i will try Flash Builder with Running as Admin.
    Regards J. Eckervogt

    I have been found problem because i have been found issus of if (...) with !
    It is okay. I have been forgotten. I am sorry. Thanks.. I have been fixed this..
    It is true
    But is worng code :
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapDes:File):void
                                  if( bspSrc == null || mapDes == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapDes.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = new File;
                                            if(bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray;
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Replace to:
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapFile:File):void
                                  if( bspSrc == null || mapFile == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapFile.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = bspSrc as File;
                                            if(!bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray();
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Now it is working. Thanks!

  • Other Problem with lookup

    What can i do in this situation? (I use Sun Application Server 8.1) :
    In this piece of code in a ejb test client:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put(Context.PROVIDER_URL, "iiop://127.0.0.1:4700");
    //get naming context
    Context context = new InitialContext(env);
    //look up jndi name
    Object ref = context.lookup("JNDIName");I have an error in a lookup, and i tried ejb/JNDIName, java:comp/env/ejb/JNDIName but ... the error is in all situations:
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
         at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
         at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
         at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)-- Failed initializing bean access.
    Thanks

    Originally posted by: mikhailk.qnx.com
    The debugger retrieves the name of the source file from the debug
    information associated with the current stack frame. Check if the file name
    can be found in the source lookup path.
    "Sheldon" <[email protected]> wrote in message
    news:31a9c281623f66e5ba98901be99b5ec0$[email protected]..
    > Hi all
    >
    > I am having a problem with step over in the my integrated
    > debugger, when i press step over an editor pops up saying no source found
    > with a button attached to it. I am trying to solve the problem, i need
    > some help as to where in the source i could look to solve this problem. I
    > also want to know for sure whether this is a problem with source lookup or
    > due to some other reason.
    >
    > regards,
    > Sheldon
    >

  • Problem with file descriptors not released by JMF

    Hi,
    I have a problem with file descriptors not released by JMF. My application opens a video file, creates a DataSource and a DataProcessor and the video frames generated are transmitted using the RTP protocol. Once video transmission ends up, if we stop and close the DataProcessor associated to the DataSource, the file descriptor identifying the video file is not released (checkable through /proc/pid/fd). If we repeat this processing once and again, the process reaches the maximum number of file descriptors allowed by the operating system.
    The same problem has been reproduced with JMF-2.1.1e-Linux in several environments:
    - Red Hat 7.3, Fedora Core 4
    - jdk1.5.0_04, j2re1.4.2, j2sdk1.4.2, Blackdown Java
    This is part of the source code:
    // video.avi with tracks audio(PCMU) and video(H263)
    String url="video.avi";
    if ((ml = new MediaLocator(url)) == null) {
    Logger.log(ambito,refTrazas+"Cannot build media locator from: " + url);
    try {
    // Create a DataSource given the media locator.
    Logger.log(ambito,refTrazas+"Creating JMF data source");
    try
    ds = Manager.createDataSource(ml);
    catch (Exception e) {
    Logger.log(ambito,refTrazas+"Cannot create DataSource from: " + ml);
    return 1;
    p = Manager.createProcessor(ds);
    } catch (Exception e) {
    Logger.log(ambito,refTrazas+"Failed to create a processor from the given url: " + e);
    return 1;
    } // end try-catch
    p.addControllerListener(this);
    Logger.log(ambito,refTrazas+"Configure Processor.");
    // Put the Processor into configured state.
    p.configure();
    if (!waitForState(p.Configured))
    Logger.log(ambito,refTrazas+"Failed to configure the processor.");
    p.close();
    p=null;
    return 1;
    Logger.log(ambito,refTrazas+"Configured Processor OK.");
    // So I can use it as a player.
    p.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.RAW_RTP));
    // videoTrack: track control for the video track
    DrawFrame draw= new DrawFrame(this);
    // Instantiate and set the frame access codec to the data flow path.
    try {
    Codec codec[] = {
    draw,
    new com.sun.media.codec.video.colorspace.JavaRGBToYUV(),
    new com.ibm.media.codec.video.h263.NativeEncoder()};
    videoTrack.setCodecChain(codec);
    } catch (UnsupportedPlugInException e) {
    Logger.log(ambito,refTrazas+"The processor does not support effects.");
    } // end try-catch CodecChain creation
    p.realize();
    if (!waitForState(p.Realized))
    Logger.log(ambito,refTrazas+"Failed to realize the processor.");
    return 1;
    Logger.log(ambito,refTrazas+"realized processor OK.");
    /* After realize processor: THESE LINES OF SOURCE CODE DOES NOT RELEASE ITS FILE DESCRIPTOR !!!!!
    p.stop();
    p.deallocate();
    p.close();
    return 0;
    // It continues up to the end of the transmission, properly drawing each video frame and transmit them
    Logger.log(ambito,refTrazas+" Create Transmit.");
    try {
    int result = createTransmitter();
    } catch (Exception e) {
    Logger.log(ambito,refTrazas+"Error Create Transmitter.");
    return 1;
    } // end try-catch transmitter
    Logger.log(ambito,refTrazas+"Start Procesor.");
    // Start the processor.
    p.start();
    return 0;
    } // end of main code
    * stop when event "EndOfMediaEvent"
    public int stop () {
    try {   
    /* THIS PIECE OF CODE AND VARIATIONS HAVE BEEN TESTED
    AND THE FILE DESCRIPTOR IS NEVER RELEASED */
    p.stop();
    p.deallocate();
    p.close();
    p= null;
    for (int i = 0; i < rtpMgrs.length; i++)
    if (rtpMgrs==null) continue;
    Logger.log(ambito, refTrazas + "removeTargets;");
    rtpMgrs[i].removeTargets( "Session ended.");
    rtpMgrs[i].dispose();
    rtpMgrs[i]=null;
    } catch (Exception e) {
    Logger.log(ambito,refTrazas+"Error Stoping:"+e);
    return 1;
    return 0;
    } // end of stop()
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt) {
    Logger.log(ambito,refTrazas+"\nControllerEvent."+evt.toString());
    if (evt instanceof ConfigureCompleteEvent ||
    evt instanceof RealizeCompleteEvent ||
    evt instanceof PrefetchCompleteEvent) {
    synchronized (waitSync) {
    stateTransitionOK = true;
    waitSync.notifyAll();
    } else if (evt instanceof ResourceUnavailableEvent) {
    synchronized (waitSync) {
    stateTransitionOK = false;
    waitSync.notifyAll();
    } else if (evt instanceof EndOfMediaEvent) {
    Logger.log(ambito,refTrazas+"\nEvento EndOfMediaEvent.");
    this.stop();
    else if (evt instanceof ControllerClosedEvent)
    Logger.log(ambito,refTrazas+"\nEvent ControllerClosedEvent");
    close = true;
    waitSync.notifyAll();
    else if (evt instanceof StopByRequestEvent)
    Logger.log(ambito,refTrazas+"\nEvent StopByRequestEvent");
    stop =true;
    waitSync.notifyAll();
    Many thanks.

    Its a bug on H263, if you test it without h263 track or with other video codec, the release will be ok.
    You can try to use a not-Sun h263 codec like the one from fobs or jffmpeg projects.

  • 'Source play' and 'audio-video sync' problems with PE8 on fast WIN7 64 bit computer

    I am transferring Hi8 videos, about 2 hours long, to my WIN7 64 bit computer with PE8.  [Dell Mobile Precision M4400 Computer Workstation (Intel Core 2 Duo T9900 500GB/4GB); NVIDIA Quadro FX 770M, 512MB] I seem to have several problems: 
    First, after importing the file (.avi), I get a message about ‘dropped frames.’ 
    Secondly, when I try to play the video in the source monitor, the audio plays but the video doesn’t; it only shows the first frame [this is after waiting until the video is ?recognized? ]   I can use the shift-arrow key and see that the video is there.
    Thirdly, I can play the .avi file in other players, e.g., avidemux or PE pro CS5 on another computer.  There, I see that the audio and video are not in sync; the audio can be up to 300 ms ahead of the video (as determined using avidemux). 
    Questions:
    1.  Why doesn’t the source monitor play the video? Is this a problem with PE8 (latest update as of 3 March 2011) on aWIN7 64 bit computer (intel duo core. 3 GHz).
    2. Is the audio-video sync problem the result of the ‘dropped frames?’ How can PE8 correct this? Avoid this? Or, is it coincidence?

    "I think you're telling me you're using a backwards compatible Digital8  camcorder to capture your video as DV-AVIs. Is that right?" YES
    "Are you using  Premiere Elements to do this capturing?" YES, AS ABOVE PE8
    "Go to the File menu and select Properties. It should show a standard DV codec being used for your video and audio."
    WMP v12 is dumb. Under properties, media, it says 'video.'  However, avidemux gave me the information state above: video -- Codec 4CC: dvsd, frame rate: 29.971 fps; audio -- codec: PCM, channels: Stereo, frequency: 48 kHz.
    So, back to the Questions:
    1.  Why doesn’t the source  monitor play the video? Is this a problem with PE8 (latest update as of 3  March 2011) on aWIN7 64 bit computer (intel duo core. 3 GHz).
    2. Is the audio-video sync problem the result of the ‘dropped frames?’ How can PE8 correct this? Avoid this? Or, is it coincidence?

  • Problem with setting Source Level in Sun Studio 2

    I've got problem with setting Source Level to 1.5 in Sun Studio 2. When I try to set it to 1.5 in Project properties and click Ok everything seem to go well, but when I open Project Properties again Source Level is set to 1.4. I need this to work cause I started to lear Java recently and I want to use foreach loop.
    Please help

    I'm just citing an example using Date().
    In fact, whether I use DateFormat or Calendar, it shows the same result.
    When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
    jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
    It works correctly under jdk1.3.1

  • Calling javascript from swf (which is source file of frame) - problems with OPERA

    hey,
    right now i have the swf-file as the source file for a frame,
    because i want the swf-width depend on the browser-size.
    it looks kinda like this:
    <frameset cols="10,*,10">
    <frame src="border.htm" name="leftFrame">
    <frame src="file.swf" name="mainFrame">
    <frame src="border.htm" name="rightFrame">
    </frameset>
    from the swf i call a javascript-code that is located in the
    'border.htm'
    file.
    the javascript simply opens a popup window.
    function open_popup() {
    MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
    works fine ine firefox, ie, netscape (at least in another tab),but
    when it comes to the opera browser (and apparently also safari)i
    don't get any reaction at all ...i told opera to allow
    popup-windows, so that shouldnt be the reason.now i am thinking
    maybe some browsers have a problem with callingjavascripts from
    within swfs that are not located in that specifichtml-file?maybe
    some of you encountered the same problem ...would be grateful for
    any advices ...thanx,eva

    hey,
    right now i have the swf-file as the source file for a frame,
    because i want the swf-width depend on the browser-size.
    it looks kinda like this:
    <frameset cols="10,*,10">
    <frame src="border.htm" name="leftFrame">
    <frame src="file.swf" name="mainFrame">
    <frame src="border.htm" name="rightFrame">
    </frameset>
    from the swf i call a javascript-code that is located in the
    'border.htm'
    file.
    the javascript simply opens a popup window.
    function open_popup() {
    MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
    works fine ine firefox, ie, netscape (at least in another tab),but
    when it comes to the opera browser (and apparently also safari)i
    don't get any reaction at all ...i told opera to allow
    popup-windows, so that shouldnt be the reason.now i am thinking
    maybe some browsers have a problem with callingjavascripts from
    within swfs that are not located in that specifichtml-file?maybe
    some of you encountered the same problem ...would be grateful for
    any advices ...thanx,eva

  • Problem with java source procedure

    Hello everyone, I've set up a simple example that is supposed to create an fdf file on the server. I tested my program and it works fine.
    Now I'm trying to do the same thing except that I would like to have my java code in the database. Here's what I've done:
    # on database in opus schema
    create or replace and compile java source named testpdf as
    import java.io.*;
    import com.adobe.fdf.*;
    import com.adobe.fdf.exceptions.*;
    public class TestPDF
         public static void Test()
    try
         FDFDoc outputFDF = new FDFDoc();
         outputFDF.SetValue("status", "En traitement!");
         outputFDF.SetValue("Date", "01-01-2006");
         outputFDF.SetValue("Name", "Alexandre Folgueras");
         outputFDF.SetValue("Address", "12 Saratoga Ave");
         outputFDF.SetValue("City", "Saratoga");
         outputFDF.SetValue("State", "CA");
    outputFDF.SetFile("/tmp/java_pdf/GenerateFDF.pdf");
    outputFDF.Save("/tmp/java_pdf/alex.fdf");
    catch (Exception e)
    e.printStackTrace();
    create or replace procedure pdf_doc
    AS LANGUAGE JAVA
    NAME 'TestPDF.Test()';
    commit;
    Everything seems to be OK by when I run it, my file does not get created even though I don't get any errors.
    Anybody knows why?
    Thanks in advance!

    Hello,
    I'm also creating a class with static functions and putting it as a Java source in Oracle but I have problems with imports. In my case, I use MQSeries JAR files and when I put my code in Oracle, I have warnings "Java created with compilation errors". It's just about the lines where I create/use MQSeries objects, because when I comment them, I have no more errors.
    I see you also use specific imports with PDF, so I would like to know where you put the JAR files so that the Java source can be compiled correctly.
    Thanks in advance,

Maybe you are looking for