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 8th November 2022, 21:42   #8761  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,490
Quote:
Originally Posted by tormento View Post
HW decoders rarely can process 8 bit HEVC.
You mean can rarely process 8-bit HEVC without also supporting 10-bit HEVC, right?

Quote:
Moreover, 10 bit encoding has (since the infamous Hi10P days) proven to increase compression with additional benefits regarding banding and no disadvantages (at least HEVC files).
The benefit of 10-bit encoding for 8-bit sources is less with HEVC than with H.264, as 8-bit internal precision was improved. But it can still give a few percentage improvement and can reduce banding artifacts.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 9th November 2022, 09:52   #8762  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,359
Quote:
Originally Posted by benwaggoner View Post
You mean can rarely process 8-bit HEVC without also supporting 10-bit HEVC, right?.
So picky you are.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 9th November 2022, 11:37   #8763  |  Link
mister_no
Registered User
 
Join Date: Apr 2009
Posts: 4
Quote:
Originally Posted by jpsdr View Post
For those interested, made a new build of my x265_mod version.
-------------------------------------------------------------------------
Will wait the results of "classic" vs "histogram" to see if i change my encoding scripts, as i'm only doing 10 bits video / main10 encodes.
Can you please make a build without the extanded progress bar? My GUI doesn't show progress with the extanded progress bar.
mister_no is offline   Reply With Quote
Old 9th November 2022, 14:20   #8764  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
Euh... Sorry but no, don't have time to try (don't even know if i would be able to) to build specific for X, Y, Z, etc...
__________________
My github.
jpsdr is offline   Reply With Quote
Old 9th November 2022, 19:28   #8765  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
About "histogram" vs "classic", what about hrd-pq ? If Boulder's video is 8 bit, i assume it sdr, so the "issue" is maybe main10 / 10 bits sdr video...
Has someone made tests to see if "histogram" behaves better than "classic" with main10 / 10 bits video in hdr-pq ?
__________________
My github.
jpsdr is offline   Reply With Quote
Old 10th November 2022, 06:27   #8766  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,612
Quote:
Originally Posted by jpsdr View Post
About "histogram" vs "classic", what about hrd-pq ? If Boulder's video is 8 bit, i assume it sdr, so the "issue" is maybe main10 / 10 bits sdr video...
Has someone made tests to see if "histogram" behaves better than "classic" with main10 / 10 bits video in hdr-pq ?
It looks like the histogram mode works quite well with PQ sources. I tested a 3000-frame part from Harry Potter and the Philosopher's Stone, and classic produced 10 scene changes while the histogram mode found 24, which should be very close to the real value. There are some difficult parts with slo-mo in the clip which confuses the tool I use for creating a QP file.

So the issue is probably seen with SDR sources encoded with the Main10 profile.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 10th November 2022, 19:16   #8767  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
Ok, thanks for the feedback. In that case, i'll change my encode scripts to use histogram mode.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 10th November 2022, 22:03   #8768  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,490
Wow, that's big news if the new histogram mode is good enough to be the default.

Anyone test --mctf or the new segment based rate control?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th November 2022, 16:57   #8769  |  Link
vpupkind
Registered User
 
Join Date: Jul 2007
Posts: 60
Quote:
Originally Posted by benwaggoner View Post
Wow, that's big news if the new histogram mode is good enough to be the default.

Anyone test --mctf or the new segment based rate control?
SBRC is a bit of a misnomer right now. It does some aq-related stuff, hopefully some actual rate control stuff will follow.
vpupkind is offline   Reply With Quote
Old 11th November 2022, 23:33   #8770  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 456
x265 v3.5+69
https://www.mediafire.com/file/kuh2ekbo2p6a7rf/
Barough is offline   Reply With Quote
Old 12th November 2022, 22:07   #8771  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 93
Quote:
Originally Posted by benwaggoner View Post
Wow, that's big news if the new histogram mode is good enough to be the default.

Anyone test --mctf or the new segment based rate control?
Tested --mctf just once. It increased my encoding time 7-fold. So I did not do any further tests.
ShortKatz is offline   Reply With Quote
Old 13th November 2022, 10:17   #8772  |  Link
LeXXuz
20 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 680
Quote:
Originally Posted by jpsdr View Post
Ok, thanks for the feedback. In that case, i'll change my encode scripts to use histogram mode.
Could you possibly add 8-bit support to your version? I'd like to do some comparisons with aq5-mode between 8 and 10bit output.
LeXXuz is offline   Reply With Quote
Old 13th November 2022, 13:19   #8773  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
.... There is not...? I ran cmake to create a VS projet and checked all possible options, i thought all the supports were enabled.
Setting --profile main, -D 8 (and all others related stuff saying that video is 8 bits) on the command line is not working ?

