GStreamer Application Development Manual (0.8.9.2) | ||
---|---|---|
<<< Previous | Components | Next >>> |
Spider is an autoplugger that looks and feels very much like decodebin. On the commandline, you can literally switch between spider and decodebin and it'll mostly just work. Try, for example, gst-launch-0.8 filesrc location=file.ogg ! spider ! audioconvert ! audioscale ! alsasink. Although the two may seem very much alike from the outside, they are very different from the inside. Those internal differences are the main reason why spider is currently considered deprecated (along with the fact that it was hard to maintain).
As opposed to decodebin, spider does not decode pads and emit signals for each detected stream. Instead, you have to add output sinks to spider by create source request pads and connecting those to sink elements. This means that streams decoded by spider cannot be dynamic. Also, spider uses many loop-based elements internally, which is rather heavy scheduler-wise.
Code for using spider would look almost identical to the code of decodebin, and is therefore omitted. Also, featureset and limitations are very much alike, except for the above-mentioned extra limitations for spider with respect to decodebin.
<<< Previous | Home | Next >>> |
Decodebin | Up | GstPlay |