Jogi Joseph George
Jogi Joseph George

Reputation: 699

No element "ffmpegcolorspace" in GStreamer

While executing the following command,

gst-launch-1.0 filesrc location=Wildlife.wmv ! decodebin ! queue ! ffmpegcolorspace ! autovideosink dec. ! queue ! audioconvert ! audioresample ! autoaudiosink

I Get the error as follows.

ERROR GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "ffmpegcolorspace"
ERROR GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [source=@0000000003066F90] 
ERROR GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [sink=@000000000306B060]
ERROR GST_PIPELINE grammar.y:1138:priv_gst_parse_launch: No src-element named "dec" - omitting link
WARNING: erroneous pipeline: no element "ffmpegcolorspace"

What is the problem here?

Upvotes: 4

Views: 10363

Answers (1)

thiagoss
thiagoss

Reputation: 2094

A few things:

In gstreamer-1.0, ffmpegcolorspace was renamed to videoconvert. You need to give your decodebin the name you want to refer to it later. Add name=dec to be able to refer to it when linking the audio branch.

Also, you might want to consider just using playbin if you just need playback. It will assemble the pipeline for you and will support multiple formats automatically.

Upvotes: 15

Related Questions