我的发布直播如下:
var h264Settings:H264VideoStreamSettings;
h264Settings = new H264VideoStreamSettings();
h264Settings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_3_2);
h264Settings.setQuality(0, AppSettings.CAMERA_QUALITY);
h264Settings.setMode(userCamera.cameraWidth, userCamera.cameraHeight, userCamera.cameraFps);
streamPublisher = new NetStream(fc.nc);
streamPublisher.attachCamera(userCamera.getStream());
视频信息如下所示:
Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.2
Format settings, CABAC : No
Format settings, ReFrames : 1 frames
Format settings, GOP : M=1, N=30
Frame Rate Mode : constant
...
我可以从我的代码中调整“Reframes”,“GOP”和“Frame Rate Mode”吗?
答案 0 :(得分:0)
我不确定“帧率模式”和“重构”,但至少根据this repo I found,您应该能够使用setKeyFrameInterval来控制GOP。
H264设置的不同级别可能会为您提供不同数量的Reframe。