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 27th June 2016, 10:55   #3841  |  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
Old 27th June 2016, 11:06   #3842  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,955
1. There are several sources for both "multilib" builds (one EXE with all three bitdepth variants of the encoder included, which you can select by the parameter -D) and separate builds; my MinGW / GCC packages contain both kinds, more links to different builds can be found e.g. in the VideoHelp forum thread.

2. Multiplex it using mkvtoolnix (with mkvmerge as CLI tool, or with the formerly usual MKVmergeGUI or the current MKVToolnixGUI as GUI application) or maybe with ffmpeg too. This is not a "conversion", just wrapping the raw HEVC video stream into a Matroska container (which may then also contain more than just the video stream, like an additional audio stream).
__

P.S. 1.: x265 1.9+217-626fcbac7ffb
__________________

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

Last edited by LigH; 27th June 2016 at 13:03.
LigH is offline   Reply With Quote
Old 27th June 2016, 21:29   #3843  |  Link
innosia
Registered User
 
Join Date: Jan 2014
Posts: 8
Quote:
Originally Posted by LigH View Post
1. There are several sources for both "multilib" builds (one EXE with all three bitdepth variants of the encoder included, which you can select by the parameter -D) and separate builds; my MinGW / GCC packages contain both kinds, more links to different builds can be found e.g. in the VideoHelp forum thread.

2. Multiplex it using mkvtoolnix (with mkvmerge as CLI tool, or with the formerly usual MKVmergeGUI or the current MKVToolnixGUI as GUI application) or maybe with ffmpeg too. This is not a "conversion", just wrapping the raw HEVC video stream into a Matroska container (which may then also contain more than just the video stream, like an additional audio stream).
__

P.S. 1.: x265 1.9+217-626fcbac7ffb
Thanks Ligh, it works!
currently i am experimenting with the speed vs quality i can get, my cpu took more than 2 hours encoding 200MB 9 mins animation so i terminate it. I used preset veryslow

Code:
ffmpeg -i %1 -an -me_method umh -b_strategy 2 -subq 10 -refs 10 -v error -weightp 2 -trellis 2 -qmin 10 -qmax 81 -f yuv4mpegpipe - | x265_main12 --y4m - --level 5.1 --preset veryslow --min-keyint 12 --scenecut 40 --bframes 10 --qcomp 0.6 --rc-lookahead 60 --aq-mode 1 --aq-strength 0.8 --merange 24 --psy-rd 0.60 --crf %5 --output %2
will probably tweak for faster encode.
i appreciate if you can help?
innosia is offline   Reply With Quote
Old 28th June 2016, 07:25   #3844  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 613
Which of the following web pages is current? Maybe there are some new?
http://x265.ru/builds/
https://encoder.pw/
http://msystem.waw.pl/x265/
https://github.com/videolan/x265/commits/master
Jamaika is offline   Reply With Quote
Old 28th June 2016, 07:37   #3845  |  Link
x265_Project
Registered User
 
Join Date: Jul 2013
Posts: 596
Quote:
Originally Posted by Jamaika View Post
The videolan github should be a mirror of our main repository... https://bitbucket.org/multicoreware/x265

None of the other sites are supported by us.
x265_Project is offline   Reply With Quote
Old 28th June 2016, 07:38   #3846  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 948
Quote:
Originally Posted by Jamaika View Post
Just compare the builds they offer with the list below:

https://bitbucket.org/multicoreware/x265/commits/

encoder.pw and x265.ru do NOT contain the builds based on the most recent commits.
waw.pl apparently is up-to-date, but their content is a mess

Last edited by filler56789; 28th June 2016 at 07:40. Reason: disambiguation
filler56789 is offline   Reply With Quote
Old 28th June 2016, 07:47   #3847  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 613
Quote:
Originally Posted by x265_Project View Post
The videolan github should be a mirror of our main repository... https://bitbucket.org/multicoreware/x265
Hmm... At the github I have a patch from 7 June, Videolan 24 June, Bitbucket 16 June. Hence my question.
https://patches.videolan.org/project/x265-devel/list/
https://bitbucket.org/multicoreware/...branch/default

