cmisip
Posts: 71
Joined: Tue Aug 25, 2015 12:38 am

Decoding H264 packets and format_in->extradata contents

Sat Aug 11, 2018 6:19 am

I'm using avcodec to read packets from an h264 rtsp stream and I am trying to decode with the mmal h264 decoder. I could send packets but not receive any. I verified that the packets being sent are valid NAL packets with the leading 0x00000001 start code.
I formed format_in->extradata using avcodec's supplied sps and pps from the input stream.

So I decided to look at example_basic_2.c It would seem that the extradata that it reads from an h264 file includes both the sps, pps, AND an IDR frame. Is this supposed to be the way to form the extradata for the mmal h264 decoder?

Thanks,
Chris

cmisip
Posts: 71
Joined: Tue Aug 25, 2015 12:38 am

Re: Decoding H264 packets and format_in->extradata contents

Wed Aug 15, 2018 12:52 am

This has been solved. The answer at:

viewtopic.php?f=29&t=220224&p=1353021#p1353021

Thanks,
Chris

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 10 guests