Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode is hung when used with intra-period >150 #112

Open
XuShiSheng opened this issue Jun 2, 2020 · 1 comment
Open

encode is hung when used with intra-period >150 #112

XuShiSheng opened this issue Jun 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@XuShiSheng
Copy link

Hi, I found that svt-vp9 is likely to get stuck used with intra-period >150, please take a look and let me know if I understand it wrong. @tianjunwork

  • FFmpeg cli
    ./ffmpeg -i input -r 30/1 -vsync 2 -copyts -filter_complex "[0]scale=w=1920:h=1080:flags=lanczos[scale_1_out]" -map [scale_1_out]:v? -an -pix_fmt yuv420p -color_primaries bt709 -colorspacebt709 -color_trc iec61966-2-1 -color_range 0 -vcodec libsvt_vp9 -preset 8 -rc 2 -g 250 -vb 4000k output.mp4

  • test seq
    https://share.weiyun.com/fPZbLH6k

  • Other info
    Number of logical cores available: 24
    Number of PPCS 37
    SVT [config]: Profile [0] Level (auto)
    SVT [config]: EncoderMode / Tune : 8 / 0
    SVT [config]: EncoderBitDepth : 8
    SVT [config]: SourceWidth / SourceHeight : 1920 / 1080
    SVT [config]: Fps_Numerator / Fps_Denominator / Gop Size : 30 / 1 / 250
    SVT [config]: HierarchicalLevels / BaseLayerSwitchMode / PredStructure : 3 / 0 / 2
    SVT [config]: RCMode / TargetBitrate : CBR / 4000000

@tianjunwork
Copy link
Contributor

tianjunwork commented Jun 2, 2020

Below configs match your setting with ffmpeg. Hang can be reproduced every time with -rc 2.
./SvtVp9EncApp -i ../../../../yuv/bbb_1920x1080_420p.yuv -w 1920 -h 1080 -intra-period 249 -lp 24 -enc-mode 8 -tune 0 -fps 30 -rc 2

-rc 1 also hangs but with a much lower chance.
./SvtVp9EncApp -i ../../../../yuv/bbb_1920x1080_420p.yuv -w 1920 -h 1080 -intra-period 249 -lp 24 -enc-mode 8 -tune 0 -fps 30 -rc 1

We will look into it. Thanks for reporting.

@tianjunwork tianjunwork added the bug Something isn't working label Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants