<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello:<BR>
 <BR>
    I am trying to use VLC player to play back the image data composed of AVC/H.264 video and AAC audio muxed in MPEG2 TS format (ISO 13818-1) streamed out from a media server. Since the latest release 0.8.6i (Windows) of VLC can't play H.264 data, I just use the 0.8.5 release.<BR>
 <BR>
    At first, the VLC seems to work smoothly. I can lively see the video and hear the sound clearly. About five minutes later, the video starts to be blocked. By the way, the warning message "late picture skipped" is frequently shown in the Message window.<BR>
 <BR>
    By checking the source code of the function RunThread() in src\video_output\video_output.c, this warning message will be shown when the following IF statements are true:<BR>
 <BR>
            if( !p_picture->b_force &&<BR>                p_picture != p_last_picture &&<BR>                display_date < current_date + p_vout->render_time &&<BR>                config_GetInt( p_vout, "drop-late-frames" ) )<BR>
 <BR>
 <BR>
    I am wondering whether this problem is caused by the incorrect timing model used in the TS header of my testing image, especially the PTS and PCR values. I have the following questions about the timing setting and wish anyone could give me your comment.<BR>
 <BR>
1. By checking the source code of the function PCRHandle() in modules\demux\ts.c, VLC seems to use only the 33-bit PCR_base (in 90KHz) value. Why does the VLC skip the extra 9-bit PCR_ext (in 27MHz) value?<BR>
 <BR>
2. Is there any relationship between the values of PTS and PCR? Currently, these two values are set to be increased with the same value in my tested data with different initial value. For example, (supposed 15 frames per second)<BR>
 <BR>
  PCR = 1000, PTS = 100 in 1-st PES packet (START Indicator=1 in TS header),<BR>
  PCR = 7006, PTS = 6106 in 2-nd PES packet,.........<BR>
  PCR = 13012, PTS = 12112 in 3-rd PES packet, ......<BR>
 <BR>
  Is the setting of PCR correct? Could anyone tell me how to correctly generate the PCR value in the TS?<BR>
 <BR>
    Thanks.<BR>
 <BR><br /><hr />Get news, entertainment and everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' target='_new'>Check it out!</a></body>
</html>