Examples of establishOutputCodecId()


Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

  {
    JNIMemoryManager.getMgr().flush();
    IContainerFormat fmt = IContainerFormat.make();
    fmt.setOutputFormat("flv", null, null);
    assertEquals(ICodec.ID.CODEC_ID_FLV1,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_MP3,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));
   
    fmt.setOutputFormat("mp4", null, null);
    assertEquals(ICodec.ID.CODEC_ID_MPEG4,
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

    IContainerFormat fmt = IContainerFormat.make();
    fmt.setOutputFormat("flv", null, null);
    assertEquals(ICodec.ID.CODEC_ID_FLV1,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_MP3,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));
   
    fmt.setOutputFormat("mp4", null, null);
    assertEquals(ICodec.ID.CODEC_ID_MPEG4,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_AAC,
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

    assertEquals(ICodec.ID.CODEC_ID_MP3,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));
   
    fmt.setOutputFormat("mp4", null, null);
    assertEquals(ICodec.ID.CODEC_ID_MPEG4,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_AAC,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));

    fmt.setOutputFormat("3gp", null, null);
    assertEquals(ICodec.ID.CODEC_ID_H263,
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

   
    fmt.setOutputFormat("mp4", null, null);
    assertEquals(ICodec.ID.CODEC_ID_MPEG4,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_AAC,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));

    fmt.setOutputFormat("3gp", null, null);
    assertEquals(ICodec.ID.CODEC_ID_H263,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_AMR_NB,
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

    assertEquals(ICodec.ID.CODEC_ID_AAC,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));

    fmt.setOutputFormat("3gp", null, null);
    assertEquals(ICodec.ID.CODEC_ID_H263,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_AMR_NB,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));

    fmt.delete();
    assertEquals(0, JNIMemoryManager.getMgr().getNumPinnedObjects());
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

    fmt.setOutputFormat("3gp", null, null);
    assertEquals(ICodec.ID.CODEC_ID_H263,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO));
    assertEquals(ICodec.ID.CODEC_ID_AMR_NB,
        fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_AUDIO));

    fmt.delete();
    assertEquals(0, JNIMemoryManager.getMgr().getNumPinnedObjects());
  }
 
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

  {
    JNIMemoryManager.getMgr().flush();
    IContainerFormat fmt = IContainerFormat.make();
    fmt.setOutputFormat("flv", null, null);
    try {
      fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO,
          ICodec.ID.CODEC_ID_MP3);
      fail("should not get here");
    } catch (IllegalArgumentException e) {}
    fmt.delete();
    assertEquals(0, JNIMemoryManager.getMgr().getNumPinnedObjects());
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

  {
    JNIMemoryManager.getMgr().flush();
    IContainerFormat fmt = IContainerFormat.make();
    fmt.setInputFormat("flv");
    try {
      fmt.establishOutputCodecId(ICodec.Type.CODEC_TYPE_VIDEO);
      fail("should not get here");
    } catch (IllegalArgumentException e) {}
    fmt.delete();
    assertEquals(0, JNIMemoryManager.getMgr().getNumPinnedObjects());
  }
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

    switch(inputType)
    {
      case CODEC_TYPE_AUDIO:
        addAudioStream(inputStream.getIndex(),
            inputStream.getId(),
            format.establishOutputCodecId(inputID),
            inputCoder.getChannels(),
            inputCoder.getSampleRate());
        break;
      case CODEC_TYPE_VIDEO:
        addVideoStream(inputStream.getIndex(),
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat.establishOutputCodecId()

            inputCoder.getSampleRate());
        break;
      case CODEC_TYPE_VIDEO:
        addVideoStream(inputStream.getIndex(),
            inputStream.getId(),
            format.establishOutputCodecId(inputID),
            inputCoder.getFrameRate(),
            inputCoder.getWidth(),
            inputCoder.getHeight());
        break;
      default:
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.