After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747408 - vtdec: vtdec ! glimagesync broken on OS X
vtdec: vtdec ! glimagesync broken on OS X
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Mac OS
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-06 13:23 UTC by Ilya Konstantinov
Modified: 2016-09-22 07:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ilya Konstantinov 2015-04-06 13:23:25 UTC
I suspect issue is GLMemory and NV12, since vtdec ! videoflip method=clockwise ! glimagesink works.
Comment 1 Julien Isorce 2015-04-08 07:51:01 UTC
I can reproduce the problem too.
Comment 2 Ilya Konstantinov 2015-04-08 16:04:36 UTC
Note the following from the Video Toolbox WWDC lecture:

"But let's say you were possessed to add BGRA request to your PixelBufferAttributes.

So just like before, the decoder inside of our VTDecompressionSession will decode to a YUV format and will ask whether this CVPixelBuffer is compatible with the requested output requirements.

And it is OpenGL ES compatible, but it's certainly not BGRA.

So it will need to do an extra buffer copy to convert that YUV data to BGRA data.

So extra buffer copies are bad.

They decrease efficiency and they can lead to decreased battery life."

Basically, he's saying that the native format is YUV, and specifying BGRA will cause a conversion and a buffer copy. Therefore, we should strive to have glimagesink draw YUV rather than ask vtdec to decode to BGRA.

(Ditto in avfvideosrc ! glimagesink, probably.)
Comment 3 Ilya Konstantinov 2015-04-08 16:05:01 UTC
Link to the text of the WWDC session on Video Toolbox:
http://asciiwwdc.com/2014/sessions/513
Comment 4 Matthew Waters (ystreet00) 2016-05-25 08:33:50 UTC
Does this still happen? If so, could you attach a *:6 debug log of it failing?
Comment 5 Matthew Waters (ystreet00) 2016-09-22 07:50:02 UTC
This most likely fixed by the numerous commits to applemedia integrating with gstgl.  As the required information was not provided, marking as incomplete.  If you have any more information to provide, please reopen and provide the necessary information.