Adding videoflip to pipeline creates errors

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

Adding videoflip to pipeline creates errors

Rob Smith
Hello,

I'm running into problems with my pipeline, where basically i'd like to
rotate the video source by 180 degrees. I'm running on an embedded
device, using TI hardware dsp encoder. The pipeline that i'm starting
with is this:

v4l2src !
video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96

I'm using this pipeline with the example code found with the gst-rtsp
server package, and it works fine. However, whenever I add the videoflip
plugin, I just get errors. This is the pipeline i've tried:

v4l2src !
video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! videoflip method=2 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96

which outputs the error messages:

0:00:08.377593970  1629    0x11008 ERROR
GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
v4l2src0 to videoflip0
0:00:08.388915992  1629    0x11008 ERROR
GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
videoflip0 to tividenc10
0:00:08.389617897  1629    0x11008 WARN        rtspmediafactory
rtsp-media-factory.c:508:default_get_element: recoverable parsing error:
could not link v4l2src0 to videoflip0
0:00:08.420776344  1629    0x11008 WARN               rtspmedia
rtsp-media.c:911:alloc_udp_ports: multiudpsink version found without
buffer-size property
0:00:16.318237290  1657    0x11008 WARN                    v4l2
gstv4l2object.c:1842:gst_v4l2_object_probe_caps_for_format:<v4l2src0>
Could not probe minimum capture size for pixelformat UYVY


I've also tried with queues added either side of videoflipCan anyone
give guidance as to these errors and warning, and what I might need to
add in the pipeline to fix this?

Thanks very much,
Rob Smith

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Adding videoflip to pipeline creates errors

Alexey Chernov
Hi, Rob,

I've recently worked with videoflip, too, and I've noticed that it's
pretty sensitive to colorspace of its input. Consider adding
ffmpegcolorspace right before videoflip element in the second
pipeline, I think it should help. In my case it also saved about 50%
of CPU performance.

> Hello,
>
> I'm running into problems with my pipeline, where basically i'd like to
> rotate the video source by 180 degrees. I'm running on an embedded
> device, using TI hardware dsp encoder. The pipeline that i'm starting
> with is this:
>
> v4l2src !
> video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96
>
> I'm using this pipeline with the example code found with the gst-rtsp
> server package, and it works fine. However, whenever I add the videoflip
> plugin, I just get errors. This is the pipeline i've tried:
>
> v4l2src !
> video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! videoflip method=2 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96
>
> which outputs the error messages:
>
> 0:00:08.377593970  1629    0x11008 ERROR
> GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
> v4l2src0 to videoflip0
> 0:00:08.388915992  1629    0x11008 ERROR
> GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
> videoflip0 to tividenc10
> 0:00:08.389617897  1629    0x11008 WARN        rtspmediafactory
> rtsp-media-factory.c:508:default_get_element: recoverable parsing error:
> could not link v4l2src0 to videoflip0
> 0:00:08.420776344  1629    0x11008 WARN               rtspmedia
> rtsp-media.c:911:alloc_udp_ports: multiudpsink version found without
> buffer-size property
> 0:00:16.318237290  1657    0x11008 WARN                    v4l2
> gstv4l2object.c:1842:gst_v4l2_object_probe_caps_for_format:<v4l2src0>
> Could not probe minimum capture size for pixelformat UYVY
>
>
> I've also tried with queues added either side of videoflipCan anyone
> give guidance as to these errors and warning, and what I might need to
> add in the pipeline to fix this?
>
> Thanks very much,
> Rob Smith
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Adding videoflip to pipeline creates errors

Rob Smith
Hello,

Thanks very much for that suggestion. It turns out videoflip and my TI
plugin must both be sensitive, as I have had to add ffmpegcolorspace
before and after videoflip, but it does work. So thanks very much.

Regards
Rob

On Tue, 2011-03-22 at 16:02 +0300, 4ernov wrote:

