LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2008, 05:33 PM   #1
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
gstreamer playbin can't play mp3 files


I'm trying to use Songbird on Slackware 12 and it needs gstreamer. So I got gstreamer-0.10.17 and the base, good, bad and ugly plugins as well as their dependencies from slacky.eu. Songbird works and can play wav files but when trying an mp3 it just displays "erro" where the trck time would be.

I've been searching Google and here and the gst-launch man page. I found out how to use it from the commandline. I can actually get it to play an mp3 using the command
Code:
gst-launch filesrc location=/path/to/file.mp3 ! mad ! alsasink
but any attempt to use playbin (which Songbird uses) instead of filesrc
Code:
gst-launch playbin uri=file:///path/to/fil.mp3
produces the error "playbin0/src: Internal data flow error." If I try to use mad and alsasink with playbin it just tells me "could not link playbin0 to mad0"

I have two machines and it's acting the same on both. I haven't used gstreamer before. I don't use Gnome and I don't have any gconf things to change properties. Is there anything else I can try? Is playbin broken in 0.10.17?
 
Old 02-06-2008, 07:11 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Have you got gstreamer-fluendo-mp3, gstreamer ffmpeg, etc.? I have been using gstreamer for quite some time and it has always worked for me. But then again, as you can see, I've got quite a few gstreamer packages:
Code:
i A gstreamer0.10-alsa              - GStreamer plugin for ALSA                 
v   gstreamer0.10-audiosink         -                                           
v   gstreamer0.10-colorspace        -                                           
i   gstreamer0.10-doc               - GStreamer core documentation and manuals  
i A gstreamer0.10-esd               - GStreamer plugin for ESD                  
p   gstreamer0.10-ffmpeg            - FFmpeg plugin for GStreamer               
i   gstreamer0.10-ffmpeg-full       - FFmpeg plugin for GStreamer               
i   gstreamer0.10-fluendo-mp3       - Fluendo mp3 decoder GStreamer plugin      
p   gstreamer0.10-fluendo-mpegdemux - GStreamer plugin for demuxing of MPEG2 str
p   gstreamer0.10-fluendo-mpegmux   - GStreamer plugin for muxing of MPEG2 TS st
i   gstreamer0.10-gl                - GStreamer plugin for OpenGL output        
i A gstreamer0.10-gnomevfs          - GStreamer plugin for GnomeVFS             
p   gstreamer0.10-gnonlin           - non-linear editing module for GStreamer   
p   gstreamer0.10-gnonlin-dev       - development files of the non-linear editin
i   gstreamer0.10-lame              - GStreamer lame plugins                    
p   gstreamer0.10-plugins-bad       - GStreamer plugins from the "bad" set      
p   gstreamer0.10-plugins-bad-dbg   - GStreamer plugins from the "bad" set      
p   gstreamer0.10-plugins-bad-doc   - GStreamer documentation for plugins from t
i A gstreamer0.10-plugins-base      - GStreamer plugins from the "base" set     
p   gstreamer0.10-plugins-base-apps - GStreamer helper programs from the "base" 
p   gstreamer0.10-plugins-base-dbg  - GStreamer plugins from the "base" set     
p   gstreamer0.10-plugins-base-doc  - GStreamer documentation for plugins from t
p   gstreamer0.10-plugins-farsight  - plugins for Gstreamer for Audio/Video conf
i A gstreamer0.10-plugins-good      - GStreamer plugins from the "good" set     
p   gstreamer0.10-plugins-good-dbg  - GStreamer plugins from the "good" set     
p   gstreamer0.10-plugins-good-doc  - GStreamer documentation for plugins from t
i   gstreamer0.10-plugins-really-ba - GStreamer plugins from the "bad" set      
i A gstreamer0.10-plugins-ugly      - GStreamer plugins from the "ugly" set     
p   gstreamer0.10-plugins-ugly-dbg  - GStreamer plugins from the "ugly" set     
p   gstreamer0.10-plugins-ugly-doc  - GStreamer documentation for plugins from t
p   gstreamer0.10-schroedinger      - GStreamer plugin for encoding/decoding of 
i   gstreamer0.10-sdl               - GStreamer plugin for SDL output           
p   gstreamer0.10-tools             - Tools for use with GStreamer              
v   gstreamer0.10-videosink         -                                           
i A gstreamer0.10-x                 - GStreamer plugins for X11 and Pango       
i A libgstreamer-plugins-base0.10-0 - GStreamer libraries from the "base" set   
p   libgstreamer-plugins-base0.10-d - GStreamer development files for libraries 
p   libgstreamer-plugins-pulse0.10- - PulseAudio plugin for GStreamer           
i A libgstreamer0.10-0              - Core GStreamer libraries and elements     
p   libgstreamer0.10-0-dbg          - Core GStreamer libraries and elements     
i A libgstreamer0.10-dev            - GStreamer core development files          
p   libgstreamer0.10-ruby           - GStreamer 0.10 bindings for the Ruby langu
p   libgstreamer0.10-ruby1.8        - GStreamer 0.10 bindings for the Ruby langu
i A totem-gstreamer                 - A simple media player for the Gnome deskto
 
Old 02-06-2008, 07:36 PM   #3
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
Thanks for the reply. You certainly do have a lot of gstreamer-related packages installed. For Slackware the most I can find is the gstreamer program and the base, good, bad and ugly plugins. I have ffmpeg and lame installed already and gstreamer is aware of them (according to gst-inspect) Fluendo looks interesting. I've just downloaded the free binary package from their webshop so I'll try that and see what happens.
 
Old 02-07-2008, 09:20 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Original Poster
Rep: Reputation: 63
I just tried again after installing the plugin. I still get the same "Internal data flow error." It works if I use filesrc and ! flump3dec ! alsasink so the plugin is working. This is only happening with mp3 files because wav and ogg work. The files are ripped from my own cds so there's no drm involved.

EDIT: I just fixed it. I downgraded gstreamer and the base plugins to 0.10.13. Although, I think the problem is primarily in the base plugins package.

Last edited by dracolich; 02-07-2008 at 11:31 AM.
 
Old 09-11-2014, 03:35 AM   #5
Sshivam
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
There are many ways. Have you tried this command?
This may be helpful to you.

gst-launch-0.10 playbin url=file:///path_to_filr/file.mp3
 
Old 09-11-2014, 03:58 AM   #6
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
This is a 6 year old thread
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Gstreamer-totem to play .mov files Fegenbush Linux - Software 2 03-14-2007 12:55 AM
Not able to play mp3 files.. rahulrawat Red Hat 6 01-11-2006 11:58 AM
For people how want to play WMA files without converting MP3 files waelaltaqi Linux - Software 15 11-17-2005 08:30 AM
Can not play MP3 files TigerLinux Fedora 16 10-03-2005 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration