Package com.xuggle.mediatool

Examples of com.xuggle.mediatool.MediaViewer$SelfServicingMediaQueue


    File file = new File(PREFIX + "transcode-container.mov");
    file.delete();
    assert(!file.exists());
    MediaWriter writer = new MediaWriter(file.toString(),
      mReader.getContainer());
    writer.addListener(new MediaViewer(mViewerMode, true));
    mReader.addListener(writer);
    while (mReader.readPacket() == null)
      ;
    assert(file.exists());
    // allow 100k difference for debug builds
View Full Code Here


    int h = 200;

    // create the writer
   
    MediaWriter writer = new MediaWriter(file.toString());
    writer.addListener(new MediaViewer(mViewerMode, true));

    // add the video stream

    ICodec codec = ICodec.findEncodingCodec(ICodec.ID.CODEC_ID_FLV1);
    writer.addVideoStream(videoStreamIndex, videoStreamId, codec, w, h);
View Full Code Here

    int sampleRate = 44100;

    // create the writer
   
    MediaWriter writer = new MediaWriter(file.toString());
    writer.addListener(new MediaViewer(mViewerMode, true));

    // add the video stream

    ICodec videoCodec = ICodec.findEncodingCodec(ICodec.ID.CODEC_ID_FLV1);
    writer.addVideoStream(videoStreamIndex, videoStreamId, videoCodec, w, h);
View Full Code Here

    MediaReader reader = new MediaReader(INPUT_FILENAME);
    MediaWriter writer = new MediaWriter(OUTPUT_FILENAME, reader);
    reader.addListener(writer);

    writer.addListener(new MediaViewer(mViewerMode, true, 0));

    MediaDebugListener readerCounter = new MediaDebugListener(URL, META_DATA);
    MediaDebugListener writerCounter = new MediaDebugListener(EVENT, META_DATA);

    reader.addListener(readerCounter);
View Full Code Here

    final int[] counts = new int[2];
    // create a new media reader

    MediaReader mr = new MediaReader(TEST_FILE_20_SECONDS);
    mr.addListener(new MediaViewer(mViewerMode, true));

    // setup the the listener

    IMediaListener mrl = new MediaListenerAdapter()
      {
View Full Code Here

    // create a new media reader

    MediaReader mr = new MediaReader(TEST_FILE_20_SECONDS);
    mr.setBufferedImageTypeToGenerate(BufferedImage.TYPE_3BYTE_BGR);

    mr.addListener(new MediaViewer(mViewerMode, true));

    // setup the the listener

    IMediaListener mrl = new MediaListenerAdapter()
      {
View Full Code Here

       
    // create a new media reader

    MediaReader mr = new MediaReader(container);
    mr.setBufferedImageTypeToGenerate(BufferedImage.TYPE_3BYTE_BGR);
    mr.addListener(new MediaViewer(mViewerMode, true));

    // setup the the listener

    IMediaListener mrl = new MediaListenerAdapter()
      {
View Full Code Here

TOP

Related Classes of com.xuggle.mediatool.MediaViewer$SelfServicingMediaQueue

Copyright © 2018 www.massapicom. 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.