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

Weird output with 4k resolution #612

Open
puligclone opened this issue Dec 9, 2021 · 5 comments
Open

Weird output with 4k resolution #612

puligclone opened this issue Dec 9, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@puligclone
Copy link

puligclone commented Dec 9, 2021

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

Thank you @puligclone for reporting the issue.

@tianjunwork
Copy link
Contributor

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.

@tianjunwork tianjunwork added the bug Something isn't working label Jan 13, 2022
@puligclone
Copy link
Author

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

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