> Hi, Rob,
>
> I've recently worked with videoflip, too, and I've noticed that it's
> pretty sensitive to colorspace of its input. Consider adding
> ffmpegcolorspace right before videoflip element in the second
> pipeline, I think it should help. In my case it also saved about 50%
> of CPU performance.
>
> > Hello,
> >
> > I'm running into problems with my pipeline, where basically i'd like to
> > rotate the video source by 180 degrees. I'm running on an embedded
> > device, using TI hardware dsp encoder. The pipeline that i'm starting
> > with is this:
> >
> > v4l2src !
> > video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96
> >
> > I'm using this pipeline with the example code found with the gst-rtsp
> > server package, and it works fine. However, whenever I add the videoflip
> > plugin, I just get errors. This is the pipeline i've tried:
> >
> > v4l2src !
> > video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! videoflip method=2 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96
> >
> > which outputs the error messages:
> >
> > 0:00:08.377593970  1629    0x11008 ERROR
> > GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
> > v4l2src0 to videoflip0
> > 0:00:08.388915992  1629    0x11008 ERROR
> > GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
> > videoflip0 to tividenc10
> > 0:00:08.389617897  1629    0x11008 WARN        rtspmediafactory
> > rtsp-media-factory.c:508:default_get_element: recoverable parsing error:
> > could not link v4l2src0 to videoflip0
> > 0:00:08.420776344  1629    0x11008 WARN               rtspmedia
> > rtsp-media.c:911:alloc_udp_ports: multiudpsink version found without
> > buffer-size property
> > 0:00:16.318237290  1657    0x11008 WARN                    v4l2
> > gstv4l2object.c:1842:gst_v4l2_object_probe_caps_for_format:<v4l2src0>
> > Could not probe minimum capture size for pixelformat UYVY
> >
> >
> > I've also tried with queues added either side of videoflipCan anyone
> > give guidance as to these errors and warning, and what I might need to
> > add in the pipeline to fix this?
> >
> > Thanks very much,
> > Rob Smith


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Adding videoflip to pipeline creates errors

Olivier Crête-2
On Tue, 2011-03-22 at 14:07 +0000, Rob Smith wrote:
> Hello,
>
> Thanks very much for that suggestion. It turns out videoflip and my TI
> plugin must both be sensitive, as I have had to add ffmpegcolorspace
> before and after videoflip, but it does work. So thanks very much.

You may want to look at videoflip from git, basic YUV 4:2:2 support was
recently added. So you may be able to save two colorspace conversions.

--
Olivier Crête
[hidden email]
Collabora Ltd

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding videoflip to pipeline creates errors

Stefan Sauer
In reply to this post by Rob Smith
On 22.03.2011 10:52, Rob Smith wrote:

> Hello,
>
> I'm running into problems with my pipeline, where basically i'd like to
> rotate the video source by 180 degrees. I'm running on an embedded
> device, using TI hardware dsp encoder. The pipeline that i'm starting
> with is this:
>
> v4l2src !
> video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96
>
> I'm using this pipeline with the example code found with the gst-rtsp
> server package, and it works fine. However, whenever I add the videoflip
> plugin, I just get errors. This is the pipeline i've tried:
>
> v4l2src !
> video/x-raw-yuv,format=(fourcc)UYVY,width=320,height=240,framerate=10/1 ! videoflip method=2 ! TIVidenc1 engineName=codecServer codecName=h264enc ! rtph264pay name=pay0 pt=96
>
> which outputs the error messages:
>
> 0:00:08.377593970  1629    0x11008 ERROR
> GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
> v4l2src0 to videoflip0
> 0:00:08.388915992  1629    0x11008 ERROR
> GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link
> videoflip0 to tividenc10

You will most probably ad ffmpegcolorspace elements before and after or
make a patch to videoflip to support more colorpaces natively

Stefan

> 0:00:08.389617897  1629    0x11008 WARN        rtspmediafactory
> rtsp-media-factory.c:508:default_get_element: recoverable parsing error:
> could not link v4l2src0 to videoflip0
> 0:00:08.420776344  1629    0x11008 WARN               rtspmedia
> rtsp-media.c:911:alloc_udp_ports: multiudpsink version found without
> buffer-size property
> 0:00:16.318237290  1657    0x11008 WARN                    v4l2
> gstv4l2object.c:1842:gst_v4l2_object_probe_caps_for_format:<v4l2src0>
> Could not probe minimum capture size for pixelformat UYVY
>
>
> I've also tried with queues added either side of videoflipCan anyone
> give guidance as to these errors and warning, and what I might need to
> add in the pipeline to fix this?
>
> Thanks very much,
> Rob Smith
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel