newbie gstreamer sdk problem

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

newbie gstreamer sdk problem

Angelica Perduta
I just got the gstreamer SDK for Windows from
http://docs.gstreamer.com/display/GstSDK/Installing+on+Windows and the
tutorials seem to compile and run which is a good start. :)

Then as suggested in the first tutorial I edited the source code to
specify a local file and it doesn't work :(

I tested the link by Ctrl clicking it in the source code in visual
studio and windows media player then opens and plays my media no
problem. I tried an .avi file as well as .mp4 file and neither of them
will render on gstreamer :(

IOW in basic-tutorial-1.c I replaced the line:

pipeline = gst_parse_launch ("playbin2
uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);

with:

pipeline = gst_parse_launch ("playbin2
uri=file://D:/AudioDriver/sample.avi", NULL);

what could be going wrong?
Thanks for any help :)
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: newbie gstreamer sdk problem

Ralph
Try
  uri=file:///D:/AudioDriver/sample.avi
instead of
  uri=file://D:/AudioDriver/sample.avi

Each time I want to open a new file I use this code in C#:
  playBin.Uri = @"file:///" + fileName.Replace('\\', '/');
Reply | Threaded
Open this post in threaded view
|

Re: newbie gstreamer sdk problem

Angelica Perduta
Thanks for that info Ralph. I added another / as suggested
interestingly now the .avi file plays the sound but sadly still not
the video.
My .mp4 file still doesn't play at all through gstreamer but is fine
in Windows media player.

I suddenly wonder if this is because I built a 32 bit application but
am running it on a 64 bit OS... I kind of assumed that 64 bit Windows
can always run 32 bit apps but maybe that is not so with gstreamer?
I'll install the 64 bit version and give it a try now.

On Fri, Nov 16, 2012 at 2:16 AM, Ralph <[hidden email]> wrote:

> Try
>   uri=file:///D:/AudioDriver/sample.avi
> instead of
>   uri=file://D:/AudioDriver/sample.avi
>
> Each time I want to open a new file I use this code in C#:
>   playBin.Uri = @"file:///" + fileName.Replace('\\', '/');
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/newbie-gstreamer-sdk-problem-tp4656925p4656930.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
~~~ PEr aRDUa ad asTrA ~~~
(Through adversity to the stars)
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: newbie gstreamer sdk problem

Andoni Morales
In reply to this post by Angelica Perduta
2012/11/15 Perdie Perduta <[hidden email]>:

> I just got the gstreamer SDK for Windows from
> http://docs.gstreamer.com/display/GstSDK/Installing+on+Windows and the
> tutorials seem to compile and run which is a good start. :)
>
> Then as suggested in the first tutorial I edited the source code to
> specify a local file and it doesn't work :(
>
> I tested the link by Ctrl clicking it in the source code in visual
> studio and windows media player then opens and plays my media no
> problem. I tried an .avi file as well as .mp4 file and neither of them
> will render on gstreamer :(
>
> IOW in basic-tutorial-1.c I replaced the line:
>
> pipeline = gst_parse_launch ("playbin2
> uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL);

Hi,

You are missing a slash, it should be file:// + /d:/path/to/file. It's
a bit weird but even if it's a windows-style path, it should start
with a slash. We will update the docs to make this clear.

Andoni

>
> with:
>
> pipeline = gst_parse_launch ("playbin2
> uri=file://D:/AudioDriver/sample.avi", NULL);
>
> what could be going wrong?
> Thanks for any help :)
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: newbie gstreamer sdk problem

Ralph
Andoni Morales wrote
We will update the docs to make this clear.
Very good idea.  I remember that it took me a few hours to figure it out first time.
Reply | Threaded
Open this post in threaded view
|

Re: newbie gstreamer sdk problem

Ralph
In reply to this post by Angelica Perduta
Perdie Perduta wrote
I suddenly wonder if this is because I built a 32 bit application but
am running it on a 64 bit OS... I kind of assumed that 64 bit Windows
can always run 32 bit apps but maybe that is not so with gstreamer?
I'm writing WPF C# applications and in order to make them work with GStreamer I must build them in x86 mode (32-bit).  64-bit Windows is capable of running all 32-bit applications, so if you can't see the video, the problem must be somewhere else.  Try playing different video files (using a diffrent codec).
Reply | Threaded
Open this post in threaded view
|

Re: newbie gstreamer sdk problem

Andoni Morales
In reply to this post by Angelica Perduta
2012/11/16 Perdie Perduta <[hidden email]>:

> Thanks for that info Ralph. I added another / as suggested
> interestingly now the .avi file plays the sound but sadly still not
> the video.
> My .mp4 file still doesn't play at all through gstreamer but is fine
> in Windows media player.
>
> I suddenly wonder if this is because I built a 32 bit application but
> am running it on a 64 bit OS... I kind of assumed that 64 bit Windows
> can always run 32 bit apps but maybe that is not so with gstreamer?
> I'll install the 64 bit version and give it a try now.

That shouldn't be a problem at all. You are probably missing some
plugins in your installation.
When you installed the SDK, did you check all options or did you just
used the default install?
I am asking because for  H264 decoding, you will need to have the
ffmpeg plugin installed, which are not installed by default.
If that's the case, running GST_DEBUG=3 gst-launch-0.10 playbin2
uri=file:// will show you what's missing.



Andoni

>
> On Fri, Nov 16, 2012 at 2:16 AM, Ralph <[hidden email]> wrote:
>> Try
>>   uri=file:///D:/AudioDriver/sample.avi
>> instead of
>>   uri=file://D:/AudioDriver/sample.avi
>>
>> Each time I want to open a new file I use this code in C#:
>>   playBin.Uri = @"file:///" + fileName.Replace('\\', '/');
>>
>>
>>
>> --
>> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/newbie-gstreamer-sdk-problem-tp4656925p4656930.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> --
> ~~~ PEr aRDUa ad asTrA ~~~
> (Through adversity to the stars)
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Andoni Morales Alastruey

LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: newbie gstreamer sdk problem

Angelica Perduta
Thank you Andoni, that solved the problem completely! I had indeed
only done the default installation and didn't realize that would not
include codecs for some common formats.
Also thank you for explaining about setting the GST_DEBUG environment
variable it will be very useful :^)

On Sat, Nov 17, 2012 at 5:58 AM, Andoni Morales <[hidden email]> wrote:

> 2012/11/16 Perdie Perduta <[hidden email]>:
>> Thanks for that info Ralph. I added another / as suggested
>> interestingly now the .avi file plays the sound but sadly still not
>> the video.
>> My .mp4 file still doesn't play at all through gstreamer but is fine
>> in Windows media player.
>>
>> I suddenly wonder if this is because I built a 32 bit application but
>> am running it on a 64 bit OS... I kind of assumed that 64 bit Windows
>> can always run 32 bit apps but maybe that is not so with gstreamer?
>> I'll install the 64 bit version and give it a try now.
>
> That shouldn't be a problem at all. You are probably missing some
> plugins in your installation.
> When you installed the SDK, did you check all options or did you just
> used the default install?
> I am asking because for  H264 decoding, you will need to have the
> ffmpeg plugin installed, which are not installed by default.
> If that's the case, running GST_DEBUG=3 gst-launch-0.10 playbin2
> uri=file:// will show you what's missing.
>
>
>
> Andoni
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel