Examples of IContainerFormat


Examples of com.xuggle.xuggler.IContainerFormat

   * Make sure the first video codec returned for FLV is FLV1.
   */
  @Test
  public void testIssue201()
  {
    IContainerFormat format = IContainerFormat.make();
    format.setOutputFormat("flv", null, null);

    List<ID> codecs = format.getOutputCodecsSupported();
    for(ID id : codecs) {
      ICodec codec = ICodec.findEncodingCodec(id);
      assertNotNull(codec);
      if (codec.getType() == ICodec.Type.CODEC_TYPE_VIDEO) {
        assertEquals(ICodec.ID.CODEC_ID_FLV1, id);
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat

  {
    if (args.length != 1) {
      System.err.println("Usage: program_name container_short_name");
      return;
    }
    IContainerFormat format = IContainerFormat.make();
    format.setOutputFormat(args[0], null, null);

    List<ID> codecs = format.getOutputCodecsSupported();

    System.out.println("Container Format: "+format);
    System.out.println();
    System.out.println("Total codecs supported: " + format.getOutputNumCodecsSupported());
    System.out.println("Supported Codecs:");
    for(ID id : codecs) {
      if (id != null) {
        ICodec codec = ICodec.findEncodingCodec(id);
        if (codec != null && codec.canEncode()) {
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat

  {
    if (args.length != 1) {
      System.err.println("Usage: program_name container_short_name");
      return;
    }
    IContainerFormat format = IContainerFormat.make();
    format.setOutputFormat(args[0], null, null);

    List<ID> codecs = format.getOutputCodecsSupported();

    System.out.println("Container Format: "+format);
    System.out.println();
    System.out.println("Supported Codecs:");
    for(ID id : codecs) {
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat

    obj.setVideoPixelFormat(IPixelFormat.Type.ARGB);
    obj.setVideoNumPicturesInGroupOfPictures(12);
    obj.setVideoFrameRate(IRational.make(2, 15));
    obj.setVideoGlobalQuality(5);
    obj.setDuration(ITimeValue.make(1, ITimeValue.Unit.SECONDS));
    IContainerFormat format = IContainerFormat.make();
    format.setInputFormat("flv");
    obj.setContainerFormat(format);
    obj.setHasVideo(false);
    obj.setHasAudio(false);
    obj.setURL("foo:bar");
   
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat

 

  @Test
  public void testContainerFormat()
  {
    IContainerFormat defaultVal = null;
    ISimpleMediaFile obj = new SimpleMediaFile();
    assertEquals("unexpected default", defaultVal, obj.getContainerFormat());

    IContainerFormat format = IContainerFormat.make();
    assertNotNull(format);
    format.setInputFormat("flv");
    assertNotNull(format.getInputFormatLongName());
    assertTrue(format.getInputFormatLongName().length()>0);
    obj.setContainerFormat(format);
    assertEquals(format.getInputFormatLongName(), obj.getContainerFormat().getInputFormatLongName());
  }
View Full Code Here

Examples of com.xuggle.xuggler.IContainerFormat

    IContainer container = IContainer.make();

    // tell Xuggler about the device format

    IContainerFormat format = IContainerFormat.make();
    if (format.setInputFormat(driverName) < 0)
      throw new IllegalArgumentException(
        "couldn't open webcam device: " + driverName);
   
    // devices, unlike most files, need to have parameters set in order
    // for Xuggler to know how to configure them, for a webcam, these
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.