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.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th May 2016, 17:37   #3681  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 704
Hi elipse98
Maybe I shouldn't write, but also once had a problem with color XAVC.
Which did you use the decoder for codec H264?

Depending NLE editor may be different shades of decoding.
http://filmowiec.pl/forum/viewtopic....5255&start=195
Video Bitrate 5Mbps far too small for the dynamic films FullHD.

It is worth remembering about parameters XAVC.
Code:
Color primaries : BT.709
Transfer characteristics : IEC 61966-2-4
Matrix coefficients : BT.709

Last edited by Jamaika; 9th May 2016 at 18:05.
Jamaika is offline   Reply With Quote
Old 9th May 2016, 18:39   #3682  |  Link
eclipse98
1.16 MileHi
 
Join Date: Feb 2008
Location: Denver, CO
Posts: 26
Quote:
Originally Posted by Jamaika View Post
Hi elipse98
Maybe I shouldn't write, but also once had a problem with color XAVC.
Which did you use the decoder for codec H264?

Depending NLE editor may be different shades of decoding.
http://filmowiec.pl/forum/viewtopic....5255&start=195
Video Bitrate 5Mbps far too small for the dynamic films FullHD.

It is worth remembering about parameters XAVC.
Code:
Color primaries : BT.709
Transfer characteristics : IEC 61966-2-4
Matrix coefficients : BT.709
Hi Jamaika,

I am not using any NLE editor, pretty much loading source XAVC video directly with StaxRip and choosing Automatic AviSynth+ filter, it picks LSMASHVideoSource, can this be an issue ? Do you think if I convert XAVC with some intermediate codec (Avid) it might help ?

For 264 I am using x264 r2692 8-Bit x64 'very slow' profile, 2 pass encoding using StaxRip (same LSMASHVideoSource filter, same 5mbps bit rate).

Yes, 5mbps is on low side, but this is a requirement for streaming, so not much choice here, it is accepted that I am not shooting for BD quality.

I would not necessarily call it far too small either, the reason I am using x265 is because it excels at low bit rate compared to x264. I made some incredible x265 encodes at 5mbps (same type of dynamic footage) - overall very happy until this problem appeared.

I uploaded a very short video to shared folder where you can see trailing color problem - I am not sure if it's a color issue - as you can see in the video the bushes in front of the car do not exhibit any artifacts, but you can clearly see them behind the car

Thanks for your help !

Last edited by eclipse98; 9th May 2016 at 18:56.
eclipse98 is offline   Reply With Quote
Old 9th May 2016, 19:03   #3683  |  Link
fauxreaper
Registered User
 
Join Date: Oct 2014
Posts: 23
Quote:
Originally Posted by eclipse98 View Post
Hi Everybody,

I am getting some bad "color bleeding", that's what I think it is but I think a more accurate description is "color trailing". It gets pretty bad and mostly occurring when the object that leaves the color trail (car, road sign) passes in front of bare trees or dry grass.

Original footage is UHD, Sony AX53 Handycam, XAVC 100mbps shot from moving car (camera mounted outside) - resized to HD and encoded with x265 5mbps very slow preset (StaxRip, HEVC encoder version 1.9+150-00ea3784bd36). I tried different presets (medium-very slow) and problem occurs in each of them. It seems a bit better with SSIM tune, but still clearly present.

Attached is zoomed in image where a trail of blue/purple spots left by passing car can be clearly seen:
https://lh5.googleusercontent.com/Rw...eMw=w1896-h873

Tested with h264 and it does not have the same problem.

Link to shared folder that has screenshot from original footage (no spots), h264 video, x265 video and zoomed in x265 version:
https://drive.google.com/folderview?...Gs&usp=sharing

Would appreciate your help if there is any setting I can try that might help with getting rid of this issue.

Thanks for your help, Cheers !
Can you test a x265 encode with "--no-cutree" option? Maybe these spots are just ghosting.
fauxreaper is offline   Reply With Quote
Old 9th May 2016, 19:24   #3684  |  Link
eclipse98
1.16 MileHi
 
Join Date: Feb 2008
Location: Denver, CO
Posts: 26
Quote:
Originally Posted by fauxreaper View Post
Can you test a x265 encode with "--no-cutree" option? Maybe these spots are just ghosting.
Fauxreaper,

"--no-cutree" made it much worse, more spots and now they are glowing with every color of the rainbow

Here are encode settings:

