[Libav-user] H.264 nal decode
NITIN GOYAL
nitinkumgoyal at gmail.com
Tue Apr 10 09:00:56 CEST 2012
Hey
do all ur raw payload u r sending to the decoding function are in NAL
format like 0001xRawpayload format??
I have done the same thing with the RTP packets. Removed RTP headers
inserted NAL start prefix headers i.e. 0001 before each NAL and then
entered the data to decoding functions.
And if the output is greater than zero, you will get the decoded output in
YUV format in the output buffer.
On Tue, Apr 10, 2012 at 11:49 AM, srikanta mondal <srkntmondal at gmail.com>wrote:
> Thank you for reply.
> @kalileo I have simply got the UDP socket and get the byte array from
> it. Now that byte array is basically the x264_nal_t*(p_payload[0]) from
> sender side. That encoded byte array come to client side. Now I want to
> decode that array with its corresponding parameter values. I think it can
> be done by using avcodec_decode_video2(). But unfortunately the encoded
> array may be not appropriate for the decoding. There may some addition of
> bytes with the array. Please help.
>
> @Alex I get the error of segmentation fault by gdb debugger.
>
>
> Thanks and regards
> Srikanta Mondal
>
>
>
> On Tue, Apr 10, 2012 at 11:09 AM, Alex Cohn <alexcohn at netvision.net.il>wrote:
>
>> On Mon, Apr 9, 2012 at 15:02, srikanta mondal <srkntmondal at gmail.com>
>> wrote:
>> > Thank you for your reply.
>> >
>> > @Alex I have used also the following
>> > sizeDelay = x264_encoder_delayed_frames(encoder);
>> > But all are in vein.
>> >
>> > Thanks all of You
>> > Srikanta Mondal
>>
>> It's not clear what kind of failure you see.
>>
>> Alex
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120410/2c555ccc/attachment.html>
More information about the Libav-user
mailing list