rownyr
Posts: 41
Joined: Wed Jul 11, 2012 1:25 am

xFramerate and h264

Tue Jun 25, 2013 1:45 pm

OpenMAX sometimes doesn't return information about framerate of raw h264 stream. For example it returns xFramerate == 0 for test.h264 from hello_video sample. I have some other h264 video (encoded by myself) for which OpenMAX returns 30 FPS in xFramerate field (Q16 format). Do you know what does it depend on?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5370
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: xFramerate and h264

Tue Jun 25, 2013 2:15 pm

A raw h264 stream generally has no timing information in it. That would be contained in the container (e.g. mkv file).

An optional "vui_parameters" can contain framerate information. See:

http://stackoverflow.com/questions/1189 ... deo-stream

My guess is that test.h264 doesn't contain the vui_parameters, but your stream does.

Return to “OpenMAX”