Last edited by Jamaika; 28th June 2016 at 07:51.
Jamaika is offline   Reply With Quote
Old 28th June 2016, 08:21   #3848  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,955
You forgot my build archive at MediaFire; but I will not build daily or even automatically, only after a few important commits, more or less weekly.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 28th June 2016, 08:40   #3849  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 613
I didn't forget. You are here from the beginning.
He should ask: Do users LigH, El Heggunte, Selur, others have full accreditation, and are now confident creators codec X265?
Quote:
Originally Posted by filler56789 View Post
encoder.pw and x265.ru do NOT contain the builds based on the most recent commits.
We not only Selur's codecs are also outdated.(GNU 5.3.0)

Last edited by Jamaika; 28th June 2016 at 11:25.
Jamaika is offline   Reply With Quote
Old 28th June 2016, 09:21   #3850  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 830
Quote:
Originally Posted by Jamaika View Post
He should ask: Do users LigH, El Heggunte, Selur, others have full accreditation, and are now confident creators codec X265?
They're not creators, just builders. They compile the source code which is being written (created, developed) by MulticoreWare programmers so that we (=regular users) can use x265 on our systems and encode video streams.
kypec is offline   Reply With Quote
Old 28th June 2016, 16:23   #3851  |  Link
Ma
Registered User
 
Join Date: Feb 2015
Posts: 325
Quote:
Originally Posted by innosia View Post
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?
You need 3 EXE files:
1) ffmpeg.exe from https://ffmpeg.zeranoe.com/builds/
2) x265-10b.exe from http://www.msystem.waw.pl/x265/ (first table, ver. 1.9+217, Minimum CPU arch AVX)
3) mkvtoolnix-gui.exe from http://www.fosshub.com/MKVToolNix.html (portable 64bit)

Let your original MKV file will be org.mkv
First you encode video:
Code:
ffmpeg -i org.mkv -v error -vf scale=384:-2 -f yuv4mpegpipe - | x265-10b --y4m - -p0 new.hevc
After a while (should be ultra fast) you will have new.hevc file with encoded video.

Then you start mkvtoolnix-gui.exe.
1) press button "+ Add source files" and choose your original org.mkv
2) second time press button "+ Add source files" and choose your encoded new.hevc
3) in window "Tracks, chapters and tags:" please move last track "MPEG-H/HEVC/h.265" to second place from top (by mouse)
4) uncheck original video track, it should looks like in attached picture
5) press "Start muxing" button
You will have "org (1).mkv" file with replaced video track. If you do this, you can see if audio is sync with video (video quality should be very low). If all is OK, you can remove '-vf scale=384:-2' from ffmpeg options and instead of '-p0' in x265 options you can insert '-p8 --crf 20' and encode to better quality (but very slow).
Attached Images
 

Last edited by Ma; 29th June 2016 at 09:46. Reason: change ffmpeg option to '-vf scale=384:-2'
Ma is offline   Reply With Quote
Old 28th June 2016, 16:52   #3852  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 621
I also compile a modded version including various input and output options.
MeteorRain is offline   Reply With Quote
Old 28th June 2016, 17:47   #3853  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,900
Quote:
We not only Selur's codecs are also outdated.(GNU 5.3.0)
I normally build fresh versions when:
a. something interesting was committed
b. I release a new Hybrid version
but not sure if I won't stop building myself since the mingw builds keep on randomly crashing on my i7 and on newer Xeons,... (guess there is still something off with MinGW or the way https://github.com/jb-alvarado/media-autobuild_suite builds the binaries,.. MSVC builds seem to work fine)
__________________
Hybrid here in the forum, homepage
Notice: Since email notifications do not work here any more, it might take me quite some time to notice a reply to a thread,..
Selur is offline   Reply With Quote
Old 30th June 2016, 11:19   #3854  |  Link
Leo 69
Registered User
 
Join Date: Nov 2004
Posts: 227
Dear development team,

Has there been any good progress lately? When x265 can be expected to produce as sharp encodes as x264 does?
Thanks a lot!

Last edited by Leo 69; 30th June 2016 at 11:34.
Leo 69 is offline   Reply With Quote
Old 30th June 2016, 14:22   #3855  |  Link
froggy1
ffx264/ffhevc author
 
froggy1's Avatar
 
Join Date: May 2007
Location: Belgium
Posts: 1,551
Quote:
Originally Posted by Leo 69 View Post
Dear development team,

