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)
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th June 2016, 22:47   #3821  |  Link
RiCON
Registered User
 
RiCON's Avatar
 
Join Date: Jan 2004
Posts: 69
I did, yes. After reading the replies here.
RiCON is offline   Reply With Quote
Old 4th June 2016, 22:51   #3822  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,783
Oh, that was you.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 7th June 2016, 23:19   #3823  |  Link
pingfr
Registered User
 
Join Date: May 2015
Posts: 185
Hey guys,

Development appears to be quiet since commit ad961f5 on the 30/05... I mean sure I can see a few minor commits here and there, but they are mostly "minor fixes" such as warning silencing, clarifications, commit hash fixing, etc.

I'm wondering what would be the "next" step or what's the "direction" at the moment from the MulticoreWare team, specifically if anything in the "visual optimization" field of expertise or "compression efficiency" is either in the works or in the pipeline?

Cheers.
pingfr is offline   Reply With Quote
Old 8th June 2016, 19:30   #3824  |  Link
x265_Project
Guest
 
Posts: n/a
Quote:
Originally Posted by pingfr View Post
Hey guys,

Development appears to be quiet since commit ad961f5 on the 30/05... I mean sure I can see a few minor commits here and there, but they are mostly "minor fixes" such as warning silencing, clarifications, commit hash fixing, etc.

I'm wondering what would be the "next" step or what's the "direction" at the moment from the MulticoreWare team, specifically if anything in the "visual optimization" field of expertise or "compression efficiency" is either in the works or in the pipeline?

Cheers.
There are some optimizations to SAO in development that should be ready this month. Longer term there are a number of visual quality and performance improvements we're working on, but for now we'd prefer to keep our powder dry, so we can make a bigger bang when we have some results to show.
  Reply With Quote
Old 8th June 2016, 19:44   #3825  |  Link
pingfr
Registered User
 
Join Date: May 2015
Posts: 185
Quote:
Originally Posted by x265_Project View Post
There are some optimizations to SAO in development that should be ready this month. Longer term there are a number of visual quality and performance improvements we're working on, but for now we'd prefer to keep our powder dry, so we can make a bigger bang when we have some results to show.
Amazing, thanks for the heads up!
pingfr is offline   Reply With Quote
Old 17th June 2016, 16:47   #3826  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
Originally Posted by professor_desty_nova View Post
.....

PS: Isn't "(now it only enables B GOP structure)" on x265 help outdated

It is the same as version 0.3 when you didn't have b-adapt...
Yes$S... HEVC encoder version 1.9+215-78ffb67a844e still says the same thing.

Code:
x265 --help
filler56789 is offline   Reply With Quote
Old 18th June 2016, 23:06   #3827  |  Link
Barough
Registered User
 
Barough's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 483
Quote:
Originally Posted by x265_Project View Post
There are some optimizations to SAO in development that should be ready this month. Longer term there are a number of visual quality and performance improvements we're working on, but for now we'd prefer to keep our powder dry, so we can make a bigger bang when we have some results to show.
That's gr8 info/news. Thnx.
Barough is offline   Reply With Quote
Old 21st June 2016, 17:21   #3828  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Very-well, my next MinGW builds will not say:

Quote:
"(now it only enables B GOP structure)"
Sometimes Wikipedia is right: be bold

Last edited by filler56789; 21st June 2016 at 22:37. Reason: add emphasis
filler56789 is offline   Reply With Quote
Old 26th June 2016, 14:53   #3829  |  Link
innosia
Registered User
 
Join Date: Jan 2014
Posts: 8
Thanks guys for all of the efforts

I am noob here, can I ask the cli syntax to run x265 to convert mkv to mkv for smaller CRF for tune animation
innosia is offline   Reply With Quote
Old 26th June 2016, 15:10   #3830  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,783
Unfortunately, a "vanilla" build of x265 can neither read video input from an MKV directly, nor create the encoded result inside an MKV container.

You will need some helping frameserver script (usually AviSynth) to decode the video from your source MKV, using avs4x26x or similar piping helper tools, and will get a raw HEVC video stream you have to multiplex later with e.g. mkvmerge.

Your only way to achieve your desired workflow may be using ffmpeg with libx265 as video encoder. Probably something like:

Code:
ffmpeg -i input.mkv -vcodec libx265 -crf 20 -preset slow -tune animation -acodec copy output.mkv
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 26th June 2016, 15:35   #3831  |  Link
innosia
Registered User
 
Join Date: Jan 2014
Posts: 8
Quote:
Originally Posted by LigH View Post
Unfortunately, a "vanilla" build of x265 can neither read video input from an MKV directly, nor create the encoded result inside an MKV container.

You will need some helping frameserver script (usually AviSynth) to decode the video from your source MKV, using avs4x26x or similar piping helper tools, and will get a raw HEVC video stream you have to multiplex later with e.g. mkvmerge.

Your only way to achieve your desired workflow may be using ffmpeg with libx265 as video encoder. Probably something like:

Code:
ffmpeg -i input.mkv -vcodec libx265 -crf 20 -preset slow -tune animation -acodec copy output.mkv
thanks LigH for pointing it out
will try and let you know if it works

thanks again
innosia is offline   Reply With Quote
Old 26th June 2016, 17:52   #3832  |  Link
innosia
Registered User
 
Join Date: Jan 2014
Posts: 8
hi i found some guide
but it was 8 bit ffmpeg

