gstreamer can no longer find plugins even though they are all installed

Asked by NoahY

Up until recently I have had no problem playing all kinds of video in Ubuntu. I recently upgraded to Lucid and I can't remember if I was able to play videos after that, but yesterday I found that I am unable to play videos with non-free codecs in totem. Converting them to theora (.ogv) using ffmpeg allows them to play just fine, and I can open the original files in Avidemux, vlc, xine, etc., so there is nothing wrong with the files themselves. Not sure what I've done, can't seem to find a bug in launchpad for this, so I am assuming it is a problem with my setup somehow. Anyone willing to help? Here is a sample of some of the errors I get:

(YouTube flv file)

** Message: Missing plugin: gstreamer|0.10|totem|H.264 decoder|decoder-video/x-h264 (H.264 decoder)

or (MP4 file):

** Message: Missing plugin: gstreamer|0.10|totem|DivX MPEG-4 Version 5 decoder|decoder-video/x-divx, divxversion=(int)5 (DivX MPEG-4 Version 5 decoder)

or (another MP4):

** Message: Missing plugin: gstreamer|0.10|totem|XVID MPEG-4 decoder|decoder-video/x-xvid (XVID MPEG-4 decoder)

or (wmv file):

** Message: Missing plugin: gstreamer|0.10|totem|Windows Media Video 9 decoder|decoder-video/x-wmv, wmvversion=(int)3, format=(fourcc)WMV3 (Windows Media Video 9 decoder)
** Message: Missing plugin: gstreamer|0.10|totem|Windows Media Audio 8 decoder|decoder-audio/x-wma, wmaversion=(int)2, bitrate=(int)64040 (Windows Media Audio 8 decoder)

I've even tried playing the files using gst-launch, but I may have my syntax wrong. A ogg from my webcam plays fine:

gst-launch -v filesrc location=1.ogg ! decodebin ! ffmpegcolorspace ! xvimagesink

but when I try a video with a non-free codec:

gst-launch -v filesrc location=noe.flv ! decodebin ! ffmpegcolorspace ! xvimagesink

I get the following error:

ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstFLVDemux:flvdemux0: Internal data stream error.
Additional debug info:
gstflvdemux.c(732): gst_flv_demux_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstFLVDemux:flvdemux0:
stream stopped, reason not-linked
ERROR: pipeline doesn't want to preroll.

Though again, this may be because I don't fully understand how to build a gst stream.

Thinking of switching to vlc as my primary video player...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
NoahY
Solved:
Last query:
Last reply:
Revision history for this message
subliminalfix (subliminalfix) said :
#1

something may have broke or not upgraded. you may want to manually try to remove and reload your player in the terminal

this may help

Remove partial packages

This is yet another built-in feature, but this time it is not used in Synaptic Package Manager. It is used in theTerminal. To access the Terminal, go to Applications > Accessories > Terminal. Now, in the Terminal, key in the following command

sudo apt-get autoclean

Remove unnecessary locale data

For this we need to install localepurge.Automagically remove unnecessary locale data.This is just a simple script to recover diskspace wasted for unneeded locale files and localized man pages. It will automagically be invoked upon completion of any apt installation run.

Install localepurge in Ubuntu

sudo apt-get install localepurge

After installing anything with apt-get install, localepurge will remove all translation files and translated man pages in languages you cannot read.

If you want to configure localepurge you need to edit /etc/locale.nopurge

This can save you several megabytes of disk space, depending on the packages you have installed.

Example:-

I am trying to install dicus using apt-get

sudo apt-get install discus

after end of this installation you can see something like below

localepurge: Disk space freed in /usr/share/locale: 41860K

Remove “orphaned” packages

If you want to remove orphaned packages you need to install deborphan package.

Install deborphan in Ubuntu

sudo apt-get install deborphan

Using deborphan

Open Your terminal and enter the following command

sudo deborphan | xargs sudo apt-get -y remove --purge

Remove “orphaned” packages Using GtkOrphan

