decklinkvideosrc capture problem

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

decklinkvideosrc capture problem

Jani Koskimaa
Hi,

My Qt5 based software is using pipeline: decklinkvideosrc mode=19 connection=2 name=black ! queue ! videoscale ! videorate ! capsfilter caps="video/x-raw,format=UYVY,width=1280, height=720,framerate=25/1" ! videoconvert ! qt5glvideosink

Video is shown but colors are wrong (very red). From console video is show correctly if I change sink to ximagesink.

If I change format to ARGB which decklinkvideosrc (and qt5glvideosink) should support I got error "

could not link videorate0 to capsfilter0". Qt5Glvideosink does not support UYVY so videoconvert should do the trick automatically but it does not. Why? Is this a bug in decklinkvideosrc?


I am using Fedora24, gstreamer1-1.8.3 and  qt5-gstreamer-1.2.0-8 from fedora repo.


-Jani


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

Re: decklinkvideosrc capture problem

Jani Koskimaa
Solved. I just need to add second capsfilter between videoconvert and qt5glvideosink to force format.

2016-09-15 18:54 GMT+03:00 Jani Koskimaa <[hidden email]>:
Hi,

My Qt5 based software is using pipeline: decklinkvideosrc mode=19 connection=2 name=black ! queue ! videoscale ! videorate ! capsfilter caps="video/x-raw,format=UYVY,width=1280, height=720,framerate=25/1" ! videoconvert ! qt5glvideosink

Video is shown but colors are wrong (very red). From console video is show correctly if I change sink to ximagesink.

If I change format to ARGB which decklinkvideosrc (and qt5glvideosink) should support I got error "

could not link videorate0 to capsfilter0". Qt5Glvideosink does not support UYVY so videoconvert should do the trick automatically but it does not. Why? Is this a bug in decklinkvideosrc?


I am using Fedora24, gstreamer1-1.8.3 and  qt5-gstreamer-1.2.0-8 from fedora repo.


-Jani



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

Re: decklinkvideosrc capture problem

Tim Müller
On Fri, 2016-09-16 at 16:15 +0300, Jani Koskimaa wrote:

Hi,

Just for posterity:

I would not recommend qt5glvideosink from qt-gstreamer. It's outdated
and unmaintained. There is also a known bug about the color issue
(#743716).

videoconvert should indeed convert automatically to a format supported
by qt5glvideosink. If that doesn't work right, that's "likely" a bug in
qt5glvideosink.

I would recommend you use qmlglsink from the qt plugin in gst-plugins-
bad instead if that's an option.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
10-11 October 2016 in Berlin,
Germany
http://gstreamer.freedesktop.org/conference/

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

Re: decklinkvideosrc capture problem

Jani Koskimaa

Thanks for the tip. QGlib is part of qt-gstreamer and it does not have new commits either. What alternatives there are for QGlib?


On 20 Sep 2016 14:31, "Tim Müller" <[hidden email]> wrote:
On Fri, 2016-09-16 at 16:15 +0300, Jani Koskimaa wrote:

Hi,

Just for posterity:

I would not recommend qt5glvideosink from qt-gstreamer. It's outdated
and unmaintained. There is also a known bug about the color issue
(#743716).

videoconvert should indeed convert automatically to a format supported
by qt5glvideosink. If that doesn't work right, that's "likely" a bug in
qt5glvideosink.

I would recommend you use qmlglsink from the qt plugin in gst-plugins-
bad instead if that's an option.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
10-11 October 2016 in Berlin,
Germany
http://gstreamer.freedesktop.org/conference/

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

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

Re: decklinkvideosrc capture problem

konvol
In reply to this post by Jani Koskimaa
Hello, guys

I`ve found, that qt5glvideosink doesn`t know/found colorspace of the stream

, and if the stream width > 576 the colorspace will be upgraded to bt709

, so u`ve to set it manually, like that:


... videoscale ! video/x-raw, format=(string)YV12, colorimetry=(string)bt601 ! qt5glvideosink force-aspect-ratio=false sync=true