Package com.xuggle.mediatool

Examples of com.xuggle.mediatool.IMediaWriter.addVideoStream()


        thread = new Thread(new Runnable() {
            @Override
            public void run() {

                final IMediaWriter writer = ToolFactory.makeWriter(recordedVideo.getAbsolutePath());
                writer.addVideoStream(0, 0, ICodec.ID.CODEC_ID_H264, screenBounds.width / 2, screenBounds.height / 2);

                long startTime = System.nanoTime();

                timer = new Timer();
                timer.schedule(new TestTimeoutTask(), TimeUnit.SECONDS.toMillis(configuration.getTestTimeout()));
View Full Code Here


                    output.createNewFile();
                } catch (IOException e) {
                    throw new IllegalStateException("Can't create a temporary file for recording.", e);
                }
                IMediaWriter writer = ToolFactory.makeWriter(output.getAbsolutePath());
                writer.addVideoStream(0, 0, ICodec.ID.CODEC_ID_MPEG4,
                    screenBounds.width / 2, screenBounds.height / 2);
                long startTime = System.nanoTime();
                while (running) {
                    BufferedImage screen = getDesktopScreenshot();
View Full Code Here

        IMediaViewer.Mode.AUDIO_VIDEO, true,
        javax.swing.WindowConstants.EXIT_ON_CLOSE));

    // add the video stream

    writer.addVideoStream(videoStreamIndex, videoStreamId,
        width, height);

    // add the audio stream

    writer.addAudioStream(audioStreamIndex, audioStreamId,
View Full Code Here

    IMediaWriter writer = ToolFactory.makeWriter(destinationUrl);
    concatenator.addListener(writer);

    // add the video stream

    writer.addVideoStream(videoStreamIndex, videoStreamId, width, height);

    // add the audio stream

    writer.addAudioStream(audioStreamIndex, audioStreamId, channelCount,
      sampleRate);
View Full Code Here

      final IMediaWriter writer = ToolFactory.makeWriter(outFile);
     
      // We tell it we're going to add one video stream, with id 0,
      // at position 0, and that it will have a fixed frame rate of
      // FRAME_RATE.
      writer.addVideoStream(0, 0,
          FRAME_RATE,
          screenBounds.width, screenBounds.height);
     
      // Now, we're going to loop
      long startTime = System.nanoTime();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.