Help!!! JavaFX problem changing video using MediaPlayer Object

Hello,
I hope you can help me. I'm creating a player that constantly displays a playlist of videos. After some time the system seems to go in deadlock changing video. The problem I have encountered is with the release of JavaFX 1.2, JavaFX 1.3 and JavaFX 1.3.1. The code I used is as follows:
package fx.classes;
import javafx.scene.Scene;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.Media;
import javafx.scene.media.MediaView;
import javafx.scene.media.MediaError;
import javafx.stage.Stage;
import java.lang.System;
import java.lang.Thread;
import javafx.scene.control.Button;
import javafx.scene.control.Tooltip;
var source = "C:/Progetti/OBA/workspaces/apps/Dove6FXVideo/res/video/content/cartoon.mp4";
var source2 = "C:/Progetti/OBA/workspaces/apps/Dove6FXVideo/res/video/content/spot30.mp4";
//var source = "C:/Movie/test/test1.avi";
//var source2 = "C:/Movie/test/test2.avi";
var i = 0;
public class MP extends Scene {
var md: Media = Media {
source: source
onError:
function (e: MediaError) {
println("got a MediaPlayer error : {e.cause} {e}");
mediaPlayer.media = null;
var mediaPlayer: MediaPlayer = MediaPlayer {
//autoPlay: true
//repeatCount: MediaPlayer.REPEAT_FOREVER;
startTime: 100s
onEndOfMedia: function() {
changeMovie()
onError: function(me : MediaError) {
if (mediaPlayer.status == MediaPlayer.PAUSED) {
println("Stato: pausa");
mediaPlayer.stop();
else {
print(mediaPlayer.status);
println("Stato: ");
onStalled: function(du : Duration) {
print( mediaPlayer.status );
media: md
override var content = [
MediaView {
//x: 10
//y: 10
//fitWidth: 400
//fitHeight: 300
//fitHeight: bind height
//fitWidth: bind width
preserveRatio: true
mediaPlayer: bind mediaPlayer
function play() {
mediaPlayer.play();
function stop() {
mediaPlayer.stop();
function pause() {
mediaPlayer.pause();
function printStatus() {
print( mediaPlayer.status );
protected function changeMovie() : Void {
mediaPlayer.stop();
var ss = source;
if ((i mod 2) != 0) {
ss = source2;
md = Media {
source: ss
onError:
function (e: MediaError) {
println("got a MediaPlayer error : {e.cause} {e}");
mediaPlayer.media = null;
mediaPlayer.media = md;
mediaPlayer.play();
i = i + 1;
var sample: MP = MP {
public function run( args: String[] ) {
var stage:Stage = Stage {
//title: bind "CutePlayer 3: {cutePlayer.myPlayer.media.source}"
title: bind "Media Player: Big Back Bunny"
width: 1024
height: 600
scene: bind sample
sample.printStatus();
sample.play();
The same problem seems to be also using the project Mediabox (between JavaFX demo). Does anyone know how you can solve the problem?
Thank you in advanced,
Domenico

Hello,
I hope you can help me. I'm creating a player that constantly displays a playlist of videos. After some time the system seems to go in deadlock changing video. The problem I have encountered is with the release of JavaFX 1.2, JavaFX 1.3 and JavaFX 1.3.1. The code I used is as follows:
package fx.classes;
import javafx.scene.Scene;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.Media;
import javafx.scene.media.MediaView;
import javafx.scene.media.MediaError;
import javafx.stage.Stage;
import java.lang.System;
import java.lang.Thread;
import javafx.scene.control.Button;
import javafx.scene.control.Tooltip;
var source = "C:/Progetti/OBA/workspaces/apps/Dove6FXVideo/res/video/content/cartoon.mp4";
var source2 = "C:/Progetti/OBA/workspaces/apps/Dove6FXVideo/res/video/content/spot30.mp4";
//var source = "C:/Movie/test/test1.avi";
//var source2 = "C:/Movie/test/test2.avi";
var i = 0;
public class MP extends Scene {
var md: Media = Media {
source: source
onError:
function (e: MediaError) {
println("got a MediaPlayer error : {e.cause} {e}");
mediaPlayer.media = null;
var mediaPlayer: MediaPlayer = MediaPlayer {
//autoPlay: true
//repeatCount: MediaPlayer.REPEAT_FOREVER;
startTime: 100s
onEndOfMedia: function() {
changeMovie()
onError: function(me : MediaError) {
if (mediaPlayer.status == MediaPlayer.PAUSED) {
println("Stato: pausa");
mediaPlayer.stop();
else {
print(mediaPlayer.status);
println("Stato: ");
onStalled: function(du : Duration) {
print( mediaPlayer.status );
media: md
override var content = [
MediaView {
//x: 10
//y: 10
//fitWidth: 400
//fitHeight: 300
//fitHeight: bind height
//fitWidth: bind width
preserveRatio: true
mediaPlayer: bind mediaPlayer
function play() {
mediaPlayer.play();
function stop() {
mediaPlayer.stop();
function pause() {
mediaPlayer.pause();
function printStatus() {
print( mediaPlayer.status );
protected function changeMovie() : Void {
mediaPlayer.stop();
var ss = source;
if ((i mod 2) != 0) {
ss = source2;
md = Media {
source: ss
onError:
function (e: MediaError) {
println("got a MediaPlayer error : {e.cause} {e}");
mediaPlayer.media = null;
mediaPlayer.media = md;
mediaPlayer.play();
i = i + 1;
var sample: MP = MP {
public function run( args: String[] ) {
var stage:Stage = Stage {
//title: bind "CutePlayer 3: {cutePlayer.myPlayer.media.source}"
title: bind "Media Player: Big Back Bunny"
width: 1024
height: 600
scene: bind sample
sample.printStatus();
sample.play();
The same problem seems to be also using the project Mediabox (between JavaFX demo). Does anyone know how you can solve the problem?
Thank you in advanced,
Domenico

Similar Messages

  • Audio but no Video when using MediaPlayer object

    I'm attempting to get a simple OSMF Player to play an FLV using the MediaPlayer object. Audio is played, but no video is shown.
    I've adapted the example code from the AS3 Reference docs for MediaPlayer. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/org/osmf/media/MediaPla yer.html (MediaPlayerExample.as) I've altered the code slightly to play an FLV in accordance with the Plugin developer documentation (OSMF_plugin_dev_guide.pdf - p.3 provides example player code where URLResource & MediaFactory are used together to load MediaPlayer with an FLV)
    package
        import flash.display.Sprite;
         import org.osmf.media.DefaultMediaFactory;
         import org.osmf.media.MediaFactory;
        import org.osmf.containers.MediaContainer;
        import org.osmf.elements.AudioElement;
        import org.osmf.events.TimeEvent;
        import org.osmf.media.MediaPlayer;
        import org.osmf.media.URLResource;
        public class MediaPlayerExample extends Sprite
            private var mediaPlayer:MediaPlayer;
            public function MediaPlayerExample()
                super();
                mediaPlayer = new MediaPlayer();
                var factory:MediaFactory = new DefaultMediaFactory;
                var resource:URLResource = new URLResource("http://mediapm.edgesuite.net/strobe/content/test/AFaerysTale_sylviaApostol_640_500_short.flv");
                mediaPlayer.volume = .5;
                mediaPlayer.loop = true;
                mediaPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, onTimeUpdated);       
                mediaPlayer.addEventListener(TimeEvent.DURATION_CHANGE, onTimeUpdated);
                mediaPlayer.autoPlay = true;
                mediaPlayer.media = factory.createMediaElement(resource);   
            private function onTimeUpdated(event:TimeEvent):void
                trace('time: ' + mediaPlayer.currentTime + ' duration: ' + mediaPlayer.duration);
    This code compiles and runs, but no video is shown - only audio. Why won't this play video?
    Any thoughts are greatly appreciated.

    For legacy reasons, we need to support MediaPlayer, so MediaPlayerSprite isn't an option. (even though simple replacement of MediaPlayer w/ MediaPlayerSprite does play the video in this example)
    Hmm. Passing a VideoElement doesn't seem to play audio or video:
    package
        import flash.display.Sprite;
         import org.osmf.elements.VideoElement;
         import org.osmf.media.DefaultMediaFactory;
         import org.osmf.media.MediaFactory;
        import org.osmf.containers.MediaContainer;
        import org.osmf.elements.AudioElement;
        import org.osmf.events.TimeEvent;
        import org.osmf.media.MediaPlayer;
        import org.osmf.media.URLResource;
        public class MediaPlayerExample extends Sprite
            private var mediaPlayer:MediaPlayer;
            public function MediaPlayerExample()
                super();
                mediaPlayer = new MediaPlayer();
                var factory:MediaFactory = new DefaultMediaFactory;
                var resource:URLResource = new URLResource("http://mediapm.edgesuite.net/strobe/content/test/AFaerysTale_sylviaApostol_640_500_short.f lv");
                   var vid:VideoElement = new VideoElement();
                   vid.resource = new URLResource("http://mediapm.edgesuite.net/strobe/content/test/AFaerysTale_sylviaApostol_640_500_short.f lv");
                mediaPlayer.volume = .5;
                mediaPlayer.loop = true;
                mediaPlayer.addEventListener(TimeEvent.CURRENT_TIME_CHANGE, onTimeUpdated);       
                mediaPlayer.addEventListener(TimeEvent.DURATION_CHANGE, onTimeUpdated);
                mediaPlayer.autoPlay = true;
                //mediaPlayer.media = factory.createMediaElement(resource);   
                   mediaPlayer.media = vid;   
            private function onTimeUpdated(event:TimeEvent):void
                trace('time: ' + mediaPlayer.currentTime + ' duration: ' + mediaPlayer.duration);

  • Help me understand JDBC connections using DataSource objects

    I'm writing a simple Java server application that accepts connections from multiple clients via RMI, connects to a SQL Server 2000 database via Microsoft's SQL 2000 JDBC driver, gets some data, and returns it to the client. The server application will handle every SQL database connection. However, it must be able to establish multiple simultaneous connections, since multiple clients may connect at the same time and request data.
    Sounds like a simple multi-threaded server that utilizes a connection pool for database connectivity, right? Well, if I want to do that, I have to register a PooledDataSource object with JNDI. My server threads that are handling requests will simply grab connections out of the pool to retrieve data (presumably).
    This seems like a fairly simple server application; however, all the information and tutorials I've read on using DataSource objects for database connections rather than DriverManager.getConnection() mention XML config files, J2EE application servers, Tomcat, WebSphere, etc. I really don't want to have to deal with all that just to get connection pooling and not have to use the DriverManager.getConnection() method.
    Is there a simple way to use DataSource objects without installing a lot of extra junk on my server?

    Thanks, diazlara. Your response was exactly what I needed to know. All the information I've read prior to this suggested that I had to have a J2EE server running, and that I had to register the DataSource object with JNDI. If you ladies and gents could take a quick look at this and let me know if I'm doing it correctly, I'd appreciate it.
    As proflux suggested, I wrote a connection manager:
    import java.sql.*;
    import javax.sql.*;
    import com.microsoft.jdbcx.sqlserver.*;
    public class SQLConnectionManager {
       private static ConnectionPoolDataSource connectionPool;
       // Initialize the connection manager
       public SQLConnectionManager() {
          init();
       // Retrieve a connection from the connection pool and return it
       public static Connection getConnection() {
          Connection connection = null;
          try {
             connection = connectionPool.getPooledConnection("myUsername", "myPassword").getConnection();
          catch (SQLException ex) {
             System.err.println("A problem occurred while getting a connection from the pool.");
             ex.printStackTrace();
          return connection;
       // Initialize the datasource and connection pool
       private static void init() {
          SQLServerDataSource mds = new SQLServerDataSource();
          mds.setDescription("MS SQLServerDataSource");
          mds.setServerName("127.0.0.1");
          mds.setPortNumber(1433);
          mds.setDatabaseName("SomeTable");
          mds.setSelectMethod("cursor");
          connectionPool = (ConnectionPoolDataSource) mds;
    }As you can see, I'm hard-coding the username and password for testing purposes. I'll incorporate a login/authentication system for any production code that I use this in.
    Once the SQLConnectionManager is created, connections can be retrieved as follows:
          Connection connection = null;
          try {
             connection = SQLConnectionManager.getConnection();
             System.out.println("** Got a SQL database connection from the pool");
             DatabaseMetaData metaData = connection.getMetaData();
             ResultSet rs = metaData.getCatalogs();
             while (rs.next()) {
                System.out.println("\tcatalog: " + rs.getString(1));
             rs.close();
             connection.close();
          catch (SQLException ex) {
             System.out.println("An exception occurred while connecting to the SQL Database:");
             ex.printStackTrace();
          }So, how does that look? I tested it out, and it seems to work just fine. Using this code, I am getting a connection from a pool, correct? I want to make sure of that. Also, are there any inherent weaknesses or flaws with this method that I need to be aware of?
    Thanks so much for all the helpful responses.

  • Final Cut Pro 4:  Problems exporting video using QuickTime conversion

    just recently updated my Mac to version 10.4.11 -
    Ever since, Final Cut Pro won't let me Export my video using QuickTime Conversion.
    Its starts exporting, then freezes at 79%. A general error message pops up.
    I know its not a space issue, because I have 20GB left and the video i'm exporting is only 2 GB.
    I installed all the software updates.
    Can anyone help? Do I need a new version of Final Cut?

    1) this is the final cut express forum not the pro.
    2) 10.4.6 is not the latest, try updating to 10.4.11
    3) after any system update you must run disk utility to repair permissions or errors that may not have been addressed during the upgrade process.
    4) have you tried exporting as a reference movie then playing it in qtpro, if ok then export.
    5) what are you trying to export too?

  • Problem changing video object resolution

    Hi,
    I have a problem with my AS3 code. The user can type their
    desired width and height for the video in two boxes and hit a
    button that triggers the updateResolution function. Everything
    works except for when I redeclare video = new Video() in the
    updateResolution function, the variables that the user set don't
    register. If I manually say:
    video = new Video(1024,768);
    it works fine, but for some reason the vars don't have the
    same effect...
    video = new Video(setWidth, setHeight);
    Does anyone have any suggestions? Thanks!!!

    That's not possible. Long is immutable (as are String, and all other primitive wrapper classes). This is done because immutable objects have huge advantages in many cases (like when acting as the key to a hashmap).

  • Help..problems with connection using Skype

    Hi, I have BT broadband option1 which I must say is very stable and generally fast enough for what I require. However when I use Skype the video is very blocky and freezes sometimes, audio is fine. Skype reports that my connection is bad and suggests I turn off video but my son and Grandson live in Australia so Skype is an essential application for me and the wife. I have tried another computer which behaves exactly the same so I am guessing it is my Broadband or Home Network. I changed the BT Home hub 2 for a new Netgear N150 to see if that improved it but alas no. I have port forwarded the Skype port to the computer but that has not helped either.
    The connection speeds reported by BT speed test and Netgear are 448 upstream and 7616 downstream..
    Is there anything wrong with my broadband connection or does anybody know how I can improve the skype video 

    Hi Paul
    Speaking from my experience as Jolly mentioned I was the other guy with the same problem. I could just not work out why I was getting a report from Skype all the time that my connection was not suitable for good video and to just use voice. My upload is the same as yours and is definitely sufficient for video.
    I have a BT Home Hub 1 and after getting pretty fed up I just decided to do a Factory Reset and luckily it worked. You may want to revert back your your BT Box and do a reset just to see if it works because that's what I did.
    As for port forwarding you should not have to do that as Skype and probably your router is UPnP ( Universal Plug and Play ) which does the port forwarding for you automatically.
    Try looking in the logs of your router to see if anything stands out as been wrong.
    In Skype you can get connection details from it. While you are doing a video call if you go to the top of the program and click on ‘Call’ and then ‘Call Technical Info’ and left click and copy what is in that screen and post it in here. From there we can tell what speed you are uploading.
    If it seems that you are uploading OK it may be the other ends download speed as that can also effect the connection between you and them.

  • Problems changing colour using Graphics class in java.awt

    Hi,
    The problem only happens when more than two images are on a panel. In this case, I have to strings that are drawn. The first drawn string is called "A" the second drawn string is called "B". However, when i change the colour of "B" to let's say Red, the panel erases the letter "B" and insteads changes "A" to red. How can I fix this so that when the user chooses the colour red it changes the colour of the latest drawn string and not the first one. please help!!!!
    import java.awt.*;
    public class StringPanel extends GBPanel
         private String shape = "clear", str;
         private int x, y;
         private Color color = Color.black;
         public void paintComponent(Graphics g)
              super.paintComponent(g);
              g.setColor (color);
              if(shape.equalsIgnoreCase("draw string"))
                   g.setColor(color);
                   g.drawString(str, x, y);
              else if (shape.equalsIgnoreCase("exit"))
                   System.exit(0);
         public void drawCurve(Color color)
         this.color = color;
         repaint();
         public void drawString(String shape, String str, int x, int y)
              this.shape = shape;
              this.str = str;
              this.x = x;
              this.y = y;
              repaint();
         public void drawString1(String shape, String str, int x, int y)
              Graphics g = getGraphics();
              g.setColor(color);
              if (shape.equalsIgnoreCase("draw string"))
                   g.setColor(color);
                   g.drawString(str, x, y);
              else
                   repaint();
    }

    well, as I said, I can't remember what the update method thing was for... I think it was related to not clearing the screen first.
    Anyway, if you maintain a list of objects that should be drawn and then in the paintComponent method, loop thru the list of objects and redraw them, it will work. Then you change the state of an object and call repaint. When you are going to change color, you need to, in effect, redraw the entire affected area. Now this can be done partially with clipping, but it's complicated to deal with that. So the simplest way is just redraw everything on repaint.

  • Help - SYNC problem watching video on Fancast

    On both of my computers , When I watch a video on Fancast and other sites that use Flash Player the video and voice is not in sync. The longer you watch the farther the voice and video gets out of sync. The voice is ahead of the video. The video is also a little choppy. I use Firefox and Explorer browsers and both have the same problem. I have updated both as well as Flash Player on both computers. When I watch videos that use other players I do not have this problem. So if anyone can help please do ,it is not good to watch shows so out of sync.
    Thanks

    Best post this in the iTunes section.
    x

  • Problem changing permission using EAC (time-consuming error)

    Hello,
    i tried to change the PF permission tree using EAC and selecting "Apply changes to this public folder and all its subfolders." The process stuck at around 80%, and now if i try to change permission on every PF i have the following error:
    The operation can't be performed because you're running another time-consuming operation. Try again when it completes.
    I can manage the permission using EMS, but i'd like to solve that problem.
    Thanks for help!

    At the end i recycled the iis worker process related to EAC.
    Now i can change again PF permissions, but just one by one...

  • Problem transferring video using RMI

    Hi frnds...I have a code which transfers images using rmi.....this code works fine.....but if i give a .avi file instead of a .jpeg the file gets transferred to the other machine but it gets corrupt...the size is also the same.....do i have to encode the video ??
    please help me solve the problem..
    thanks..
    Nik

    here is the code....
    import java.io.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.datasink.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import java.rmi.*;
    import java.sql.*;
    public class TestQuickCamPro
         private static boolean                    debugDeviceList = false;
         private static String                    defaultVideoDeviceName = "vfw:Microsoft WDM Image Capture (Win32):0";
         private static String                    defaultAudioDeviceName = "DirectSoundCapture";
         private static String                    defaultVideoFormatString = " ";
         private static String                    defaultAudioFormatString = "linear, 16000.0 hz, 8-bit, mono, unsigned";
         private static CaptureDeviceInfo     captureVideoDevice = null;
         private static CaptureDeviceInfo     captureAudioDevice = null;
         private static VideoFormat               captureVideoFormat = null;
         private static AudioFormat               captureAudioFormat = null;
         public static void main(String args[])
                 debugDeviceList = false;
                  new TestQuickCamPro();
    public TestQuickCamPro(){
              Stdout.log("get list of all media devices ...");
              java.util.Vector deviceListVector = CaptureDeviceManager.getDeviceList(null);
              if (deviceListVector == null)
                   Stdout.log("... error: media device list vector is null, program aborted");
                   System.exit(0);
              if (deviceListVector.size() == 0)
                   Stdout.log("... error: media device list vector size is 0, program aborted");
                   System.exit(0);
              for (int x = 0; x < deviceListVector.size(); x++)
                   // display device name
                   CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo) deviceListVector.elementAt(x);
                   String deviceInfoText = deviceInfo.getName();
                   if (debugDeviceList)
                        Stdout.log("device " + x + ": " + deviceInfoText);
                   // display device formats
                   Format deviceFormat[] = deviceInfo.getFormats();
                   for (int y = 0; y < deviceFormat.length; y++)
                        // serach for default video device
                        if (captureVideoDevice == null)
                             if (deviceFormat[y] instanceof VideoFormat)
                             if (deviceInfo.getName().indexOf(defaultVideoDeviceName) >= 0)
                             captureVideoDevice = deviceInfo;
                             Stdout.log(">>> capture video device = " + deviceInfo.getName());
                        // search for default video format
                        if (captureVideoDevice == deviceInfo)
                             if (captureVideoFormat == null)
                             if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultVideoFormatString) >= 0)
                             captureVideoFormat = (VideoFormat) deviceFormat[y];
                             Stdout.log(">>> capture video format = " + DeviceInfo.formatToString(deviceFormat[y]));
                        // serach for default audio device
                        if (captureAudioDevice == null)
                             if (deviceFormat[y] instanceof AudioFormat)
                             if (deviceInfo.getName().indexOf(defaultAudioDeviceName) >= 0)
                             captureAudioDevice = deviceInfo;
                             Stdout.log(">>> capture audio device = " + deviceInfo.getName());
                        // search for default audio format
                        if (captureAudioDevice == deviceInfo)
                             if (captureAudioFormat == null)
                             if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultAudioFormatString) >= 0)
                             captureAudioFormat = (AudioFormat) deviceFormat[y];
                             Stdout.log(">>> capture audio format = " + DeviceInfo.formatToString(deviceFormat[y]));
                        if (debugDeviceList)
                             Stdout.log(" - format: " +  DeviceInfo.formatToString(deviceFormat[y]));
              Stdout.log("... list completed.");
              // if args[x] = "-dd" terminate now
              if (debugDeviceList)
                   System.exit(0);
              // setup video data source
              MediaLocator videoMediaLocator = captureVideoDevice.getLocator();
              DataSource videoDataSource = null;
              try
                   videoDataSource = javax.media.Manager.createDataSource(videoMediaLocator);
              catch (IOException ie) { Stdout.logAndAbortException(ie); }
              catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
              if (! DeviceInfo.setFormat(videoDataSource, captureVideoFormat))
                   Stdout.log("Error: unable to set video format - program aborted");
                   System.exit(0);
              // setup audio data source
              MediaLocator audioMediaLocator = captureAudioDevice.getLocator();
              DataSource audioDataSource = null;
              try
                   audioDataSource = javax.media.Manager.createDataSource(audioMediaLocator);
              catch (IOException ie) { Stdout.logAndAbortException(ie); }
              catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
              if (! DeviceInfo.setFormat(audioDataSource, captureAudioFormat))
                   Stdout.log("Error: unable to set audio format - program aborted");
                   System.exit(0);
              // merge the two data sources
              DataSource mixedDataSource = null;
              try
                   DataSource dArray[] = new DataSource[2];
                   dArray[0] = videoDataSource;
                   dArray[1] = audioDataSource;
                   mixedDataSource = javax.media.Manager.createMergingDataSource(dArray);
              catch (IncompatibleSourceException ise) { Stdout.logAndAbortException(ise); }
              // create a new processor
              // setup output file format  ->> msvideo
              FileTypeDescriptor outputType = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
              // setup output video and audio data format
              Format outputFormat[] = new Format[2];
              outputFormat[0] = new VideoFormat(VideoFormat.INDEO50);
              outputFormat[1] = new AudioFormat(AudioFormat.GSM_MS /* LINEAR */);
              // create processor
              ProcessorModel processorModel = new ProcessorModel(mixedDataSource, outputFormat, outputType);
              Processor processor = null;
              try
                   processor = Manager.createRealizedProcessor(processorModel);
              catch (IOException e) { Stdout.logAndAbortException(e); }
              catch (NoProcessorException e) { Stdout.logAndAbortException(e); }
              catch (CannotRealizeException e) { Stdout.logAndAbortException(e); }
              // get the output of the processor
              DataSource source = processor.getDataOutput();
              // create a File protocol MediaLocator with the location
              // of the file to which bits are to be written
              MediaLocator dest = new MediaLocator("file:testcam.avi");
              // create a datasink to do the file
              DataSink dataSink = null;
              MyDataSinkListener dataSinkListener = null;
              try
                   dataSink = Manager.createDataSink(source, dest);
                   dataSinkListener = new MyDataSinkListener();
                   dataSink.addDataSinkListener(dataSinkListener);
                   dataSink.open();
              catch (IOException e) { Stdout.logAndAbortException(e); }
              catch (NoDataSinkException e) { Stdout.logAndAbortException(e); }
              catch (SecurityException e) { Stdout.logAndAbortException(e); }
              // now start the datasink and processor
              try
                   dataSink.start();
              catch (IOException e) { Stdout.logAndAbortException(e); }
              processor.start();
              Stdout.log("starting capturing ...");
              try { Thread.currentThread().sleep(5000); } catch (InterruptedException ie) {}     // capture for 10 seconds
              Stdout.log("... capturing done");
              // stop and close the processor when done capturing...
              // close the datasink when EndOfStream event is received...
              processor.stop();
              processor.close();
              dataSinkListener.waitEndOfStream(10);
              dataSink.close();
              Stdout.log("[all done]");

  • Problem importing videos using Photos for Mac

    I just install photos for mac, everything seems ok since I moved iphoto library to new photos library.
    But there is one problem, I can not import videos from my iphone, every new photo was imported but not a single video.
    The application said the format file is unrecognizable file type.
    I am using macbook air with Mac OS X Yosemite ver 10.10.3 also iphone 4s and iphone 5, each idevice using latest ios.
    Thank you in advance

    iPhoto did not support video syncing over iCloud. The new Photos app does. If you synced, or transferred your videos to iTunes, they should have migrated yo Photos. Enable Sidebar in the View menu, then check the Videos special Album.
    Your old iPhoto app and iPhoto Library remain on your drive and work as before. The iZphotolsb is in your Applications folder.
    How to get iPhoto 9.6.1 if you didn't update before OS X10.10.3. 
    Prepared by Barney-15E: https://discussions.apple.com/docs/DOC-8431

  • NEED HELP. Problem with Video iChat

    Hi there. I'm kind of new to the Mac world. I have a MacBook with Leopard. I seem to having a problem getting a video chat session up and running. I can iChat no problem but if I send a video chat invite the person gets it and accepts it but I receive an error message stating that i did not receive a response. The person that I'm sending the invite to is also on a MacBook using Tiger. I have a .Mac account and she does not. She is using her AIM account. I believe that she also received an error message about an invalid IP. Any suggestions?

    Same problem.
    But I can video chat with other people, this issue only affects 1 person, and they too can chat with other people, but when we try it fails with her seeing the IP error, I get a the other person didn't respond msg. Which just adds to the confusion. I used to be able to conference with her so this is a new error. Both video and voice only chats are affected, text chats still work.
    I'm on 10.5.1 on a G5 Mac Pro and she is on 10.4.x on an Intel MacBook Pro
    I can't be sure but it may have started after I upgraded to 10.5, but I also recently updated my Netgear (DG834G) firmware to V3.01.31. I've tried opening up various ports, checked everything that has been mentioned on here to date. The error is 100% reproducible with this specific person, and I can still conference with other people but I think they are all on 10.5.x

  • Problems changing video in S10

    I have a S10 (without video onboard) and a Nvidia graphica card.
    Trying to change to Radeon HD 5770 didn't work. The PC gets stuck before booting. Have removed alle Nvidia drivers etc., but the BIOS still claims a Nvidia card. Tried clearing the CMOS, this didn't help.
    Anybody knows what to do?
    Is it at all possible to change to other that Nvidea cards?
    Best Regards,
    Peter

    the BIOS would need to be reconstructed to add range for that set of blocks.   it's not something an end-user can do on their own.
    whether or not older BIOSes will be updated for this is difficult to say.   the S10 is an EOL (end-of-life) product.
    ThinkStation C20
    ThinkPad X1C · X220 · X60T · s30 · 600

  • Problem exporting video using compressor for a final cut pro vid

    I've created a video in Final Cut Pro and trying to export using compressor to apple tv. Each time about half way through it crashes final cut and gives me the 'final cut pro had to quit unexpectedly'.
    Haven't a clue what is going on, it happened sometimes when i was trying to conform to HD but when i did it bit by bit it was ok.
    All the media is online so really haven't a clue. I've tried using quicktime conversion in pro-res then bashing into compressor and it works but interlacing is all over the shop, even with de-interlace filter.
    ANy answers with regards to why its crashing greaty appreciated!
    P.S when it crashes says something about a pro-core plugin
    Message was edited by: jim__bob

    Hi Jim,
    Can you update your profile, we don't know what your hardware set up is or your OS, or version of FCS. It could give you answers a lot faster if we know your details from the off.
    Ok, what format is your original media, what are your sequence settings please.
    DM

  • Problems converting video using Nokia PC Suite for...

    I bought an unlocked Nokia 6300 and have tried to move videos from my desktop to my phone through the Nokia PC Suite. I have upgraded the firmware on my phone to 5.00 (latest update available according to the Nokia updater program). When I try to transfer videos through the PC Suite, it converts the video file to MP4, which apparently is not supported on my phone. There is no option to convert to 3GP format through the PC Suite, which is the only format I have gotten to work using a 3rd party program.
    Anyone have a solution to the issue?

    Hi zlandar,
    Nokia Video Manager's (NVM) work is to convert the supported video files into .mp4 format. So NVM is doing its job withoug any fail. Its your handset 6300 which doesnot support the .mp4 file SO its better you can look for some 3rd party genuine video converter which will do the needful to you Have a great day
    Forum correct me if i am wrong

Maybe you are looking for

  • A diff instance design

    Hey, I want to write a diff instance class. The DiffInstance will get two instances of the same class and will return a collection of difference between the instance. This is done because there are a lot of services that triger by changes in the mode

  • Flash CS6 unable to open in Yosemite

    I have: uninstalled Flash CS6 installed latest Java v8 update 31 reinstalled Flash CS6 Still get message that it needs legacy Java, which is not recommended for security issues. Has anyone figured out a way to use Flash CS6 with Yosemite that does no

  • Limit the visiblity of a KM upload property

    Hi All, I have been able to add a NEW field to the folder,upload,text upload and html upload in KM.Thats workin fine. Now when i see a folder in the KM content iview it shows the NEW field. I would like to see this only in KM ->Documents rather than

  • CS4 - Complex arrays for IPTC Extension

    Hi, This questions stems from my attempt to create IPTC Extension properties in Flex Builder.  I need to create a bag array to hold multiple properties, each of which can have a different array type.  Assigning an array to each property is easy, I ca

  • Help, cant manage to make menu

    Dear all, I'm trying to get the same menu as on: http://www.altolabs.co/, but somehow i don't manage. See print screens. Can someone tell me how this works? or maybe can show/copy me this coding with 'inspect element'? I came this far: http://vindste