Examples of MPG


Examples of net.pms.formats.MPG

    audio.getAudioProperties().setNumberOfChannels(5);
    List<DLNAMediaAudio> audioCodes = new ArrayList<>();
    audioCodes.add(audio);
    info.setAudioTracksList(audioCodes);
    info.setCodecV("mp4");
    Format format = new MPG();
    format.match("test.avi");
    assertEquals("PS3 is compatible with MPG", true,
        conf.isCompatible(info, format));

    // Construct MPG with wmv codec that the PS3 does not support natively
    info.setCodecV("wmv");
View Full Code Here

Examples of net.pms.formats.MPG

    audio.getAudioProperties().setNumberOfChannels(5);
    List<DLNAMediaAudio> audioCodes = new ArrayList<>();
    audioCodes.add(audio);
    info.setAudioTracksList(audioCodes);
    info.setCodecV("mp4");
    Format format = new MPG();
    format.match("test.mkv");
    assertEquals("PS3 is incompatible with MKV", false,
        conf.isCompatible(info, format));
  }
View Full Code Here

Examples of net.pms.formats.MPG

        format.ps3compatible(),  conf.isCompatible(info, format));

    // MPG: true
    info = new DLNAMediaInfo();
    info.setContainer("avi");
    format = new MPG();
    format.match("test.mpg");
    assertEquals("isCompatible() gives same outcome as ps3compatible() for MPG",
        format.ps3compatible(),  conf.isCompatible(info, format));

    // OGG: false
View Full Code Here

Examples of net.pms.formats.MPG

    List<DLNAMediaAudio> audioCodes = new ArrayList<>();
    info.setAudioTracksList(audioCodes);
    info.setMimeType("video/mpeg");
    info.setCodecV("mpeg2");
    info.setMediaparsed(true);
    Format format = new MPG();
    format.match("test.mpg");

    // Test without rendererConfiguration, as can happen when plugins
    // create virtual video actions under a folder.

    assertEquals("VirtualVideoAction is initialized as compatible with null configuration",
        true, format.isCompatible(info, null));
  }
View Full Code Here

Examples of net.pms.formats.MPG

    assertEquals("ISO matches \"test.iso\"", true, new ISO().match("test.iso"));
    assertEquals("JPG matches \"test.jpg\"", true, new JPG().match("test.jpg"));
    assertEquals("M4A matches \"test.wma\"", true, new M4A().match("test.wma"));
    assertEquals("MKV matches \"test.mkv\"", true, new MKV().match("test.mkv"));
    assertEquals("MP3 matches \"test.mp3\"", true, new MP3().match("test.mp3"));
    assertEquals("MPG matches \"test.mpg\"", true, new MPG().match("test.mpg"));
    assertEquals("OGG matches \"test.ogg\"", true, new OGG().match("test.ogg"));
    assertEquals("PNG matches \"test.png\"", true, new PNG().match("test.png"));
    assertEquals("RAW matches \"test.arw\"", true, new RAW().match("test.arw"));
    assertEquals("TIF matches \"test.tiff\"", true, new TIF().match("test.tiff"));
    assertEquals("WAV matches \"test.wav\"", true, new WAV().match("test.wav"));
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.