OpenVisualCloud / SVT-HEVC

SVT HEVC encoder. Scalable Video Technology (SVT) is a software-based video coding technology that is highly optimized for Intel® Xeon® processors. Using the open source SVT-HEVC encoder, it is possible to spread video encoding processing across multiple Intel® Xeon® processors to achieve a real advantage of processing efficiency.
Other
507 stars 169 forks source link

EbInitEncoder takes too much time [ >10s ] #609

Closed ai0376 closed 2 years ago

ai0376 commented 2 years ago

cpu: intel xeon gold 6239 @2.10GHz memory: 190G

tianjunwork commented 2 years ago

Hi @ai0376 , how you use the encoder, by ffmpeg or sample app? What is your command line or parameters?

ai0376 commented 2 years ago

@tianjunwork owt-server use initDefaultParameters https://github.com/open-webrtc-toolkit/owt-server/blob/master/source/core/owt_base/SVTHEVCEncoder.cpp

tianjunwork commented 2 years ago
    initDefaultParameters();
    updateParameters(width, height, frameRate, bitrateKbps, keyFrameIntervalSeconds);

I can read the default parameters, but I don't know the value for the updated ones. Could you use debug build of svt hevc library which prints information like below? image

Other questions:

  1. Which release of library you used?
  2. How did you measure EbInitEncoder time?
  3. Could you try our sample app if possible? Feel free to set parameter value in Source/App/EbAppConfig.c EbConfigCtor(). And simply do `-i yuv_file -w width -h height(the rest parameters will be taken from EbConfigCtor) through the command line. In this way, we can simulate how OWT uses svt library, which makes it easier for me to debug.