no element "filesrc"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

no element "filesrc"

KwangYul Seo
Hi,

I want to construct a gstreamer pipeline with gst_parse_launch.

  string =
      g_strdup("filesrc name=src ! "
              "decodebin ! ffmpegcolorspace ! appsink name=sink "
              "caps=video/x-raw-rgb,pixel-aspect-ratio=1/1,bpp=(int)24,"
              "depth=(int)24,endianness=(int)4321,red_mask=(int)0xff0000,"
              "green_mask=(int)0x00ff00,blue_mask=(int)0x0000ff");

  priv->pipeline = gst_parse_launch (string, &error);


However, it does not work with the following error messages:

0:00:00.009167250  7520  0x9bc33e8 ERROR         GST_PIPELINE
./grammar.y:571:_gst_parse_yyparse: no element "filesrc"
0:00:00.009360548  7520  0x9bc33e8 ERROR         GST_PIPELINE
./grammar.y:839:_gst_parse_launch: Unrecoverable syntax error while
parsing pipeline filesrc name=src ! decodebin ! ffmpegcolorspace !
appsink name=sink
caps=video/x-raw-rgb,pixel-aspect-ratio=1/1,bpp=(int)24,depth=(int)24,endianness=(int)4321,red_mask=(int)0xff0000,green_mask=(int)0x00ff00,blue_mask=(int)0x0000ff
could not construct pipeline: no element
"filesrc"skyul@skyul-desktop:~/work/cameraman/src$

Where is the syntax error?


Regards,
Kwang Yul Seo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: no element "filesrc"

Jerry Tan-2
you can try gst-inspect filesrc to check if there is some error.
filesrc should be in your gstreamer pkgs, if not, there must be a problem.


You can try gst-lauch "filesrc location='' ! decodebin ! ....." to check
if the syntax is right by using it on cmd.

> Hi,
>
> I want to construct a gstreamer pipeline with gst_parse_launch.
>
>   string =
>       g_strdup("filesrc name=src ! "
>               "decodebin ! ffmpegcolorspace ! appsink name=sink "
>               "caps=video/x-raw-rgb,pixel-aspect-ratio=1/1,bpp=(int)24,"
>               "depth=(int)24,endianness=(int)4321,red_mask=(int)0xff0000,"
>               "green_mask=(int)0x00ff00,blue_mask=(int)0x0000ff");
>
>   priv->pipeline = gst_parse_launch (string, &error);
>
>
> However, it does not work with the following error messages:
>
> 0:00:00.009167250  7520  0x9bc33e8 ERROR         GST_PIPELINE
> ./grammar.y:571:_gst_parse_yyparse: no element "filesrc"
> 0:00:00.009360548  7520  0x9bc33e8 ERROR         GST_PIPELINE
> ./grammar.y:839:_gst_parse_launch: Unrecoverable syntax error while
> parsing pipeline filesrc name=src ! decodebin ! ffmpegcolorspace !
> appsink name=sink
> caps=video/x-raw-rgb,pixel-aspect-ratio=1/1,bpp=(int)24,depth=(int)24,endianness=(int)4321,red_mask=(int)0xff0000,green_mask=(int)0x00ff00,blue_mask=(int)0x0000ff
> could not construct pipeline: no element
> "filesrc"skyul@skyul-desktop:~/work/cameraman/src$
>
> Where is the syntax error?
>
>
> Regards,
> Kwang Yul Seo
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel