Package org.gstreamer

Examples of org.gstreamer.Pipeline.play()


            sb.append(s);
        }
       
        Pipeline pipe = Pipeline.launch(sb.substring(1));

        pipe.play();

        Gst.main();

        pipe.stop();
    }
View Full Code Here


               System.out.println("New Pad " + pad.getName() + " was created");
            }
        });
       
        /* start the pipeline */
        pipeline.play();
        Gst.main();
    }
}
View Full Code Here

            public void endOfStream(GstObject source) {
                System.out.println("Got EOS!");
            }
           
        });
        pipe.play();
        Gst.main();
    }
   
}
View Full Code Here

        Element filesrc = ElementFactory.make("filesrc", "File source");
        filesrc.set("location", args[0]);
        Element outputstream = new WriteableByteChannelSink(pipeChannel.sink(), "output stream");
        inputPipe.addMany(filesrc, outputstream);
        Element.linkMany(filesrc, outputstream);
        inputPipe.play();
        //
        // Now construct the output pipeline to process the data
        //
       
        Element src = null;
View Full Code Here

            public void endOfStream(GstObject source) {
                System.out.println("Got EOS!");
            }
           
        });
        pipe.play();
        Gst.main();
    }
   
}
View Full Code Here

    final Element videosink = ElementFactory.make("xvimagesink", "xv");

    pipe.addMany(videosrc, videosink);
    Element.linkMany(videosrc, videosink);

    pipe.play();

    try {
      Thread.sleep(1000);
    } catch (Exception e) {
    }
View Full Code Here

    final Element videosink = ElementFactory.make("xvimagesink", "xv");

    pipe.addMany(videosrc, videosink);
    Element.linkMany(videosrc, videosink);
           
    pipe.play();

    Tuner tun = Tuner.wrap(videosrc);

    List<TunerNorm> normList = tun.getNormList();
    for (TunerNorm n : normList) {
View Full Code Here

            Element.linkMany(src, convert, sink);
        }
        Gst.getScheduledExecutorService().scheduleAtFixedRate(new Panner(sink),
                100, PERIOD / 100, TimeUnit.MILLISECONDS);
        // Start the pipeline playing
        pipe.play();

        Gst.main();

        // Clean up (gstreamer requires elements to be in State.NULL before disposal)
        pipe.stop();
View Full Code Here

       
        // Link fakesrc to fakesink so data can flow
        src.link(sink);
       
        // Start the pipeline playing
        pipe.play();
        Gst.main();
        pipe.stop();
    }
}
View Full Code Here

      component.setLayoutData(new GridData(GridData.FILL_BOTH));
      Element sink = component.getElement();

      pipe.addMany(src, sink);
      Element.linkMany(src, sink);
      pipe.play();

      shell.open();
      while (!shell.isDisposed()) {
        if (!display.readAndDispatch())
          display.sleep();
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.