Hi, i try to get the frame rate of video track from avi,wmv, or any kind of
mpg files, but fraction information are not always good at the same level
following file type ....
AVI files seem to return the good fps from stream layer, not from associated
codec layer
MPEG files seems to return the ggod fps from codec layer and not from
stream.....
I'm under windows, i use the following dll ....
avcodec-51.dll
avdevice-52.dll
avformat-52.dll
avutil-49.dll
An the my source code to get the frame rate (to solve the issue i have add a
switch AVType (AVI = 0 & MPEG = 1) :
if(ParentFilter->AVType == 0){
pVo->AvgTimePerFrame =
(((double)(ParentFilter->AVInputContext->streams[ParentFilter->AVVideoStreamIndex]->time_base.num))
/((double)(ParentFilter->AVInputContext->streams[ParentFilter->AVVideoStreamIndex]->time_base.den)))*10000000;
} else {
pVo->AvgTimePerFrame =
(((double)(ParentFilter->AVInputContext->streams[ParentFilter->AVVideoStreamIndex]->codec->time_base.num))
/((double)(ParentFilter->AVInputContext->streams[ParentFilter->AVVideoStreamIndex]->codec->time_base.den)))*10000000;
}
Have you an idea ?,
Should i need to change (update) my ffmpeg version ?
--
Alex B.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user