[MPlayer-dev-eng] Re: [PATCH] dvr-ms fixes for pts, key frame detection and seeking
John Donaghy
johnfdonaghy at gmail.com
Fri Feb 16 19:11:06 CET 2007
> video.c works on the basis that you cant get the fps from the asf
> container.
>
> What do you mean by this?
What I mean is that in this piece of code will usually set sh_video->fps
regardless of what it was previously set to by the demuxer.
case DEMUXER_TYPE_ASF: {
double next_pts = ds_get_next_pts(d_video);
double d= (next_pts != MP_NOPTS_VALUE) ? next_pts - d_video->pts :
d_video->pts-pts1;
if(d>=0){
if(d>0){
if((int)sh_video->fps==1000)
mp_msg(MSGT_CPLAYER,MSGL_V,"\navg. framerate: %d
fps \n",(int)(1.0f/d));
sh_video->frametime=d; // 1ms
sh_video->fps=1.0f/d;
}
frame_time = d;
} else {
mp_msg(MSGT_CPLAYER,MSGL_WARN,"\nInvalid frame duration value
(%5.3f/%5.3f => %5.3f). Defaulting to %5.3f
sec.\n",d_video->pts,next_pts,d,frame_time);
// frame_time = 1/25.0;
}
}
More information about the MPlayer-dev-eng
mailing list