Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
26th February 2021, 20:05 | #1 | Link |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
Why do I have strange artifacts in my encode
I've encoded two movies of mine using HandBrake and the x265 encoder into HEVC. Both movie files suffer from pixelated artifacts.
Here are some screenshots: https://imgur.com/LMiDEIT https://imgur.com/ffnEmqB Sadly this is not reproducible if I only encode this scene. I've cut out the effect sequence of the original file and encoded only this piece, which turned out to be perfectly fine. Recently I've changed my x265 encoding options, so maybe I now have a bad combination or have chosen a delicate option? I used x265 3.5 RC1 and preset "slower" with the following options: Code:
--early-skip --no-rect --no-amp --no-sao --rd-refine --opt-cu-delta-qp --no-strong-intra-smoothing --psy-rd=3 --psy-rdoq=0 --hme --hme-search=hex,umh,star --rskip=2 I've never before have seen something like this with x265, so I'm a bit puzzled what this could be. I also have no idea why I cannot reproduce this with the affected sequence only. Edit: For a sample file see https://forum.doom9.org/showpost.php...9&postcount=17 Last edited by ShortKatz; 28th February 2021 at 17:02. |
26th February 2021, 20:24 | #2 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,346
|
Rule out a decoding/playback issue first . Try something else like mpv, ffplay
Run some hardware stability tests. Memory integrity, psu etc... If you're overclocked , revert to defaults If you can't reproduce with just that scene, try encoding a segment that includes a few scenes before and after |
26th February 2021, 20:56 | #3 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
What is your script? I've seen those with MDegrain but pinterf's latest version of MVTools has fixed them.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
26th February 2021, 22:15 | #4 | Link | |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
Quote:
I did not use a script. Its just HandBrake with an updated x265 and some "Additional options". I used the same build for the same movies before, but with a different preset and different x265 options. And all was fine at that time. |
|
26th February 2021, 22:45 | #6 | Link |
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 570
|
That's a rskip 2 problem AFAIK, it was mentioned before in the x265 thread.
https://forum.doom9.org/showthread.p...61#post1920461
__________________
LG C2 OLED | GitHub Projects Last edited by quietvoid; 26th February 2021 at 22:51. |
27th February 2021, 09:01 | #7 | Link | ||
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
Quote:
Quote:
|
||
27th February 2021, 11:31 | #8 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
Can you try encoding that segment into a lossless AVI with FFV1 for example, and see if you have the same artifacts?
Also, which Avisynth version you have? I had strangely similar issues a long time ago, https://forum.doom9.org/showthread.p...02#post1698102. If you can edit the script HandBrake uses, you could do a test by adding for example RequestLinear(clim=100) right after the source is loaded. It requires TIVTC to be installed.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
27th February 2021, 16:48 | #9 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,346
|
Quote:
Quote:
If you can't figure the issue, post the sample and information on the bug tracker for the devs. |
||
27th February 2021, 17:40 | #10 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
Ah, for some reason I've always understood that Avisynth can be used inside HB if you needed any advanced filtering techiques.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
27th February 2021, 17:55 | #12 | Link | ||
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
Quote:
Quote:
I don't use any kind of filter. |
||
27th February 2021, 17:59 | #13 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,346
|
Quote:
Also try to rule out other versions (older, newer, non HB) , the might be a regression in the HB x265 version you're using If you post the sample, other people might be willing to help with the testing |
|
27th February 2021, 23:52 | #14 | Link | |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
Quote:
Good idea, but the sample file is 340MB in size and I don't know where to upload. And I don't know if I violated any copyrights by doing so. |
|
28th February 2021, 11:59 | #15 | Link | |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
Quote:
I would be very interested in testing with my normal settings. I have used HME but only with 1440p encodes and with umh,umh,star as the search method.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
28th February 2021, 16:00 | #16 | Link | |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
Quote:
What I found out by now is, it is not a HandBrake issue. I was also able to get this issue if I use FFmpeg with: Code:
ffmpeg -i input.mkv -vf crop=3824:1600:8:280 -c:v libx265 -tag:v hvc1 -crf 20 -preset slower -profile:v main10 -x265-params "rect=0:amp=0:early-skip=1:rskip=2:rd-refine=1:strong-intra-smoothing=0:sao=0:psy-rd=3:psy-rdoq=0:opt-cu-delta-qp=1:hme=1:hme-search=hex,umh,star:hdr10=1:hdr10-opt=1" -c:a eac3 -b:a 768k output.mp4 |
|
28th February 2021, 17:01 | #17 | Link |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
OK, I found a place to upload the sample file. The link is available for 7 days.
https://we.tl/t-XfaW773Hd8 To See the issue do the following: - Compile FFmpeg with x265 v3.4 or 3.5 RC1. - Use the sample from the link and convert it with the following command: Code:
ffmpeg -i input.mkv -vf crop=3824:1600:8:280 -c:v libx265 -tag:v hvc1 -crf 20 -preset slower -profile:v main10 -x265-params "rect=0:amp=0:early-skip=1:rskip=2:rd-refine=1:strong-intra-smoothing=0:sao=0:psy-rd=3:psy-rdoq=0:opt-cu-delta-qp=1:hme=1:hme-search=hex,umh,star:hdr10=1:hdr10-opt=1" -c:a eac3 -b:a 768k output.mp4 The issue can look like in the initial post, but it also can look like this https://imgur.com/qhcEIhM or this https://imgur.com/gAoR40w You can also use the latest HandBrake snapshot with the same settings (HB 1.3.3 will not work, because it uses an old x265 which has no hme). |
28th February 2021, 18:08 | #18 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
Just tested your ffmpeg command line and also my settings with Avisynth input and x265, and I cannot reproduce the issue.
Are you a Mac user (based on the zip file contents)? Perhaps that is a factor to consider.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
1st March 2021, 17:35 | #20 | Link | |
Registered User
Join Date: Aug 2018
Location: Germany
Posts: 118
|
Thanks for all your testing. If you can not reproduce, then I am even more confused why I see this artifacts.
Quote:
Do you think the x265 encoding depends on the OS? I only see architecture specific code in the x265 source. Just in case, I will write some Mac users I know and ask them to reproduce. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|