Page 1 of 1

Get the frame rate of an ASF movie

Posted: Thu Aug 16, 2007 4:24 pm
by merendo
Hello everbody,

I need to find out the frame rate of an ASF movie file. I have already searched half the Internet but couldn't come up with any solutions. MovieInfo(0) tries to convince me that the movie has exactly 30 fps, as do any other tools I found on the Internet. But I know that the movie has 4 fps (but of course I need to find out for any movie :-) )

Can somebody help me with that?

Thanks a lot!!

Re: Get the frame rate of an ASF movie

Posted: Thu Aug 16, 2007 5:47 pm
by traumatic
Do you happen to have a small ASF (with a framerate different to 30fps) where MovieInfo() shows a wrong result?

Posted: Fri Aug 17, 2007 9:16 am
by merendo

Posted: Fri Aug 17, 2007 7:23 pm
by traumatic
Hmm... I can't play it (media player doesn't even complain about the codec
not found) but could it be your file is encoded using a variable framerate?

As WMV/ASF can have both variable bitrate and framerate, it's not possible
determine the actual average FPS beforehand.

Posted: Fri Aug 17, 2007 10:58 pm
by jear
DShow reports 0.03333...... as AvgTimePerFrame. So the video has exactly 30 FPS.
See the video properties detected by the MIPlayer:
(MIP ist part of the MPEG-Inspector, an application written in PB and based on Win DShow 9)
>>> Report of MIP session : 2007-08-17 23:50
>>> 281 registered DirectShow filters found.

>>> Video loaded to player : T:\16454620N.asf <<<
>>> Used DShow Filter Set : System's default DirectShow filters
> FilterName: Video Renderer
_PinInfo : Name = "VMR Input0", Direction = Input
> FilterName: PICVideo M-JPEG 3 DirectShow Decompressor
_PinInfo : Name = "XForm In", Direction = Input
_PinInfo : Name = "XForm Out", Direction = Output
____Media GUID: Video
______SubType GUID: UYVY
____Media GUID: Video
______SubType GUID: YUY2
____Media GUID: Video
______SubType GUID: RGB32
____Media GUID: Video
______SubType GUID: RGB24
____Media GUID: Video
______SubType GUID: RGB565
____Media GUID: Video
______SubType GUID: RGB555
____Media GUID: Video
______SubType GUID: unknown {30323449-0000-0010-8000-00AA00389B71}
____Media GUID: Video
______SubType GUID: unknown {56555949-0000-0010-8000-00AA00389B71}
____Media GUID: Video
______SubType GUID: YV12
> FilterName: T:\16454620N.asf
_PinInfo : Name = "Raw Video 0", Direction = Output
____Media GUID: Video
______SubType GUID: MJPG

>>> DShow Video Information :
> Preferred Time Format = MEDIA_TIME
> Source original Time Format = MEDIA_TIME
> GetCapabilities :
> Positioning Caps = absolute , forwards , backwards
> Getting Caps = , StopPosition , Duration
> Misc Caps =
> AvgTimePerFrame = 0.033 = 30.000 FPS
> Got TimePerFrame. FPS = 30.000
> Frame duration : 33 ms
> Filter VideoSize = 320 x 240
> Filter PreferredAspectRatio = 320 x 240
> Duration = 99430000 nanoseconds
> Number of frames calculated = 298

Re: Get the frame rate of an ASF movie

Posted: Sat Aug 18, 2007 12:18 pm
by Philippe-felixer76-2
merendo wrote:Hello everbody,

I need to find out the frame rate of an ASF movie file. I have already searched half the Internet but couldn't come up with any solutions. MovieInfo(0) tries to convince me that the movie has exactly 30 fps, as do any other tools I found on the Internet. But I know that the movie has 4 fps (but of course I need to find out for any movie :-) )

Can somebody help me with that?

Thanks a lot!!
You need libavformat/libavcodec to get this info,
best way, multi platform, i'm already in the process
of porting it to PB, it almost works at this point.

I have some trouble converting C header files,
but i already get a lot of info about streams.

I compiled my own dll's with CygWin/Gnu Minimalist.

Wanne help me?

Posted: Thu Aug 23, 2007 1:10 pm
by merendo
Oh, well, I don't think I'd be of much help :) However, I would greatly appreciate your work.

Converting LibAVCodec/LibaVFormat6

Posted: Thu Aug 23, 2007 4:50 pm
by Philippe-felixer76-2
merendo wrote:Oh, well, I don't think I'd be of much help :) However, I would greatly appreciate your work.
Yeah i understand, but i have no time. I wish i could just
hand over all my hard work for someone to finish it
off, i'm already full of work thats more important ATM.

Gr,
Phil.