Dockerfiles icon indicating copy to clipboard operation
Dockerfiles copied to clipboard

the bitrate is loss control when encoding 4096x2160 + hevc

Open a3213105 opened this issue 3 years ago • 3 comments

hi, i use SvtHevcEncApp to encode a YUV file with -w 4096 -h 2160 , but it seems that -tbr parameter is not working. I used the cmd below, can anyone give me any suggestions to solve this problem?

sgui@sgui-gpu /mnt/work/source/SVT-HEVC/Bin/Release $ sudo ./SvtHevcEncApp -i /mnt/tmp/test.yuv -w 4096 -h 2160 -rc 1 -tbr 8192000 -fps 50 -b testbuilding4k4096.265 [sudo] password for sgui:

SVT-HEVC Encoder SVT [version]: SVT-HEVC Encoder Lib v1.5.1 SVT [build] : GCC 9.3.0 64 bit LIB Build date: Aug 27 2021 20:23:51

Number of logical cores available: 8 Number of PPCS 159

SVT [config]: Main Profile Tier (auto) Level (auto) SVT [config]: EncoderMode / Tune : 7 / 1 SVT [config]: EncoderBitDepth / CompressedTenBitFormat / EncoderColorFormat : 8 / 0 / 1 SVT [config]: SourceWidth / SourceHeight / InterlacedVideo : 4096 / 2160 / 0 SVT [config]: FrameRate / Gop Size : 50 / 48 SVT [config]: HierarchicalLevels / BaseLayerSwitchMode / PredStructure : 3 / 0 / 2 SVT [config]: RCMode / TargetBitrate / LAD / SceneChange / QP Range [10 ~ 48] : VBR / 8192000 / 47 / 1 SVT [config]: BitRateReduction / ImproveSharpness : 0 / 0 SVT [config]: tileColumnCount / tileRowCount / tileSliceMode / Constraint MV : 1 / 1 / 0 / 0 SVT [config]: De-blocking Filter / SAO Filter : 1 / 1 SVT [config]: HME / UseDefaultHME : 1 / 1 SVT [config]: MV Search Area Width / Height : 16 / 7 SVT [config]: HRD / VBV MaxRate / BufSize / BufInit : 0 / 0 / 0 / 90

Encoding 2000 Average System Encoding Speed: 21.37 2650 3515 SUMMARY --------------------------------- Channel 1 -------------------------------- Total Frames Frame Rate Byte Count Bitrate 3515 50.00 fps 316057169 35966.68 kbps

Channel 1 Average Speed: 23.55 fps Total Encoding Time: 149257 ms Total Execution Time: 150162 ms Average Latency: 4916 ms Max Latency: 10258 ms Encoder finished

a3213105 avatar Aug 27 '21 04:08 a3213105

if i use cmd like: ./SvtHevcEncApp -i /mnt/tmp/test.yuv -w 3840 -h 2160 -rc 1 -tbr 8192000 -fps 50 -b testbuilding4k3840.265

the bitrate is correct

sgui@sgui-gpu /mnt/work/source/SVT-HEVC/Bin/Release $ sudo ./SvtHevcEncApp -i /mnt/tmp/test.yuv -w 3840 -h 2160 -rc 1 -tbr 8192000 -fps 50 -b testbuilding4k3840.265

SVT-HEVC Encoder SVT [version]: SVT-HEVC Encoder Lib v1.5.1 SVT [build] : GCC 9.3.0 64 bit LIB Build date: Aug 27 2021 20:23:51

Number of logical cores available: 8 Number of PPCS 159

SVT [config]: Main Profile Tier (auto) Level (auto) SVT [config]: EncoderMode / Tune : 7 / 1 SVT [config]: EncoderBitDepth / CompressedTenBitFormat / EncoderColorFormat : 8 / 0 / 1 SVT [config]: SourceWidth / SourceHeight / InterlacedVideo : 3840 / 2160 / 0 SVT [config]: FrameRate / Gop Size : 50 / 48 SVT [config]: HierarchicalLevels / BaseLayerSwitchMode / PredStructure : 3 / 0 / 2 SVT [config]: RCMode / TargetBitrate / LAD / SceneChange / QP Range [10 ~ 48] : VBR / 8192000 / 47 / 1 SVT [config]: BitRateReduction / ImproveSharpness : 0 / 0 SVT [config]: tileColumnCount / tileRowCount / tileSliceMode / Constraint MV : 1 / 1 / 0 / 0 SVT [config]: De-blocking Filter / SAO Filter : 1 / 1 SVT [config]: HME / UseDefaultHME : 1 / 1 SVT [config]: MV Search Area Width / Height : 16 / 7 SVT [config]: HRD / VBV MaxRate / BufSize / BufInit : 0 / 0 / 0 / 90

Encoding 2000 Average System Encoding Speed: 29.59 3750 SUMMARY --------------------------------- Channel 1 -------------------------------- Total Frames Frame Rate Byte Count Bitrate 3750 50.00 fps 76654955 8176.53 kbps

Channel 1 Average Speed: 32.80 fps Total Encoding Time: 114317 ms Total Execution Time: 115155 ms Average Latency: 5467 ms Max Latency: 6962 ms Encoder finished

a3213105 avatar Aug 27 '21 04:08 a3213105

Hello @a3213105 , Have you tried building SVT-HEVC on bare metal? If so, do you see same results? Is this issue specific to the OVC Dockerfile container?

dpatel257 avatar Oct 21 '21 21:10 dpatel257

hi @dpatel257 , i have build and tested SVT-HEVC on a bare metal Windows server, and I have not tried on the OVC container yet. I will try to test on the container to check if the same issue will be reproduced.

----- Original Message ----- From: dpatel257 @.> To: OpenVisualCloud/Dockerfiles @.> Cc: a3213105 @.>, Mention @.> Subject: Re: [OpenVisualCloud/Dockerfiles] the bitrate is loss control when encoding 4096x2160 + hevc (#787) Date: 2021-10-22 05:19

Hello @a3213105 , Have you tried building SVT-HEVC on bare metal? If so, do you see same results? Is this issue specific to the OVC Dockerfile container?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

a3213105 avatar Oct 22 '21 10:10 a3213105