Examples of GStreamerFilter


Examples of com.kurento.kmf.media.GStreamerFilter

    HubPort mixerPort1;
    HubPort mixerPort2;
    HubPort mixerPort3;
    PlayerEndpoint player1;
    PlayerEndpoint player2;
    GStreamerFilter bn;

    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    mediaPipeline = mpf.create();
    contentSession.releaseOnTerminate(mediaPipeline);
    player1 = mediaPipeline.newPlayerEndpoint(
        VideoURLs.map.get("small-mp4")).build();
    player2 = mediaPipeline.newPlayerEndpoint(
        VideoURLs.map.get("small-mp4")).build();
    bn = mediaPipeline.newGStreamerFilter("videobalance saturation=0.0")
        .build();

    mixer = mediaPipeline.newComposite().build();

    mixerPort1 = mixer.newHubPort().build();
    mixerPort2 = mixer.newHubPort().build();
    mixerPort3 = mixer.newHubPort().build();

    player2.connect(bn);
    player1.connect(mixerPort1);
    bn.connect(mixerPort2);

    playersList = new ArrayList<PlayerConnection>();

    PlayerConnection conection1 = new PlayerConnection(player1, mixerPort1);
    PlayerConnection conection2 = new PlayerConnection(player2, mixerPort2);
View Full Code Here

Examples of com.kurento.kmf.media.GStreamerFilter

          browserPlayer.color(Color.BLUE, 16, 0, 450));
      Assert.assertTrue("Lower right part of the video must be white",
          browserPlayer.color(Color.WHITE, 18, 450, 450));

      // Finally, a B&N filter is connected in one of the WebRTC's
      GStreamerFilter bn = mp.newGStreamerFilter(
          "videobalance saturation=0.0").build();
      webRtcEP1.connect(bn);
      bn.connect(hubPort1);
      Thread.sleep(5000);
      Assert.assertTrue(
          "When connecting the filter, the upper left part of the video must be gray",
          browserPlayer.color(new Color(75, 75, 75), 25, 0, 0));
    }
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.