FastRidingZebra
unread,Feb 18, 2012, 8:56:28 AM2/18/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gstreamer-java
Hy,
I´m trying to build the following pipeline:
gnlurisource uri=file:///C:\\\\temp\\\\testvid.ogv caps=video/x-raw-
yuv media-start=1000000000 duration=5000000000 media-
duration=5000000000 ! theoraenc ! oggmux ! filesink location=C:/temp/
blahh.ogv
If I use "Pipeline.launch", this pipeline works fine.
But if I build it with different Elements like this:
this.mux = ElementFactory.make("oggmux", muxerName);
this.enc = ElementFactory.make("theoraenc", encoderName);
Caps caps = Caps.fromString("video/x-raw-yuv");
this.src = ElementFactory.make("gnlurisource", srcName);
src.set(RecConsts.URI, "file:///C:\\\\temp\\\\testvid.ogv");
src.setCaps(caps);
src.set(RecConsts.MEDIASTART, "1000000000");
src.set(RecConsts.DURATION, "5000000000");
src.set(RecConsts.MEDIADURATION, "5000000000");
this.sink = ElementFactory.make("filesink", sinkName);
sink.set("location", "C:\\temp\\blabla.ogv );
Element[] elements =
{ src,enc, mux, sink };
pipe.addMany(elements);
Element.linkMany(elements);
... I get a simple "Internal data stream error."
Am I stupid or am I just missing something. Where is the difference
between these two pipelines?
Thanks for any help.