[0.11] ffmpegdec and FF_THREAD_FRAME

Matej Knopp matej.knopp at inmethod.com
Wed May 2 16:04:22 PDT 2012


If anyone is interested, after some debugging I discovered that
gst-ffmpegdec sends an empty packet to decoder to drain it before any
data comes in. This causes the first actual data to be decoded in
second thread without the first getting proper initialization. I'll
submit a patch.

-Matej

On Tue, May 1, 2012 at 11:34 PM, Matej Knopp <matej.knopp at inmethod.com> wrote:
> Hi,
>
> Multithreaded frame decoding in gst-ffmpeg (FF_THREAD_FRAME) is broken
> currently, does anyone know why it doesn't work? Is it a regression?
> Has it always been broken? Is it only broken with libav or was it
> broken with ffmpeg too?
>
> I did attempt to debug it, but I got stuck as I don't know how the
> multithreaded debugging is supposed to work internally. There seems to
> be a problem with H264Contexts' nal_unit_types not matching during nal
> unit decoding, but I can't figure out why. Any help with this would be
> most appreciated.
>
> Thanks,
>
> -Matej


More information about the gstreamer-devel mailing list