GNOME Bugzilla – Bug 785013
video-converter: conversion fails for YUV420 -> RGB with bitdepths > 8
Last modified: 2017-07-17 08:16:33 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.
Created attachment 355738 [details] Good frame (from 8-bit version)
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 ***