[Libav-user] Ffmpeg unable to initialize swsContext for H264 frame data received through RTP Payload

NITIN GOYAL nitinkumgoyal at gmail.com
Sat Mar 28 11:02:21 CET 2015


On Thu, Mar 26, 2015 at 9:29 PM, Reddi, Praveen <preddi at tridium.com> wrote:

> .
>
> Then I prepended 4 bytes *[0x00, 0x00 , 0x00, 0x01]* to the byte buffer
> before sending to the decoder, because I didnt receive any SPS, PPS NAL
> bytes.
>
> When I send this byte buffer to the decoder, decoder fails when it tries to
>  *initialize sws Context*.
>
> Am I sending the NAL bytes and video frame data
>


Decoder needs SPS and PPS data iroder to get initialized and get decoded.
Utll it gets thsoe values, it wont get initialized. If its H264 stream,
there should be values in sprop of SDP for sure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20150328/cf3663b9/attachment.html>


More information about the Libav-user mailing list