Building Pipeline (I don´t get the difference)

31 views
Skip to first unread message

FastRidingZebra

unread,
Feb 18, 2012, 8:56:28 AM2/18/12
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.

Tal Shalif

unread,
Feb 18, 2012, 1:43:42 PM2/18/12
to gstream...@googlegroups.com
Win32 path Backslashitis?


--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To post to this group, send email to gstream...@googlegroups.com.
To unsubscribe from this group, send email to gstreamer-jav...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gstreamer-java?hl=en.


FastRidingZebra

unread,
Feb 19, 2012, 6:09:27 AM2/19/12
to gstreamer-java
Hey Tal,
I think the Backslashes are right:
- I need /// Slashes after "file:" (tried that and it works - was
mentioned by gstreamer-devel)
- I need two Backslashes in the filepath (and because of Java these
have to be escaped by a Backslash... so \\\\ should be right)

Any other suggestions what could go wrong?

On Feb 18, 7:43 pm, Tal Shalif <tsha...@gmail.com> wrote:
> Win32 path Backslashitis?
>
> On 18 February 2012 22:56, FastRidingZebra
> <fastridingze...@googlemail.com>wrote:

Neil C Smith

unread,
Feb 19, 2012, 6:27:50 AM2/19/12
to gstream...@googlegroups.com
On 19 February 2012 11:09, FastRidingZebra

<fastrid...@googlemail.com> wrote:
> I think the Backslashes are right:

Have you tried with forward slashes though? It's marked as a URI,
which means it should be forward slashes.

Best wishes,

Neil

--
Neil C Smith
Artist : Technologist : Adviser
http://neilcsmith.net

Tal Shalif

unread,
Feb 19, 2012, 9:36:56 PM2/19/12
to gstream...@googlegroups.com
If normal forward slashes don't work:

sink.set("location", "C:\\temp\\blabla.ogv );
src.set(RecConsts.URI, "file:///C:\\\\temp\\\\testvid.ogv");

Looks a bit inconsistent.

Reply all
Reply to author
Forward
0 new messages