gstreamer uri format on windows

I am trying to play media files with gstreamer ,mp3 currently but I am getting the uri format wrong and it can't find the file.

The original command from the documentation is

gst-launch-1.0 playbin uri=file:///home/joe/my-random-media-file.mpeg

I am trying to make it work on windows and writing

gst-launch-1.0 playbin uri=file://C:\gstreamer\1.0\x86\bin\pima.mp3

This is the output I am getting

Setting pipeline to PAUSED ... ERROR: Pipeline doesn't want to pause. ERROR: from element /GstURIDecodeBin:uridecodebin0/GstGioSrc:source: Could not open resource for reading. Additional debug info: gstgiosrc.c(332): gst_gio_src_get_stream (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstGioSrc:source: Could not open location file:///C:/gstreamer/1.0/x86/bin/file:/pima.avi for reading: Error opening file: Invalid argument Setting pipeline to NULL ... Freeing pipeline ...

Can anybody help on how I can get around this ?

I also tried to play mp3 files using

gst-launch filesrc location=hello.mp3 ! mad ! audioresample ! osssink

but found out that osssink was not installed .How can I get it installed or any other sink that can play mp3 files. A piece of advice on how I can figure out my own gstElements to build pipelines would be very helpful .For example how can I go about playing avi videos.

Thank you for your time.

Answers


The following syntax worked for me :

gst-launch-1.0 playbin uri=file:///C:/gstreamer/1.0/x86/bin/pima.mp3

Need Your Help

Dynamic Table in Angular JS from json

javascript jquery json angularjs dynamic

I am trying to generate a dynamic table from Angular JS by receiving a response from Spring Rest Service.

How to detect from an iPhone app whether iPhone battery is in charging or not?

iphone cocoa-touch ios4 iphone-sdk-4.0.1

In my iPhone app, there is a requirement to know whether the iphone is charging or not?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.