Has there been any good progress lately? When x265 can be expected to produce as sharp encodes as x264 does?
Thanks a lot!
I did recently an encode to test the advancements so far in x265. Honestly, I'm very disappointed when it comes to retaining detail (and a bit of noise).

The same encode done with x264 looks far and I repeat FAR better than the one done with x265.

I usually know what I do when configuring the options, but I wasn't able to match the quality of the x264 encode thus far.

So I'd say it'll probably take 1-2 years for x265 to come on par with x264
__________________
ffx264--ffhevc--ffxvid
froggy1 is offline   Reply With Quote
Old 30th June 2016, 14:48   #3856  |  Link
burfadel
Registered User
 
Join Date: Aug 2006
Posts: 2,234
Try some custom options:
--rdoq-level 1
--output-depth 10
--rd 4
--tu-intra-depth 3
--early-skip
--fast-intra
--b-intra
--tskip
--tskip-fast
--limit-modes
--aq-mode 2
--qg-size 16
--me star
--max-merge 3
--weightb
--bframes 6
--ref 6
--rc-lookahead 40

Note the first entry, I use the level 1 despite people saying level 2 produces more ideal results. I agree with the help:
Quote:
Psy-rdoq is less effective at preserving energy when RDOQ is at level 2, since it only has influence over the level distortion costs.
I find level 1 produces the best results. --tu-intra-depth 3 is good and there is little speed penalty (only on intra, not on inter), setting it higher than 1 on inter has little improvement at the expense of encode speed. --early-skip, --fast-intra, --tskip, --tskip-fast, and --limit-modes are all performance options with little (none for me) discernible difference in picture quality. --b-intra, --aq-mode 2, --qg-size 16, --max-merge 3, --weightb, and --rc-lookahead 40 are all quality and/or efficiency related. --bframes 6 and --ref 6 seem the most ideal for me. Any higher than about 6 b-frames their usage drops very significantly. --me star seems the highest performing motion search algorithm in both quality and is fast. It really makes UMH and even HEX redundant due to the quality of the output and speed.

Note that I have --merange set to 25 for speed at 480P content. If encoding to a higher resolution then a higher merange would be beneficial. I did read there are SAO optimisations etc in the works, they should further improve the results.

Try those settings and see how the output compares. I mean just those settings, nothing else except for stating the CRF. The CRF can also be in decimal form, such as 20.5. These settings seem to work well together for not only a fast encode but great quality ouput. If you're game try say, 400 for --nr-intra and --nr-inter. It might sound counterintuitive for what you intend, but it does reduce the file size a bit such that you can use a slightly lower CRF. The lower CRF then could produce more likeable results. Try it out on a clip, one with both of those set to 0 and another with them both set to 400 but lower the CRF by say, 0.5 and see the output quality and file size. You may be even able to lower the CRF even a tad more than that.
burfadel is offline   Reply With Quote
Old 30th June 2016, 15:30   #3857  |  Link
froggy1
ffx264/ffhevc author
 
froggy1's Avatar
 
Join Date: May 2007
Location: Belgium
Posts: 1,551
@burfadel

Thanks for the options. I'll try them but what I used for the test encode is very close to what you provided, except for the *--skip ones which I disabled. I will do some more tweaking here...
__________________
ffx264--ffhevc--ffxvid
froggy1 is offline   Reply With Quote
Old 30th June 2016, 16:17   #3858  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 701
just use --no-sao --deblock -2:-2 --rdoq-level 2 or 1 --psy-rdoq 1.5 or 2

@burfadel level 1 give better result for the same crf, but also a bigger file, at the same bitrate level 2 generally looks better.
also note, on presets lower than slow, without setting --psy-rdoq it's defaulted to 0 and --rdoq-level don't do anything.
__________________
powered by Google Translator
Motenai Yoda is offline   Reply With Quote
Old 1st July 2016, 02:40   #3859  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 948
commit 17c0c875f27d @ http://forum.videohelp.com/threads/3...=1#post2450950

Only the x64 binary is "multilib", the x86 one is 8-bit only, and is "XP-compatible" (or at least I think so, I don't have an XP machine anymore).

Last edited by filler56789; 2nd July 2016 at 17:08. Reason: grammar
filler56789 is offline   Reply With Quote
Old 1st July 2016, 10:04   #3860  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 613
I found a codec creators. I should probably use them.
https://builds.x265.eu/
Jamaika 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:03.


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