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

Weird output with 4k resolution #612

Open puligclone opened 2 years ago

puligclone commented 2 years ago

libsvthevc is giving weird output in 4k resolution when cropping borders. No issues without crop and downscaled to 1080p resolution with crop.

command used : ffmpegsvt -y -hide_banner -loglevel error -stats -noautorotate -fflags +igndts -i "input.mkv" -map_metadata -1 -map_chapters -1 -map 0:0 -map 0:8 -map 0:9 -vf "crop=3840:1604:0:278" -pix_fmt yuv420p10le -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv -g 240 -profile:v main10 -c:v libsvt_hevc -preset 6 -profile 2 -rc 0 -qp 22 -sc_detection 1 -umv 1 -tile_col_cnt 1 -tile_row_cnt 4 -tile_slice_mode 1 -vid_info 1 -la_depth 60 -c:a eac3 -b:a 448k -c:s copy "out.mkv"

with crop imgur without crop imgur

tianjunwork commented 2 years ago

Hi @puligclone, I will try to reproduce it tomorrow. The error seems related to tile. Is it necessary to enable tile in your use case? If not, could you try it again without -umv 1 -tile_col_cnt 1 -tile_row_cnt 4 -tile_slice_mode 1?

puligclone commented 2 years ago

Hi @puligclone, I will try to reproduce it tomorrow. The error seems related to tile. Is it necessary to enable tile in your use case? If not, could you try it again without -umv 1 -tile_col_cnt 1 -tile_row_cnt 4 -tile_slice_mode 1?

Tried without these parameters but still giving same wierd output

tianjunwork commented 2 years ago

Thank you @puligclone for reporting the issue.

tianjunwork commented 2 years ago

This issue only shows up for 10bits and resolution is not multiple-of-8. It can be simplified as ./ffmpeg -y -i "4k_10bits.mp4" -vf "crop=3840:1604:0:278" -pix_fmt yuv420p10le -c:v libsvt_hevc "out_10bits.mkv". Will work on a fix.

puligclone commented 2 years ago

Thanks. Please try to add option to pass these parameters also with ffmpeg version. -max-cll -max-fall -use-master-display -master-display