GtkOrphan (a Perl/Gtk2 application for debian systems) is a graphical tool which analyzes the status of your installations, looking for orphaned libraries. It implements a GUI front-end for deborphan, adding the package-removal capability.

Install GtkOrphan in Ubuntu

First you need to download latest version of GtkOrphan from here using the following command

wget http://ftp.debian.org/debian/pool/main/g/gtkorphan/gtkorphan_0.4.2-2_all.deb

Now you have gtkorphan_0.4.2-2_all.deb package you need to install this using the following command

dpkg -i gtkorphan_0.4.2-2_all.deb

At the time of installation you get the following error

dpkg -i gtkorphan_0.4.2-2_all.deb
Selecting previously deselected package gtkorphan.
(Reading database … 175891 files and directories currently installed.)
Unpacking gtkorphan (from gtkorphan_0.4.2-2_all.deb) …
dpkg: dependency problems prevent configuration of gtkorphan:
gtkorphan depends on deborphan (>= 1.7.17); however:
Package deborphan is not installed.
gtkorphan depends on libgtk2-gladexml-perl; however:
Package libgtk2-gladexml-perl is not installed.
dpkg: error processing gtkorphan (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gtkorphan

You need to use the following command to fix

sudo apt-get -f install

This will complete the installation.Once you finished the installation go to System--->Administration--->Remove Orphaned Packages

once your sure that the problem is not with your software sources which may have inhibited your operation in someway as well

check to see that your package is intacked in synaptic first^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

goto your filter and look to see if there are broken packages, as well scroll down and look for the "ugly" packages.

Revision history for this message
NoahY (noahy) said :
#2

No, thank you for all the advice, all of those ideas are sound, but having tried them all, I still have the same problem. Video plays everywhere but in totem, and none of the plugins (good, bad, ugly, etc.) are broken. I even tried dpkg --force-all --purge on all the gstreamer packages and then reinstalled them with apt-get, but no luck.

Revision history for this message
subliminalfix (subliminalfix) said :
#3

there are two "video players"(totem) in some of the add/remove sections if you still are running a version that has the little star ratings
and easy listing of applications one had 1 star the other 4-5 same app?
??look there

sorry your still having trouble

Revision history for this message
NoahY (noahy) said :
#4

I'm sorry, but I don't see "Add/Remove"...

On Sun, Apr 18, 2010 at 9:58 AM, subliminalfix <
<email address hidden>> wrote:

> Your question #107711 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/107711
>
> subliminalfix posted a new comment:
> there are two "video players"(totem) in some of the add/remove sections if
> you still are running a version that has the little star ratings
> and easy listing of applications one had 1 star the other 4-5 same app?
> ??look there
>
> sorry your still having trouble
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
subliminalfix (subliminalfix) said :
#5

sorry i was not clearer . ive recently switched to 9.10 and in previous versions the gi was alittle different

in application>(bottom of the list) add/remove "previously" now says ubuntu software center so depending thats were you may look /// into sound$video

if not there i would go to system>administration>synaptic package manager and look at the" totem "section

dont give up !! http://ubuntuforums.org/showthread.php?t=818070

hope that might help

Revision history for this message
NoahY (noahy) said :
#6

Thanks for your help... I think my answer is just to install Lucid fresh and consider it one of life's mysteries :) I have other reasons to think of a fresh install anyway.

Revision history for this message
NoahY (noahy) said :
#7

Okay, I somehow fixed it... first I deleted (moved) all gstreamer files I could find on the system, then purged all of the gstreamer packages using dpkg --force-all --purge and then reinstalled them. That didn't work right away, but then I found out that it was only that one user who had a problem, so I removed the ~/.gstreamer-0.10 folder (which I had done previously to no avail) and when it rebuilt the database, all was well.

Thanks for the help, sorry to be a bother.

Revision history for this message
subliminalfix (subliminalfix) said :
#8

no trouble as a wise man once said:

"walk a mile in someones shoes before you criticize them"

"then youll be a mile away and have there shoes on!!"

glad your going again. best wishes

sometimes restarting your system even after simple changes will help as well