[Libav-user] How to decode H.264 RTP packet using ffmpeg?

Luke Clemens lclemens at gmail.com
Sun Feb 12 19:21:27 CET 2012


you can't use  avcodec_decode_video2 () to decode rtp packets. setup an
AVFormatContext and use av_read_frame() and then after you get the frame,
use  avcodec_decode_video.

On Fri, Dec 2, 2011 at 12:05 AM, 김희숙 <hskim095 at naver.com> wrote:

> Hi,
>
>
>
> I'm wondering how to decode h.264 rtp packet using avcodec_decode_video2()
> function.
>
> On encoding side, STAP-A type or FU-A mode rtp packets are sending.
>
> I depacketize one rtp packet and input the data(avpkt) to
> avcodec_decode_video2().
>
> But there are some errors and the decoding does not working.
>
>
>
> The errors are as follows:
>
> non-existing PPS 933740 referenced
> decode_slice_header error
> no frame!
>
>
>
> Please give some advice and thank you.
>
>
>
> Regards,
>
> HSK
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>


-- 
-
-
-
-
Luke Clemens
http://clemens.bytehammer.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120212/97309a64/attachment.html>


More information about the Libav-user mailing list