Search found 3 matches

by jiansu2002
Sun Jun 08, 2014 7:10 am
Forum: Stream Recording
Topic: Hi,all, please help with rtp/H264 decode, thanks
Replies: 4
Views: 2919

Re: Hi,all, please help with rtp/H264 decode, thanks

hi rogerdpack,

Sorry, it doesn't work. avcodec_decode_video2 always returns 0.

James
by jiansu2002
Thu Jun 05, 2014 6:05 am
Forum: Stream Recording
Topic: Hi,all, please help with rtp/H264 decode, thanks
Replies: 4
Views: 2919

Re: Hi,all, please help with rtp/H264 decode, thanks

Continuing with my last post. My code as below: void UnPackRTPIntoVideo() { BYTE i; UINT8 *pBuf; unsigned short nSize; UINT32 dwBufSize; UINT8 ucVideoBufPos; T_BUFMSG tMsg; for( i=0;i<MAX_RTPBUF_NUM;i++) { if(tRTPBuf .ucRTPBufFg == 1) { if ( tRTPBuf .tBufMsg.wMsgLen <= 12 ) { FreeRTPBufPos(i); } pBu...
by jiansu2002
Wed Jun 04, 2014 3:10 am
Forum: Stream Recording
Topic: Hi,all, please help with rtp/H264 decode, thanks
Replies: 4
Views: 2919

Hi,all, please help with rtp/H264 decode, thanks

Hi, all, Now I get H264 RTP packets like [SPS Slice] | [PPS Slice] |[IDR Slice 1]| [IDR Slice2] | [IDR Slice3]. Detailed in the attachment. H264 RTP Wirshark stream.PNG I combine the slices into a frame before put it into avcodec_decode_video2. The way I combine the slices is as so: [0001][SPS][0001...
'