gstreamer uri format on windows

谁说胖子不能爱 提交于 2019-12-13 04:43:36

问题


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.


回答1:


The following syntax worked for me :

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


来源:https://stackoverflow.com/questions/26092616/gstreamer-uri-format-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!