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 785013 - video-converter: conversion fails for YUV420 -> RGB with bitdepths > 8
video-converter: conversion fails for YUV420 -> RGB with bitdepths > 8
Status: RESOLVED DUPLICATE of bug 780189
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-07-17 08:07 UTC by 28872d13
Modified: 2017-07-17 08:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bad frame from gstreamer (19.11 KB, image/png)
2017-07-17 08:07 UTC, 28872d13
Details
Good frame (from 8-bit version) (14.12 KB, image/png)
2017-07-17 08:08 UTC, 28872d13
Details

Description 28872d13 2017-07-17 08:07:38 UTC
Created attachment 355737 [details]
Bad frame from gstreamer

YUV -> RGB conversion seems to fail when the YUV bitdepth is not 8, at least for YUV420. To test:

Create demo video:
$ ffmpeg -y -f lavfi -i smptehdbars -framerate 23.976 -s 400x300 -t 00:00:10 -pix_fmt yuv420p12 -codec:v hevc /tmp/h265.mkv

Extract frames with GStreamer:
$ gst-launch-1.0 -v filesrc location=/tmp/h265.mkv ! decodebin ! videoconvert ! video/x-raw, format=RGB ! pngenc ! multifilesink location="/tmp/frame%d.png"

You will see that the extracted frames have stripes and broken colors. Good and bad picture is attached for reference.

This affects totem-video-thumbnailer and causes bad thumbnails for all such videos.
Comment 1 28872d13 2017-07-17 08:08:28 UTC
Created attachment 355738 [details]
Good frame (from 8-bit version)
Comment 2 Sebastian Dröge (slomo) 2017-07-17 08:16:33 UTC
Thanks for taking the time to report this.
This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 780189 ***