[0.11] ffmpegdec and FF_THREAD_FRAME

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[0.11] ffmpegdec and FF_THREAD_FRAME

Matej Knopp
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [0.11] ffmpegdec and FF_THREAD_FRAME

Matej Knopp
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 <[hidden email]> 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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel