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 17th January 2023, 06:09   #8941  |  Link
vpupkind
Registered User
 
Join Date: Jul 2007
Posts: 60
Quote:
Originally Posted by ShortKatz View Post
I've opened several pull requests on this mailing list. Just one got applied, half a year later. And there are so many more patches on this list that got never merged, not even reviewd.
Here are 3 examples of interesting patches that never got applied:
https://mailman.videolan.org/piperma...ry/012907.html
https://mailman.videolan.org/piperma...ry/012908.html
https://mailman.videolan.org/piperma...er/013158.html

And then there are sadly some bug fixes that were opened at the wrong place:
https://github.com/videolan/x265/pulls

(And I don't even talk about all those open bugs in the bug tracker that never got fixed)
Two of them seem to be of limited non-academic use.
vpupkind is offline   Reply With Quote
Old 17th January 2023, 11:24   #8942  |  Link
Yomiko
Registered User
 
Join Date: Aug 2021
Posts: 73
What are the params that are allowed to change for encoding two slices of video and later losslessly concatenating them? Are they merely the ones specified in --zones?
Yomiko is offline   Reply With Quote
Old 17th January 2023, 18:24   #8943  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,490
Quote:
Originally Posted by jpsdr View Post
Should explain more.
First, you have to enable it with --aq-auto, and then, you tune with --aq-auto-xxx. Using for example --aq-auto-hdr without --aq-auto has no effect, as the feature is just not enabled.
Did you consider having the different modes as parameters to --aq-auto? Ala:

--aq-auto none (aka --no-auto-aq)
--aq-auto hyst
--aq-auto "hdr,hyst"

Or

--auto-aq-mode for the parameters?

Those would seem to match x265 style a little better. I'm not sure what the limitations are in command line structure.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 17th January 2023, 18:47   #8944  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
Not realy, i made it "quick"... Don't realy interested in spending time to figure out how to analyse command line with several parameters. Could see others command line to figure out how it's done.
This configuration is working and is fine for me. Yes, it could be better and more x265 friendly, but not in the mood...
It's in the first place an own custom build, and i share it in case people could be interested with.
After, if someone is motivated enough to make a pull request, no problemo... ^_^
__________________
My github.
jpsdr is offline   Reply With Quote
Old 17th January 2023, 19:18   #8945  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
Are these patches interesting (and correct, not adding issues) to commit in my custombuild ?
I checked my code, they are not implemented, so the bugs (if realy) are still here. As i'm using tskip, if the 1rst is to be commited, i'm very interested by a validation.

https://github.com/videolan/x265/pul...dbc25d50cec5d8 (very interested if this one is to be applyed)
https://github.com/videolan/x265/pul...0c8ffe57bc08b6
https://github.com/videolan/x265/pul...0cc988a0928a11 (this one is big... Maybe not so easy to check the effects ?)
https://github.com/videolan/x265/pul...953a189859ff8b
__________________
My github.
jpsdr is offline   Reply With Quote
Old 17th January 2023, 19:53   #8946  |  Link
vpupkind
Registered User
 
Join Date: Jul 2007
Posts: 60
Quote:
Originally Posted by benwaggoner View Post
Did you consider having the different modes as parameters to --aq-auto? Ala:

--aq-auto none (aka --no-auto-aq)
--aq-auto hyst
--aq-auto "hdr,hyst"

Or

--auto-aq-mode for the parameters?

Those would seem to match x265 style a little better. I'm not sure what the limitations are in command line structure.
Talk to MulticoreWare? I would expect them to post it again, with a different parameter name.
vpupkind is offline   Reply With Quote
Old 17th January 2023, 19:55   #8947  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,610
Quote:
Originally Posted by jpsdr View Post
Are these patches interesting (and correct, not adding issues) to commit in my custombuild ?
I checked my code, they are not implemented, so the bugs (if realy) are still here. As i'm using tskip, if the 1rst is to be commited, i'm very interested by a validation.

https://github.com/videolan/x265/pul...dbc25d50cec5d8 (very interested if this one is to be applyed)
https://github.com/videolan/x265/pul...0c8ffe57bc08b6
https://github.com/videolan/x265/pul...0cc988a0928a11 (this one is big... Maybe not so easy to check the effects ?)
https://github.com/videolan/x265/pul...953a189859ff8b
The third one could well be interesting to many. If you could do the first pass in like half the resolution of the actual encode in the second pass, it might speed things up considerably. Especially with 4K sources, that is.
__________________
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 17th January 2023, 22:04   #8948  |  Link
vpupkind
Registered User
 
Join Date: Jul 2007
Posts: 60
Quote:
Originally Posted by Boulder View Post
The third one could well be interesting to many. If you could do the first pass in like half the resolution of the actual encode in the second pass, it might speed things up considerably. Especially with 4K sources, that is.
I think (looking at GitHub) that the reason for non-inclusion is CLA (derived from the x265 CLA)
vpupkind is offline   Reply With Quote
Old 18th January 2023, 09:55   #8949  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
I think for now i'll not try to include the big one, but i need to be sure that the 3 others are validated to be bug fixes.

For aq-auto, what i'll see if easy to do is the following :
--aq-auto <integer>
0 : Default, disable. <>0 enabled.
Bit 1 : If set to 1 enable hysteresis.
Bit 2 : If set to 1 enable HDR mode.
Bit 3 : If set to 1 enable AQ5.
The others bits (0, 4 to 7) if set to 1 will just enable the aq-auto mode.
=>
--aq-auto 1 : Just enable the aq-auto mode.
--aq-auto 2 is exactly the same than --aq-auto 3.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 18th January 2023, 10:02   #8950  |  Link
LeXXuz
20 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 680
Anyone else having issues with x265 halting about 4 seconds before the actual source file ends? It doesn't happen every time but quite a few times now on different systems.
Currently using jp's version: 3.5+75+0-f3c013983 [Mod by Patman]
LeXXuz is offline   Reply With Quote
Old 18th January 2023, 19:58   #8951  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,490
Quote:
Originally Posted by jpsdr View Post
Are these patches interesting (and correct, not adding issues) to commit in my custombuild ?
I checked my code, they are not implemented, so the bugs (if realy) are still here. As i'm using tskip, if the 1rst is to be commited, i'm very interested by a validation.

https://github.com/videolan/x265/pul...dbc25d50cec5d8 (very interested if this one is to be applyed)
https://github.com/videolan/x265/pul...0c8ffe57bc08b6
https://github.com/videolan/x265/pul...0cc988a0928a11 (this one is big... Maybe not so easy to check the effects ?)
https://github.com/videolan/x265/pul...953a189859ff8b
#1 is certainly interesting to me. --tskip is a very valuable feature with a certain subset of content, like text and computer graphics. Using the wrong reconstruction sounds like a pretty big bug.

That said, it's from 2018. I wouldn't be surprised if it had already been fixed.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 18th January 2023, 20:21   #8952  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
I've put the 2 first patches. And no, they were not fixed.
Also put the change on --aq-auto command. Now, i have to build and make my usual small quick encode test.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 18th January 2023, 21:27   #8953  |  Link
madey83
Registered User
 
Join Date: Sep 2021
Posts: 110
Quote:
Originally Posted by jpsdr View Post
I've put the 2 first patches. And no, they were not fixed.
Also put the change on --aq-auto command. Now, i have to build and make my usual small quick encode test.
Hi,

is this "--aq-auto-hdr" can be used for dolby vision encode use case?
madey83 is online now   Reply With Quote
Old 18th January 2023, 23:23   #8954  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
@madey83
Yes.

New build with the modified --aq-auto command described in post #8949, and also include the two old bug fix patches. Check my Github.
Quick small encode test, seems fine.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 19th January 2023, 06:47   #8955  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,610
It's a bit confusing Are we talking about an 8-bit integer here? I was just quickly testing it, and expected --aq-auto 3 to enable hysteresis and HDR mode (calculated 1+2) but it only enabled hysteresis. --aq-auto 6 brought up the desired combination while I assumed it would enable all of the three.
__________________
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 19th January 2023, 09:42   #8956  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
With 3, you set Bits 0 & 1 at 1.
With 6, you set Bits 1 & 2 at 1.
__________________
My github.
jpsdr is offline   Reply With Quote
Old 19th January 2023, 09:43   #8957  |  Link
Zebulon84
Registered User
 
Join Date: Apr 2015
Posts: 21
obsolete
Zebulon84 is offline   Reply With Quote
Old 19th January 2023, 19:04   #8958  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,234
What is obsolete ???
__________________
My github.
jpsdr is offline   Reply With Quote
Old 19th January 2023, 20:06   #8959  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,610
Quote:
Originally Posted by jpsdr View Post
With 3, you set Bits 0 & 1 at 1.
With 6, you set Bits 1 & 2 at 1.
Oh, I thought it was to calculate "0+1+2+4" for the first four bits. It's been 25 years since I practiced any of this stuff
__________________
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 19th January 2023, 21:07   #8960  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 93
Quote:
Originally Posted by benwaggoner View Post

That said, it's from 2018. I wouldn't be surprised if it had already been fixed.
Nope, the patch still does apply. So, I was wondering, if this bug is so big and there since (minimum) 2018, why did no one else notice?
ShortKatz 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 13:56.


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