avdec_h264 Error Messages

Brian Panneton brian.panneton at gmail.com
Wed Aug 3 20:53:36 UTC 2016


I have been receiving these error messages when processing mkv files to mp4:

0:00:00.304415614 ^[[335m11230^[[00m      0x2e250a0 ^[[31;01mERROR  ^[[00m
^[[00m               libav :0::^[[00m Missing reference picture
0:00:00.304429988 ^[[335m11230^[[00m      0x2e250a0 ^[[31;01mERROR  ^[[00m
^[[00m               libav :0::^[[00m decode_slice_header error

I am attempting to track them down and at catch them within my python code.

A small snippet is here:

        GObject.threads_init()
        Gst.init()
        Gst.debug_set_active(True)
        Gst.debug_set_default_threshold(1)
        self.pipeline_front = Gst.Pipeline()
        self.pipeline_front.get_bus().set_sync_handler(self.check_bus1)

...
        self.elements['avdec_h264'] = Gst.ElementFactory.make('avdec_h264')
...
        self.pipeline_front.set_state(Gst.State.PAUSED)
...


def check_bus1(self, bus, msg):
        label = 'Bus1'
        if msg.type  == Gst.MessageType.STREAM_STATUS:
            LOG.warn('{} {} BUS {}'.format(label, msg.type,
msg.parse_stream_status()))
        elif msg.type  == Gst.MessageType.STATE_CHANGED:
            LOG.warn('{} {} BUS {}'.format(label, msg.type,
msg.parse_state_changed()))
        elif msg.type  == Gst.MessageType.WARNING:
            LOG.warn('{} {} BUS {}'.format(label, msg.type,
msg.parse_warning()))
        elif msg.type  == Gst.MessageType.ERROR:
            LOG.warn('{} {} BUS {}'.format(label, msg.type,
msg.parse_error()))
        else:
            print 'What happened!', msg.type
        return Gst.BusSyncReply.PASS

I do not have a MainLoop thus I am doing it this way. I also am not running
it in PLAYING mode and am stepping frame by frame.

If anyone has any idea what is causing me to not catch these errors that
would be great. I am able to get all the other errors/warnings/state
changes but nothing from libav.

Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160803/58312057/attachment-0001.html>


More information about the gstreamer-devel mailing list