This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: How to debug fatal errors from the GStreamer Ducati plugins

Part Number: AM5728

Hi,

We have an application which is transcoding motion-JPEG to H.264 using the GStreamer Ducati plugins.

Sporadically, we see errors reported from the plugin:

0:17:53.067453000 4906 0xb40680f0 WARN default gstducatividdec.c:567:codec_process: err=-1, extendedError=00000010
0:17:53.068753000 4906 0xb40680f0 ERROR default gstducati.c:61:gst_ducati_log_extended_error_info: Bit 4 (00000010): MB data error
0:17:53.088345000 4906 0xb40680f0 WARN default gstducatividdec.c:567:codec_process: err=-1, extendedError=00000010
0:17:53.089897000 4906 0xb40680f0 ERROR default gstducati.c:61:gst_ducati_log_extended_error_info: Bit 4 (00000010): MB data error
0:17:53.117345000 4906 0xb40680f0 WARN default gstducatividdec.c:567:codec_process: err=-1, extendedError=00000010
0:17:53.118458000 4906 0xb40680f0 ERROR default gstducati.c:61:gst_ducati_log_extended_error_info: Bit 4 (00000010): MB data error
0:17:53.268037000 4906 0xb40680f0 WARN default gstducatividdec.c:567:codec_process: err=-1, extendedError=00008000
0:17:53.268621000 4906 0xb40680f0 ERROR default gstducati.c:61:gst_ducati_log_extended_error_info: Bit 15 (00008000): fatal

We have so far been unable to identify any particular scenario that makes the errors more or less likely to happen: sometimes they occur immediately, sometimes after several minutes, and sometimes the application runs for several hours without errors.

How should we go about debugging these errors? My understanding from reviewing the ducati and libdce code is that the errors originate on the DSP processor and not on the primary ARM processor. Are there any tools that would allow greater visibility into what is going wrong in the DSP firmware?

  • Hi John,

    Did you try the input MJPEG video decoding on PC and confirm that it is not an error/corrupted stream?

    MB data error mostly points to corrupted macro blocks in the input file.

    Btw, you are using Ducati codecs, not DSP codecs, correct?

    Thanks & Regards,

    Sunita.

  • Hi Sunita,

    The stream is live from a USB webcam. It's possible there are corrupt frames now and then, I haven't confirmed this for sure. If there is a corrupt frame occasionally, it's not a big deal to us.

    The "Bit 15 (00008000): fatal" error is more of a problem, since it currently causes the application to exit. We would like to understand what causes this error, and if there is a fix or workaround.

    We are using the ducati codes, i.e. "ducatijpegdec" and "ducatih264enc".

  • Hi,

    Seems the stream is corrupted so please dump the stream into a file then playback in a PC & run the same stream using the GST pipeline.

    Let me know the status.

    Thanks

    Gaviraju