Re: [Libav-user] H.264 nal decode

2012-04-10 Thread srikanta mondal
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

Re: [Libav-user] H.264 nal decode

2012-04-10 Thread NITIN GOYAL
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

Re: [Libav-user] H.264 nal decode

2012-04-10 Thread Kalileo
On Apr 10, 2012, at 13:19 , srikanta mondal wrote: Thank you for reply. @kalileo I have simply got the UDP socket and get the byte array from it. you could also use the ffmpeg libraries to do that. Now that byte array is basically the x264_nal_t*(p_payload[0]) from sender side. Is it?

Re: [Libav-user] H.264 nal decode

2012-04-10 Thread srikanta mondal
Thanks all for reply. However I have got the H.264 compression using libX264 from * http://stackoverflow.com/questions/2940671/how-to-encode-series-of-images-into-h264-using-x264-api-c-c * and it is working fine for making video. @NITIN GOYAL I have found in each nal frame contain the starting

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread Kalileo
On Apr 9, 2012, at 16:13 , srikanta mondal wrote: Hi all, I am Srikanta Mondal from India. I am working on video compression and sending each compressed frame to network. I have done H.264 compression by using libx264 and the function x264_encoder_encode() and I have got the x264_nal_t

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread NITIN GOYAL
Read the dranger docs on how to decode the NALs or see the example program from libav source to start with. And if you have already done that, please share the issue you are finding. On Mon, Apr 9, 2012 at 3:21 PM, Kalileo kali...@universalx.net wrote: On Apr 9, 2012, at 16:13 , srikanta

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread srikanta mondal
Dear all, Thank you for reply. I have used x264 library. And I have the following code AVCodecContext* m_pContext; void Encoding() { IplImage *image; av_register_all() ; avcodec_init(); codec = avcodec_find_encoder(CODEC_ID_H264); m_pContext =

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread Kalileo
On Apr 9, 2012, at 17:56 , srikanta mondal wrote: Dear all, Thank you for reply. I have used x264 library. And I have the following code [snip] This is my brief code sniff.Please guide me how could I able to decode directly without using file. What do you mean with this: decode

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread Alex Cohn
On Mon, Apr 9, 2012 at 13:56, srikanta mondal srkntmon...@gmail.com wrote: Dear all, Thank you for reply. I have used x264 library. And I have the following code [..] void decoding(uint8_t *data, int size) {     AVPacket *pkt;     pkt = new AVPacket();     int gotpicture;    

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread srikanta mondal
@kalileo Actually I want to send the encoded frame over the network by UDP and on the client side it will decode. And on the client side I want to decode from memory, ie using array, not using file or hard disk. Simply I want to decode that particular encoded array with function like

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread Kalileo
On Apr 10, 2012, at 11:31 , srikanta mondal wrote: @kalileo Actually I want to send the encoded frame over the network by UDP Open the target udp url as output file and then use av_write_frame() to stream. and on the client side it will decode. And on the client side I want to decode

Re: [Libav-user] H.264 nal decode

2012-04-09 Thread Alex Cohn
On Mon, Apr 9, 2012 at 15:02, srikanta mondal srkntmon...@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