If not, for now, unfortunately i don't know what to do for...
__________________
My github.
jpsdr is offline   Reply With Quote
Old 13th November 2022, 15:36   #8774  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 545
If you enabled HIGH_BIT_DEPTH when configuring the build, it only builds 10 bit.
12 bit if you do MAIN12 too.

There's a multilib script to get a statically linked executable with all bit depths.
I can't really help for Windows/VS though.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 13th November 2022, 15:56   #8775  |  Link
LeXXuz
20 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 680
Quote:
Originally Posted by jpsdr View Post
.... There is not...? I ran cmake to create a VS projet and checked all possible options, i thought all the supports were enabled.
Setting --profile main, -D 8 (and all others related stuff saying that video is 8 bits) on the command line is not working ?
No there isn't. x265 exits with this error if forced to work in 8-bit:
Quote:
x265 [FLAW]: main profile not supported, internal bit depth 10.

Last edited by LeXXuz; 13th November 2022 at 15:58.
LeXXuz is offline   Reply With Quote
Old 13th November 2022, 16:29   #8776  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
Ah.... Don't know how to do it for now, don't realy have time for now, sorry. Try to see if i can figure out something when there will be the need for a new build.
Otherwise, anyone can also make a build from my repo.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 13th November 2022, 16:52   #8777  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 545
I just noticed that the new histogram scene cut commit removed the logging of consecutive B frames %, seemingly for no reason.
If anyone had a use for it, here's a diff: https://github.com/quietvoid/x265/co...a35be4377e390e

Should probably be renamed from m_histogram now but I just copied the old code back.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 13th November 2022, 16:53   #8778  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,612
Here's a very crude tool written in Python to get those average figures out of the csv log file written with csv-log-level 2 set. It expects that SSIM or PSNR is not enabled as those change the column structure. Only tested with two csv files I had on my HDD

Usage: "python logtool.py filename.csv". It will then write a .log file to the path where the csv file is and output the same information in the command prompt window.

Code:
import pandas as pd
import os
import sys

filename = os.path.abspath(sys.argv[1])

log_content = pd.read_csv(filename, sep=",", decimal=".", header=0)
log_content = log_content.iloc[:-4,11:-9]
log_content.columns = log_content.columns.str.replace('.1', '', regex=True)
log_content.columns = log_content.columns.str.replace('66', ' 16x16', regex=True)
log_content.columns = log_content.columns.str.replace('326', ' 32x16', regex=True)
log_content.columns = log_content.columns.str.replace('6x32', ' 16x32', regex=True)
log_content.columns = log_content.columns.str.replace('6x8', ' 16x8', regex=True)
log_content.columns = log_content.columns.str.replace('86', ' 8x16', regex=True)
log_content.columns = log_content.columns.str.replace('AMP6', 'AMP 16', regex=True)
log_content = log_content.replace('%', '', regex=True).astype(float)
average = log_content.describe().loc['mean'].to_string()

print (average)
with open(filename+str('.log'), mode='w') as outputfile:
    outputfile.write(str(average))
    outputfile.close()
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 14th November 2022, 15:02   #8779  |  Link
_kermit
Registered User
 
Join Date: Apr 2017
Posts: 63
piping to x265 with powershell

sorry if that is too off-topic...

this works just fine in a command prompt:

ffmpeg.exe -i FILE -pix_fmt yuv420p10le -strict -1 -f yuv4mpegpipe - | x265.exe - --y4m .....etc.

Now I wanted to use Powershell for that and the piping isn't working, the x265 process doesn't even start, while ffpmpeg is running:

It seems that using the pipe character isn't working here.
Does anyone have an idea?
_kermit is offline   Reply With Quote
Old 14th November 2022, 15:28   #8780  |  Link
excellentswordfight
Lost my old account :(
 
Join Date: Jul 2017
Posts: 301
Quote:
Originally Posted by _kermit View Post
piping to x265 with powershell

sorry if that is too off-topic...

this works just fine in a command prompt:

ffmpeg.exe -i FILE -pix_fmt yuv420p10le -strict -1 -f yuv4mpegpipe - | x265.exe - --y4m .....etc.

Now I wanted to use Powershell for that and the piping isn't working, the x265 process doesn't even start, while ffpmpeg is running:

It seems that using the pipe character isn't working here.

Does anyone have an idea?
There is nothing "wrong" with the pipe command, but piping does not work in the same way in powershell as in cmd so you cannot pipe raw data in the same way.

There are some workaround and more info here https://stackoverflow.com/questions/...-in-powershell
excellentswordfight 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 14:04.


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