Generate PCR from PTS
I am trying to create PCR from PTS as follows. S64 nPcr = nPts * 9 / 100; pTsBuf[4] = 7 + nStuffyingBytes; pTsBuf[5] = 0x10; /* flags */ pTsBuf[6] = ( nPcr >> 25 )&0xff; pTsBuf[7] = ( nPcr >> 17 )&0xff; pTsBuf[8] = ( nPcr >> 9 )&0xff; pTsBuf[9] = ( nPcr >> 1 )&0xff; pTsBuf[10]= ( nPcr << 7 )&0x80; pTsBuf[11]= 0; But the problem is VLC is playing only first frame and not playing any other frames. and I am getting the warning "early picture skipped". Could any one help me in converting from PTS to PCR.. First, the PCR has 33+9 bits, the PTS 33 bits. The 33 bit-portion (called PCR_base) runs at