[Live-devel] Extracting VOP coding type from MPEG4 streams

Mallikharjuna Reddy (NAVT) ymreddy at ssdi.sharp.co.in
Tue Oct 23 22:31:29 PDT 2007


Hello Everybody,

We are trying to extract VOP coding type in client side from MPEG4
streams in processSpecialHeader() function in MPEG4ESVideoRTPSource.cpp
file. We wrote the following code snippet in this function after
calculating fCurrentPacketBeginsFrame value:

if(fCurrentPacketBeginsFrame){

      if((packet->data())[3] == 0xB6){
          unsigned char vop_coding_type = (packet->data())[4];
          vop_coding_type = vop_coding_type>>6;
	  }
  }

We observed that vop_coding_type value is always 1 which is
predictive-coded (P) type. The stream consists of both I and P frames.
Are we missing anything in the above code.

Please suggest.


Best Regards
Y. Mallikharjuna Reddy



More information about the live-devel mailing list