[Bug 775490] vaapi: encode: jpeg should release configuration after each frame (multi file support)

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Dec 15 06:56:28 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=775490

--- Comment #11 from Hyunjun Ko <zzoon at igalia.com> ---
(In reply to Reza Razavi from comment #9)
> and this is how vaapijpegenc fails :
> gst-launch-1.0 --gst-debug=vaapi*:6 filesrc
> location=/home/reza/Pictures/1.jpg ! jpegdec ! vaapijpegenc ! fakesink
> sync=true

This is regression due to commits in #bug 769266, definetely.

> 0:00:00.139224414  9327       0xa9bf20 DEBUG            vaapiencode
> gstvaapiencode.c:410:gst_vaapiencode_get_caps:<vaapiencodejpeg0> Returning
> sink caps EMPTY
> 0:00:00.139359209  9327       0xa9bf20 DEBUG            vaapiencode
> gstvaapiencode.c:410:gst_vaapiencode_get_caps:<vaapiencodejpeg0> Returning
> sink caps EMPTY
> 0:00:00.144823675  9327       0xa9bf20 DEBUG            vaapiencode
> gstvaapiencode.c:410:gst_vaapiencode_get_caps:<vaapiencodejpeg0> Returning
> sink caps EMPTY
> 0:00:00.144846629  9327       0xa9bf20 DEBUG            vaapiencode
> gstvaapiencode.c:410:gst_vaapiencode_get_caps:<vaapiencodejpeg0> Returning
> sink caps EMPTY
> 0:00:00.144899193  9327       0xa9bf20 DEBUG            vaapiencode
> gstvaapiencode.c:410:gst_vaapiencode_get_caps:<vaapiencodejpeg0> Returning
> sink caps EMPTY
> 0:00:00.144938397  9327       0xa9bf20 DEBUG            vaapiencode
> gstvaapiencode.c:410:gst_vaapiencode_get_caps:<vaapiencodejpeg0> Returning
> sink caps EMPTY

In case of jpegdecoder, it couldn't get surface formats via
gst_vaapi_get_surface_formats.
So returned formats is empty, which leads to raw sink caps including "format= 
".
This is why it failed to make proper sink caps.

> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
> data stream error.
> Additional debug info:
> gstbasesrc.c(2951): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstFileSrc:filesrc0:
> streaming stopped, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> 0:00:00.145032996  9327       0xbb2b80 DEBUG                  vaapi
> gstvaapicontext.c:100:context_destroy: context 0xffffffff

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list