GPUOpen-LibrariesAndSDKs / AMF

The Advanced Media Framework (AMF) SDK provides developers with optimal access to AMD devices for multimedia processing
Other
611 stars 152 forks source link

[Question]: How do avoid generate keyframe when dynamic change encoder frame rate? #494

Closed MemeTao closed 2 weeks ago

MemeTao commented 2 months ago

I want to decrease| increase frame rate dynamically, But every time i call 'SetProperty(FrameRate)' will generate key frame automatically. Is there any method can avoid this like nvenc?

MikhailAMD commented 2 months ago

Which codec?

MemeTao commented 2 months ago

Which codec?

AMFVideoEncoderHW_HEVC.

Platform: AMD Radeon RX 7700 XT. OS: Windows 11

MemeTao commented 3 weeks ago

Which codec? AMFVideoEncoderHW_HEVC.

Platform: AMD Radeon RX 7700 XT. OS: Windows 11

Is there any api to avoid generate key frame when dynamic change frame rate (set_property(FRAMERATE, fps))?@MikhailAMD

MikhailAMD commented 3 weeks ago

Currently every change in framerate property causes insertion of IDR frame. This is done to have ability to insert SPS with VUI header with timing information containing the new framerate. If you want to change framerate just to manage bitrate control, you can use bitrate instead. The effect would be the same.

MemeTao commented 2 weeks ago

Currently every change in framerate property causes insertion of IDR frame. This is done to have ability to insert SPS with VUI header with timing information containing the new framerate. If you want to change framerate just to manage bitrate control, you can use bitrate instead. The effect would be the same.

Thanks. You are right. I just want to control the bitrate. I will try the method you said.