Tuesday, 3 September 2013

Decode H.264 stream from live555 using ffmpeg

Decode H.264 stream from live555 using ffmpeg

I try to decode H.264 frames for an IP Camera that uses onvif. For this i
am using example testRTSPClient from live555. In FAQ is said that function
afterGettingFrame() is called every time a new packet came in buffer and
that packet is an NAL unit. On live555 part everything looks good. Now for
decoding i am using ffmpeg and the frame i pass to the decoder are formed
like discribed Here. Now my problem is that the ffmpeg is unable to decode
my frames and i am getting errors like:
top block unavailable for requested intra4x4 mode -1 at 18 0
error while decoding MB 18 0
no picture
P sub_mb_type 13 out of range at 2 3
What am i doing wrong with ffmpeg?
PS. example of I-Frame passed to ffmpeg Here
with:
red is startcode
green is SPS info
black is PPS info
blue is I-Frame delivered by live555

No comments:

Post a Comment