can i confirm the page : https://ffmpeg.zeranoe.com/builds/ (64 bit static) has 10 bit? and how to specify for 10 bit depth?
innosia is offline   Reply With Quote
Old 26th June 2016, 18:48   #3833  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 326
Quote:
Originally Posted by innosia View Post
can i confirm the page : https://ffmpeg.zeranoe.com/builds/ (64 bit static) has 10 bit? and how to specify for 10 bit depth?
It has only 8-bit x265 stable 1.9 (outdated). You can start with 100 frames sample like this:
Code:
ffmpeg -i ../original.mkv -ss 50 -frames 100 -v error -f yuv4mpegpipe - | x265-10b --y4m - -p slow --crf 24 o.hevc
where x265-10b is current (1.9+217) 10-bit x265.
Ma is offline   Reply With Quote
Old 26th June 2016, 18:54   #3834  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,783
All libx265 options not explicitly exposed by ffmpeg have to be added in internal parameter format (not x265 CLI format) following the ffmpeg '-x265-params' parameter:

Code:
ffmpeg -i input.mkv -vcodec libx265 -crf 20 -preset slow -tune animation -x265-params output-depth=10 -acodec copy output.mkv
Possible problem: x265 does not offer a tuning "animation" yet. Without a tuning parameter it does something, let's see if it used 10 bit depth...

No. It recognizes neither "-x265-params output-depth=10" nor "-x265-params D=10" nor "-x265-params profile=main10".

BTW, I tested with an ffmpeg build created with jb-alvarado's media-autobuild_suite. It may contain multiple x265 libraries with several bit depths. But their selection does not seem to work.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 26th June 2016, 19:06   #3835  |  Link
easyfab
Registered User
 
Join Date: Jan 2002
Posts: 332
You can try ffmpeg with -c:v libx265 -pix_fmt yuv420p10le perhaps
easyfab is offline   Reply With Quote
Old 26th June 2016, 19:36   #3836  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,783
The problem is that the mentioned parameters are not recognized:

Code:
...
[libx265 @ 000000000294d940] Unknown option: {output-depth|D|profile}.
x265 [info]: HEVC encoder version 1.9+192-aeade2e8d8688ebf
x265 [info]: build info [Windows][GCC 5.3.0][64 bit] 8bit+10bit+12bit
...
So, libx265 inside ffmpeg reports providing three bitdepth libraries, but I cannot find a recognized parameter to select one specific out of the three.

Piping Y4M from ffmpeg to x265 CLI is probably the best OS-independent way to get high bitdepth video streams. They just have to be multiplexed afterwards.
__

The suggestion by easyfab was confirmed in IRC. Testing...

OK, profile "Main 10" is selected, so this appears to be a correct suggestion. Tanks, easyfab!
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 26th June 2016 at 19:45.
LigH is offline   Reply With Quote
Old 26th June 2016, 19:55   #3837  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 326
Quote:
Originally Posted by LigH View Post
So, libx265 inside ffmpeg reports providing three bitdepth libraries
Are you sure that you are writing about Zeranoe FFmpeg Build?
Ma is offline   Reply With Quote
Old 26th June 2016, 19:57   #3838  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,420
Quote:
Originally Posted by LigH View Post
The problem is that the mentioned parameters are not recognized:

Code:
...
[libx265 @ 000000000294d940] Unknown option: {output-depth|D|profile}.
x265 [info]: HEVC encoder version 1.9+192-aeade2e8d8688ebf
x265 [info]: build info [Windows][GCC 5.3.0][64 bit] 8bit+10bit+12bit
...
So, libx265 inside ffmpeg reports providing three bitdepth libraries, but I cannot find a recognized parameter to select one specific out of the three.
You're supposed to use -pix_fmt, because that's how FFmpeg selects the format, and when used inside FFmpeg, libx265 works in direct I/O mode - give it 8-bit, it outputs 8-bit. Give it 10-bit, it outputs 10-bit*, etc. Overriding that has to be done by the part of the toolchain that resamples formats, and that's FFmpeg, not libx265.

*So long as it's a multilib libx265, anyway.
qyot27 is offline   Reply With Quote
Old 26th June 2016, 20:02   #3839  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,783
Quote:
Originally Posted by Ma View Post
Are you sure that you are writing about Zeranoe FFmpeg Build?
No, as I added later:

Quote:
Originally Posted by LigH View Post
BTW, I tested with an ffmpeg build created with jb-alvarado's media-autobuild_suite. It may contain multiple x265 libraries with several bit depths.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 27th June 2016, 09:55   #3840  |  Link
innosia
Registered User
 
Join Date: Jan 2014
Posts: 8
Thanks all and ligh for confirming that ffmpeg+libx265 does not support converting from 8bit to 10bit (my source is 8 bit).

My only option will be below

Quote:
Originally Posted by Ma View Post
It has only 8-bit x265 stable 1.9 (outdated). You can start with 100 frames sample like this:
Code:
ffmpeg -i ../original.mkv -ss 50 -frames 100 -v error -f yuv4mpegpipe - | x265-10b --y4m - -p slow --crf 24 o.hevc
where x265-10b is current (1.9+217) 10-bit x265.
May I know
1. Where to get x265-10b.exe? I can't compile myself coz a noob here
2. How to convert o.hevc back to mkv?

Thank you
innosia is offline   Reply With Quote
Reply


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 20:46.


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