[Bug 796042] New: avviddec: Support draining for some decoders
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Sat May 12 10:45:06 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=796042
Bug ID: 796042
Summary: avviddec: Support draining for some decoders
Classification: Platform
Product: GStreamer
Version: 1.14.0
OS: Linux
Status: NEW
Severity: major
Priority: Normal
Component: gst-libav
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: gingerbk247 at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 371951
--> https://bugzilla.gnome.org/attachment.cgi?id=371951&action=edit
avviddec: Support draining for some decoders
Some decoders (those marked with AV_CODEC_CAP_DELAY) have a delay between input
and output.
It means that for some packets they will not immediately produce decoded output
and need to be flushed at the end of decoding to get all the decoded data.
However, even if AV_CODEC_CAP_DELAY is not set, there are decoders that need to
be flushed if they work on multi-threads.
I experienced that the frame is not drained when I using the ffmpeg native PNG
decoder.
e.g.
gst-launch-1.0 filesrc location="png file location" ! pngparse ! avdec_png !
autovideoconvert
gst-play-1.0 "png file location"
Note.)
If you use ffmpeg native PNG decoder and set the thread_count to 1 in codecCtx,
decoding will be done without draining. So you must be set thread_count more
than 1 to test.
--
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