简体   繁体   English

iOS和H264固定帧率

[英]iOS & h264 fixed framerate

I'm recording some video using AVAssetWriter and AVAssetWriterInput. 我正在使用AVAssetWriter和AVAssetWriterInput录制一些视频。 Later on, i'm opening the video files with some H264 analyzers and I see that the H.264 SPS does not contain any timing info (hence the frame rate is not fixed). 稍后,我用一些H264分析仪打开视频文件,我发现H.264 SPS不包含任何时序信息(因此帧频不固定)。 Is there any way to tell iOS to use fixed frame rate and add the timing info into the SPS? 有什么方法可以告诉iOS使用固定帧频并将计时信息添加到SPS中?

I tried to disable auto exposure and set min & max frame rate values to my video AVCaptureDevice but it didn't help too much. 我试图禁用自动曝光,并为我的视频AVCaptureDevice设置了最小和最大帧速率值,但并没有太大帮助。

Thank you 谢谢

SPS does not contain any timing information. SPS不包含任何时序信息。 You may want to store to mux the H.264 frames in the MP4/MPEG2TS containers. 您可能需要将H.264帧存储在MP4 / MPEG2TS容器中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM