Plugin writing problem with caps negotiation

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

Plugin writing problem with caps negotiation

Wei-Di Hung
Hi,
I’m writing a hardware video codec plugin.
For now, I am using gst-launch to test the plugin but an error occurs:

gst-launch filesrc location=xxx.avi ! ffdemux_avi ! xxxdec ! fbdevsink

ERROR: from element /pipeline0/ffdemux_avi0: Internal data stream error.
Additional debug info:
gstffmpegdemux.c(1300): gst_ffmpegdemux_loop (): /pipeline0/ffdemux_avi0:
streaming stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.

While the last plugin is substituted by fakesink or filesink, the pipeline
works ok.
I’ve gst-inspected the decoder and fbdevsink,
the src pad of decoder and the sink pad of fbdevsink both have the cap
GST_VIDEO_CAPS_RGB_16.
I’ve also edited the caps of decoder output buffer:
  buf->caps = GST_PAD_CAPS (filter->srcpad);

Is there something I missed or got wrong with the plugin?
Thanks in advance.
Robert


-------------------------------------------------------------------------
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: Plugin writing problem with caps negotiation

Sudarshan Bisht
 
Hi ,
        Use ffmpegcolorspace in between decoder and sink plugin .

2008/11/10 Wei-Di Hung <[hidden email]>
Hi,
I'm writing a hardware video codec plugin.
For now, I am using gst-launch to test the plugin but an error occurs:

gst-launch filesrc location=xxx.avi ! ffdemux_avi ! xxxdec ! fbdevsink

ERROR: from element /pipeline0/ffdemux_avi0: Internal data stream error.
Additional debug info:
gstffmpegdemux.c(1300): gst_ffmpegdemux_loop (): /pipeline0/ffdemux_avi0:
streaming stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.

While the last plugin is substituted by fakesink or filesink, the pipeline
works ok.
I've gst-inspected the decoder and fbdevsink,
the src pad of decoder and the sink pad of fbdevsink both have the cap
GST_VIDEO_CAPS_RGB_16.
I've also edited the caps of decoder output buffer:
 buf->caps = GST_PAD_CAPS (filter->srcpad);

Is there something I missed or got wrong with the plugin?
Thanks in advance.
Robert


-------------------------------------------------------------------------
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



--
Regards,

Sudarshan Bisht

-------------------------------------------------------------------------
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