android - How to determine a video file's framerate with MediaCodec, MediaExtractor or MediaMetadataRetriever? -
how extract frame rate of recorded video file? know there mediaformat.key_frame_rate , can access mediaformat objects through mediaextractor. key_frame_rate available encoders. instead want find out frame rate of recorded video.
any ideas?
it looks there no way framerate through of official api functions. might require logic - count times between timestamps or parse headers info. in general h.264 standard allows variable framerate, frame times differ 1 one. example if can show static picture several seconds or so
Comments
Post a Comment