how does video player calculate single frame duration?

假装没事ソ 提交于 2019-12-11 17:51:56

问题


I am working on a project where I am muxing h264 raw stream into fmp4 so I can play it through MSE (Media source extension)

I am bit confused about frame duration. For example,

If I provide 30 frames and timescale is 1000, it plays for 1 second.

If I change timescale to 800, it plays for 2 seconds for the same 30 frames

If I change timescale to 500, it plays for 3 seconds for the same 30 frames

My question, how does the player calculate a single frame duration from timescale?

来源:https://stackoverflow.com/questions/45402476/how-does-video-player-calculate-single-frame-duration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!