3

I have upgrade my gstreamer to the lastest version 1.4.0 on Linux, including the gst-plugins-base/good/bad/ugly. But when I try to play a video, I cannot find many elements, such as xvimagesink, videotestsrc and autovideosink. I want to know how can I add these elements?

gst-launch --gst-debug-level=3 !filesrc location=FlickAnimation.avi !avidemux name=demux demux.video_00 ! queue ! ffdec_mpeg4   !ffmpegcolorspace !autovideosink
tianzheng.jin
  • 81
  • 1
  • 2
  • 4
  • what does this pipeline have to do with those elements? What pipelines are you trying where those elements are not found? – Benjamin Trent Aug 19 '14 at 14:20
  • I've tried to play avi video with gstreamer. But it doesn't work somehow, see http://stackoverflow.com/questions/25076242/gstreamer-fail-to-play-avi-video Someone told me to try with other demux and decoder, then I found I cannot find many elements. – tianzheng.jin Aug 20 '14 at 06:01

4 Answers4

1

Post the result of gst-inspect of the three plugins which you have mentioned.

Try to locate below three files, these are libraries for the mentioned plugins. Please change the folder name of gstreamer version according to what you have in your machine

Filename: /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstvideotestsrc.so
Filename: /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstxvimagesink.so
Filename: /usr/lib/i386-linux-gnu/gstreamer-0.10/libgstautodetect.so

A possible reason: You may have installed mulitple versions of gstreamer

P.S. xvimagesink generally works only when you have a graphics card or a harwdware for graphics

user2618142
  • 1,035
  • 2
  • 18
  • 35
  • # # gst-inspect autovideosink No such element or plugin 'autovideosink' # gst-inspect videotestsrc No such element or plugin 'videotestsrc' # gst-inspect xvimagesink No such element or plugin 'xvimagesink'; I cannot find these .so files you mentioned in my dir. But I'm sure I have installed these four plugins, good/base/ugly/bad... I just install the 1.4.0 version. – tianzheng.jin Aug 20 '14 at 02:52
  • Remove them and install again ! – user2618142 Aug 20 '14 at 03:20
1

If you're using gstreamer 1.x you probably want to use gst-launch-1.0 and gst-inspect-1.0. It's just a guess, but maybe you installed gstreamer 1.x plugins but are using the tools from 0.10 that will look for 0.10 plugins.

Fujii
  • 101
  • 2
  • 3
1

Hopefully, you will find a solution following one of the steps provided in this thread.

In my case, runnig export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib made it work.

ignacio
  • 1,181
  • 2
  • 15
  • 28
0

Since most of these plugins and their names keep changing with the various versions, if not specifically required, I'd recommend using the 'autoaudiosink','autovideosink', .....'auto*src' etc.

Takes out most complications (beginner point of view)

Pendragon
  • 81
  • 4