x265 [info]: HEVC encoder version 1.9+150-00ea3784bd36
x265 [info]: build info [Windows][GCC 5.3.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX LZCNT
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: frame threads / pool features : 3 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40
x265 [info]: Lookahead / bframes / badapt : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 0
x265 [info]: Rate Control / qCompress : ABR-5336 kbps / 0.60
x265 [info]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00
x265 [info]: tools: signhide tmvp strong-intra-smoothing lslices=4 deblock sao
x265 [info]: tools: stats-read
eclipse98 is offline   Reply With Quote
Old 9th May 2016, 19:40   #3685  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 326
Quote:
Originally Posted by eclipse98 View Post
"--no-cutree" made it much worse
You can try '--cbqpoffs -2 --crqpoffs -2'.
Ma is offline   Reply With Quote
Old 9th May 2016, 20:26   #3686  |  Link
eclipse98
1.16 MileHi
 
Join Date: Feb 2008
Location: Denver, CO
Posts: 26
Quote:
Originally Posted by Ma View Post
You can try '--cbqpoffs -2 --crqpoffs -2'.
Ma, slightly better, maybe 20% or so, but still persists. I tried '--cbqpoffs -4 --crqpoffs -4' and it returned back to original. You think experimenting with different values might yield some improvements ?

Thanks !
eclipse98 is offline   Reply With Quote
Old 9th May 2016, 20:50   #3687  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 326
Quote:
Originally Posted by eclipse98 View Post
Ma, slightly better, maybe 20% or so, but still persists. I tried '--cbqpoffs -4 --crqpoffs -4' and it returned back to original. You think experimenting with different values might yield some improvements ?
You can try -1 or -3 values. You can also try '--aq-mode 3' option.
Ma is offline   Reply With Quote
Old 9th May 2016, 21:13   #3688  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 704
Quote:
Originally Posted by eclipse98 View Post
Hi Jamaika,

I uploaded a very short video to shared folder where you can see trailing color problem - I am not sure if it's a color issue - as you can see in the video the bushes in front of the car do not exhibit any artifacts, but you can clearly see them behind the car
Add the original.

PS These are the ghosts. On my decoder MPC-BE the spots of color they are in other places.

Last edited by Jamaika; 9th May 2016 at 21:16.
Jamaika is offline   Reply With Quote
Old 9th May 2016, 23:21   #3689  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 326
For volunteers I have x265 build with Unicode support for input files to test (yuv and y4m) -- www.msystem.waw.pl/x265/utf-input.7z (diff file in archive)

Example (from Total Commander):
Code:
x265.exe "żółć-liść-będąc-23甜蜜的一天(玛丽亚.凯丽&男人男孩).y4m" -o o.hevc
Ma is offline   Reply With Quote
Old 9th May 2016, 23:27   #3690  |  Link
eclipse98
1.16 MileHi
 
Join Date: Feb 2008
Location: Denver, CO
Posts: 26
Quote:
Originally Posted by Jamaika View Post
Add the original.

PS These are the ghosts. On my decoder MPC-BE the spots of color they are in other places.
Screenshots were taken from different encode, that is probably why spots of color are in different places.

I uploaded a 90 sec segment of original video (original.mp4, XAVC, 100mbps) as well as new encode from this segment (x265.mp4, slow preset, 3 pass, 5mbps). You can see color ghosts left by car at 0:13, 0:18, 0:35, 0:44, 0:57. By road signs at 01:20 (on left), 1:34 and 1:44 (on the right). None of those artifacts exist in original video.

https://drive.google.com/folderview?...Gs&usp=sharing

So, is it possible to get rid of them ?

Thanks !

btw. Sorry to hijack the thread, I thought it was relevant to x265 as a possible issue. If you think otherwise please let me know and I'll start a new thread specific to this issue.
eclipse98 is offline   Reply With Quote
Old 9th May 2016, 23:31   #3691  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 709
try raising qcomp to .75~.8 and cbqpoffs/crqpoffs to -2
__________________
powered by Google Translator
Motenai Yoda is offline   Reply With Quote
Old 10th May 2016, 01:38   #3692  |  Link
eclipse98
1.16 MileHi
 
Join Date: Feb 2008
Location: Denver, CO
Posts: 26
Quote:
Originally Posted by Motenai Yoda View Post
try raising qcomp to .75~.8 and cbqpoffs/crqpoffs to -2
--bitrate 5000 --preset slow --qcomp 0.75 --cbqpoffs -2 --crqpoffs -2

Doesn't seem to make any difference.

Quote:
Originally Posted by Ma View Post
You can try -1 or -3 values. You can also try '--aq-mode 3' option.
Tried different values and aq-mode 3, didn't work either
eclipse98 is offline   Reply With Quote
Old 10th May 2016, 09:52   #3693  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 704
The problems are with the SAO.

My attempt to film processing:
https://www.sendspace.com/filegroup/...9DbjYPMLX4LFOt
Jamaika is offline   Reply With Quote
Old 10th May 2016, 19:31   #3694  |  Link
eclipse98
1.16 MileHi
 
Join Date: Feb 2008
Location: Denver, CO
Posts: 26
Quote:
Originally Posted by Jamaika View Post
The problems are with the SAO.

My attempt to film processing:
https://www.sendspace.com/filegroup/...9DbjYPMLX4LFOt
Jamaika,

Thank you so much for testing this, appreciate it. I am looking at your settings and will replicate them in my tests. In addition to no-sao, I see other settings that differ from mine - you also use a different scaler (Lanczos vs Bicubic), not sure if it makes any difference.

I'll update once I have some test results !

Cheers !
eclipse98 is offline   Reply With Quote
Old 12th May 2016, 18:42   #3695  |  Link
x265_Project
Guest
 
Posts: n/a
Some patches were just committed that address some of the issues reported here... especially with respect to tune grain. We look forward to your feedback.
  Reply With Quote
Old 13th May 2016, 00:13   #3696  |  Link
ndkamal
Registered User
 
Join Date: May 2005
Location: Paris
Posts: 53
I made some tests with x265 V19 R165 and tune grain, and the result is really impressive. This version retains more grain than x264 (at equivalent bitrate). Very good job. I hope there will be a significant progress in normal mode (without tune grain), in the next months.
__________________
Intel Core i5 4200
RAM 8 Go
Nvidia GeForce 840M
Windows 10
ndkamal is offline   Reply With Quote
Old 13th May 2016, 01:14   #3697  |  Link
Magik Mark
Registered User
 
Join Date: Dec 2014
Posts: 666
Quote:
Originally Posted by ndkamal View Post
I made some tests with x265 V19 R165 and tune grain, and the result is really impressive. This version retains more grain than x264 (at equivalent bitrate). Very good job. I hope there will be a significant progress in normal mode (without tune grain), in the next months.


Can you post a before & after image? Thanks
__________________
Asus ProArt Z790 - 13th Gen Intel i9 - RTX 3080 - DDR5 64GB Predator - LG OLED C9 - Yamaha A3030 - Windows 11 x64 - PotPlayerr - Lav - MadVR
Magik Mark is offline   Reply With Quote
Old 13th May 2016, 04:55   #3698  |  Link
nandaku2
Registered User
 
Join Date: Jan 2014
Posts: 45
Quote:
Originally Posted by Magik Mark View Post
Guys,

Can you help me with my ghost problem. Maybe a missing switch? Doing x265 10bit 2pass via staxrip

Hi, is this clip a grainy one (heavy film grain, ie)? If so, you may want to check with the new tune grain setting.
nandaku2 is offline   Reply With Quote
Old 13th May 2016, 07:00   #3699  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 704
The problem hasn't been solved.
To test, I used material from the drone. Cloudy sky, the sun's rays reflecting in the water. At some point drone changes its position and is another angle of sunlight. And here curiosity. Where are the frames B all is well. Next frame "I" and there are violets.
Excision of extra functions give nothing "--no-amp --no-temporal-mvp --no-signhide --no-strong-intra-smoothing --no-b-intros". The use of "open-gop" also doesn't give results.
As for the focus. It seems to me that better falls x264. There is no pulsation between sharp and blurred places between frames.

PS I realize that we are talking about cheap cameras with poor optics.

Edit: It isn't satisfied with the settings tune grain.
https://github.com/videolan/x265/com...99b95f2e37d46f
First, I have problems with:
*: Option: `--aq-mode` 0
*: Option: `--cutree` 0
*: Option: `--qpstep` 1
Here there are large pixels.
I don't know what's going on with recursion-skip` 1. The inclusion doesn't improve quality. For me it is worse.
Settings:
*: Option: `--sao` 0
*: Option: `--psy-rd` 4.0
*: Option: `--psy-rdoq` 10.0
They are better than mine --psy-rd` 2.0 --psy-rdoq` 50.0
Use of me = umh causes more blemishes. Therefore, the above badly written.
The advertised the function 'lanczos' is bullshit. How would I not configured and so is the 'bicubic'.
My best settings for version 1.9 + 167 (veryslow):
--psy-rd 4.00 --psy-rdoq 10.00 --no-sao --high-tier --no-recursion-skip --keyint 60 --bitrate 6000 --vbv-bufsize 10000 --vbv-maxrate 10000
PS These settings in version 1.9 + 168 already look worse for the same film.
https://www.sendspace.com/file/inmvs6

Last edited by Jamaika; 14th May 2016 at 07:15.
Jamaika is offline   Reply With Quote
Old 13th May 2016, 08:40   #3700  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,779
x265 1.9+167-bebae72f9db7 provides a few changes regarding the grain handling, and a new tweak:

Code:
   --[no-]recursion-skip         Enable early exit from recursion. Default enabled
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:49.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.