GNOME Bugzilla – Bug 796727
av1enc: fails to drain all frames on EOS
Last modified: 2018-07-26 14:34:58 UTC
On my low end system (Celeron G3930, 4GB Ram, Sata SSD, Ubuntu 18.04) i expirience problems when using av1enc. gst-launch-1.0 videotestsrc num-buffers=1 ! av1enc cpu-used=2 ! webmmux ! filesink location=out.webm Fails, meaning a corrupt out.webm (with 315 bytes size) is created. If I increase num-buffers - I get to the point (num-buffers=19) where things start working. gst-launch-1.0 videotestsrc num-buffers=19 ! av1enc cpu-used=2 ! webmmux ! filesink location=out.webm Where the produced out.webm holds a single frame. num-buffers=20 -> results in two frames and so on It seems that the first 18 frames don't make it on time on my system.
This would mean that av1enc does not properly drain on EOS Maybe Sean has an idea what the problem could be?
Fixed: commit 7c2170a63a442aa4bc06a6511cc29bd56b77da8c Author: Olivier Crête <olivier.crete@collabora.com> Date: Thu Jul 26 09:55:48 2018 -0400 av1enc: Implement finish for EOS Call the encode function repeatedly until nothing comes out. https://bugzilla.gnome.org/show_bug.cgi?id=796727