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. |
25th December 2015, 08:43 | #3041 | Link |
Guest
Posts: n/a
|
New presets
To see the changes, see this commit... https://bitbucket.org/multicoreware/...347e40e30debce
|
25th December 2015, 09:02 | #3042 | Link |
Registered User
Join Date: Jul 2015
Posts: 708
|
Updating presets for x265 v1.8.0.188 to improve coding efficiency and speed.
Code:
| |ultrafast |superfast |veryfast |faster |fast |medium |slow |slower |veryslow |placebo | | ctu | 32 | 32 | 64 | 64 | 64 | 64 | 64 | 64 | 64 | 64 | | ref | 1 | 1 | 2 | 2 | 3 | 3 | 4 | 4 | 5 | 5 | | cuTree | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | limit-refs | 0 | 0 | 3 | 3 | 3 | 3 | 3 | 2 | 1 | 0 | | limit-modes | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | When you expect the implementation of the "psy-rdoq = 50.0" for veryslow? Who can explain to me what are the features "sao, amp, temporal-MVP, signhide, strong-intra-smoothin"? If you don't apply them for quick shots even playing the movie better presented. Last edited by Jamaika; 25th December 2015 at 13:27. |
25th December 2015, 11:49 | #3043 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,348
|
Placebo is meant to be the ultimate preset with 100% of all quality options turned on, irregardless of speed. The two limit options can slightly cost efficiency to gain substantial speed improvements, which is not something you want in placebo.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
25th December 2015, 11:57 | #3044 | Link | |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
Quote:
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
25th December 2015, 12:07 | #3045 | Link | |
Registered User
Join Date: Jul 2015
Posts: 708
|
Quote:
PS Why does X265 v1.8.0.188 not retain the bitrate? x265 x1.8.0.86 --bitrate 4500 --vbv-bufsize 10000 --vbv-maxrate 10000 Code:
Bit rate : 4 595 Kbps Maximum bit rate : 6 030 Kbps Code:
Bit rate : 3 680 Kbps Maximum bit rate : 4 923 Kbps Last edited by Jamaika; 25th December 2015 at 14:43. |
|
25th December 2015, 16:01 | #3046 | Link |
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,815
|
What do you think about increasing default --psy-rd value from very low 0.3 to 2?
According to my tests if you want to achieve similar level of details with x264 this must be increased in first place. Default 0.3 value can produce nasty banding effects in dark areas. (see jaw) Source http://i.cubeupload.com/AhAG58.png x264 --veryslow --2pass --bitrate 2048 http://i.cubeupload.com/rKB3Sq.png x265 --medium --2pass --bitrate 2048 http://i.cubeupload.com/FzFWFZ.png x265 --medium --2pass --bitrate 2048 --psy-rd 2 http://i.cubeupload.com/DKDrIR.png x265 --medium --2pass --bitrate 2048 --psy-rd 2 --aq-strength 2 http://i.cubeupload.com/nLhSxJ.png I've also uploaded whole 10 min samples if you want to check how other scenes look like. (Use staxrip's video comparison tool) https://mega.nz/#!pJFiHRaS!zxYtdhj4O...6Ia8n6HIHYGDwo
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper Last edited by Atak_Snajpera; 25th December 2015 at 17:11. |
25th December 2015, 22:21 | #3047 | Link | |
Guest
Posts: n/a
|
Quote:
--me 4 slows performance by 13X, and I couldn't see a noticeable improvement in quality --subme 7 slows performance by about 9%, and visually you may see a difference in quality, so we may still consider adding this to placebo --merange 121 slowed performance by 13%, but I didn't really see a difference in the output bitstream Of course, you're free to tweak any parameters you would like in an attempt to improve speed or quality. For example, you could also try --preset placebo with --limit-refs and/or --limit-modes, and it would run much faster. |
|
25th December 2015, 22:24 | #3048 | Link | |
Guest
Posts: n/a
|
Quote:
|
|
27th December 2015, 12:46 | #3049 | Link |
Registered User
Join Date: Jul 2015
Posts: 708
|
I don't know why there are such differences in image quality in my results. The file size of CRF=37:qcomp=1.00 x264 is three times higher than for CRF=37:qcomp=1.00 X265. Is this correct result? I will present your findings to the X265 CRF=37. The two supposedly identical commands for X265 and two different results from the original.
Test 1 Code:
ffmpeg.exe -loglevel info -i "swimming.avi" -s 1920x1080 -r 50000/1000 -an -sn -f image2 -c:v png -pix_fmt rgba "swimming%%003d.png" bpgenc.exe -v -a -e x265 -c rgb -q 37 -alphaq 37 -m 9 -fps 50 "swimming%%003d.png" -o "swimming_rgba.bpg" Edit: bpgenc.exe -v -a -e x265 -b 8 -f 444 -c rgb -q 37 -m 9 -fps 50 (only 25) "swimming%%003d.png" -o "swimming_rgb.bpg" Edit: bpgenc.exe -v -a -e x265 -b 8 -f 444 -c ycbcr -q 37 -m 9 -fps 50 (only 25) "swimming%%003d.png" -o "swimming_yuv444.bpg" Code:
Using x265 preset: placebo x265 [info]: HEVC encoder version unknown x265 [info]: build info [Windows][GCC 4.9.2][64 bit] 8bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX x265 [info]: Main 4:4:4 profile, Level-4 (Main tier) x265 [info]: Thread pool created using 4 threads x265 [info]: frame threads / pool features : 2 / 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 / 4 inter / 4 intra x265 [info]: ME / range / subpel / merge : star / 92 / 5 / 5 x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 60 / 0 / 2 x265 [info]: b-pyramid / weightp / weightb : 0 / 1 / 1 x265 [info]: References / ref-limit cu / depth : 1 / 0 / 0 x265 [info]: Rate Control : CQP-37 x265 [info]: tools: rect amp rd=6 rdoq=2 tskip signhide tmvp b-intra x265 [info]: tools: strong-intra-smoothing deblock sao Code:
ffmpeg.exe -loglevel info -y -i "swimming.avi" -s 1920x1080 -r 50000/1000 -an -sn -f yuv4mpegpipe -strict experimental -pix_fmt yuv444p - | x265.exe --y4m --input-csp i444 --preset placebo --high-tier --crf 37 --ref 1 --bframes 0 --qcomp 1.00 --no-open-gop --no-psy-rd --no-psy-rdoq --no-info --limit-modes --limit-refs 3 --range full - -o "swimming.h265" Code:
y4m [info]: 1920x1080 fps 50/1 i444p8 unknown frame count raw [info]: output file: swimming.h265 x265 [info]: HEVC encoder version 1.8+188- x265 [info]: build info [Windows][GCC 5.2.0][64 bit] 8bit+10bit+12bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX x265 [info]: Main 4:4:4 profile, Level-4.1 (Main tier) x265 [info]: Thread pool created using 4 threads x265 [info]: frame threads / pool features : 2 / 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 / 4 inter / 4 intra x265 [info]: ME / range / subpel / merge : star / 92 / 5 / 5 x265 [info]: Keyframe min / max / scenecut : 25 / 250 / 40 x265 [info]: Lookahead / bframes / badapt : 60 / 0 / 2 x265 [info]: b-pyramid / weightp / weightb : 0 / 1 / 1 x265 [info]: References / ref-limit cu / depth : 1 / 1 / 1 x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1 x265 [info]: Rate Control / qCompress : CRF-37.0 / 1.00 x265 [info]: tools: rect amp limit-modes rd=6 rdoq=2 tskip signhide tmvp x265 [info]: tools: b-intra strong-intra-smoothing deblock sao BPG x265 v0.9.6 x265 v1.8.0.188 Summary: Codec X265 with the same parameters fell much worse. The colors and sharpness are not the same. The cause is unknown. Last edited by Jamaika; 10th January 2016 at 13:34. |
27th December 2015, 15:11 | #3050 | Link | |
/人 ◕ ‿‿ ◕ 人\
Join Date: May 2011
Location: Russia
Posts: 643
|
Quote:
Unknown? How about 3x lower bitrate? Last edited by vivan; 27th December 2015 at 15:13. |
|
27th December 2015, 15:55 | #3051 | Link |
x264 fan
Join Date: Feb 2011
Location: In the trap
Posts: 458
|
Hi,
Well I really don't know almost anything about HEVC ! I did some random search but I can't find anything clear...is it possible to encode in command line mode ? Can I recode a .264, .mkv, .avs script ? For example, with a .264, I tried that : Code:
x265.exe --preset placebo --sar 1:1 --profile main --level 5.1 --me 4 --subme 7 --merange 32 --bitrate 10000 --pass 1 -width 1920 --height 1080 -fps 24 rob.h264 -o rob_pass1.mkv x265.exe --preset placebo --sar 1:1 --profile main --level 5.1 --me 4 --subme 7 --merange 32 --bitrate 10000 --pass 2 -width 1920 --height 1080 -fps 24 rob.h264 -o rob_pass2.mkv pause I tried something like that one year ago and it seems it is still the same : it is requiered to set widt, height, fps and it doesn't work (apparently). Still can't something else than .yuv be encoded ? |
27th December 2015, 16:07 | #3052 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
x265 works just like x264 what comes to command line encoding.
In your example, the fps parameter needs two dashes so it should be --fps 24. But you don't need the parameter if the source and destination fps is the same. Also there's no width or height parameter, at least according to https://x265.readthedocs.org/en/default/index.html.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
27th December 2015, 16:13 | #3053 | Link | |
x264 fan
Join Date: Feb 2011
Location: In the trap
Posts: 458
|
Quote:
If I don't set anyone : Code:
x265 [error] : yuv : width, height, and FPS must be specified x265 [error] : unable to open input file <rob.64> |
|
27th December 2015, 16:16 | #3054 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
The parameter for width and height is "input-res"
https://x265.readthedocs.org/en/defa...ion--input-res
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
27th December 2015, 16:21 | #3055 | Link | |
x264 fan
Join Date: Feb 2011
Location: In the trap
Posts: 458
|
Quote:
Code:
x265.exe --preset placebo --sar 1:1 --profile main --level 5.1 --me 4 --subme 7 --merange 32 --bitrate 10000 --pass 1 --input-res 1920x1080 --fps 24 rob.h264 -o rob_pass1.mkv x265.exe --preset placebo --sar 1:1 --profile main --level 5.1 --me 4 --subme 7 --merange 32 --bitrate 10000 --pass 2 --input-res 1920x1080 --fps 24 rob.h264 -o rob_pass2.mkv pause |
|
27th December 2015, 19:38 | #3056 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,783
|
In general, x265 won't be able to read raw AVC (*.h264), and won't create MKV either. It won't contain libavcodec decoders and multiplexers (except you have a special patched build). Pure x265 builds will only read raw YUV (planar 4:2:0) or Y4M (YUV4MPEG, that's basically raw YUV with a very basic text line as header describing resolution, frame rate, and pixel format), not even AviSynth scripts are supported yet. Using a raw AVC bitstream as input may result in encoded noise because x265 will read it as if it were raw YUV.
To feed an AviSynth script decoding an encoded source format into x265, you can use e.g. avs4x26x. But it will still create only an elementary HEVC stream (except it's compiled with additional multiplexers like L-SMASH MP4). You will usually multiplex it afterwards into an MP4 using MP4Box or L-SMASH, or into an MKV using mkvmerge. Furthermore, do yourself (and your electricity bill) a favour and don't assume "--preset placebo" to be a sensible setup for x256. It's even more a waste of time than you may know from x264. Last edited by LigH; 27th December 2015 at 19:47. |
27th December 2015, 19:53 | #3057 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
|
Quote:
Still, it's not surprising; anything moving fast enough to need that much motion search would be so distorted by motion blur that a good match would be hard to find, and the remaining frequencies would be so low as to be easy to encode. It might take something without motion blur like 4K cel animation to really find good matches at the largest search ranges. I don't know if anyone has ever actually made any 4K cel animation to test that with, though. |
|
27th December 2015, 20:30 | #3058 | Link | |
x264 fan
Join Date: Feb 2011
Location: In the trap
Posts: 458
|
Quote:
Thanks for your answer. I was not planning to encode that anyway, I just gave a try to an old command line. From what you say, I understand it is not possible to encode anything properly with x265. What am I supposed to do then ? I extracted some of my BluRay of which video streams are AVC or VC-1. Imagine I want to reenode corresponding extracted .264/.h264 stream in HEVC. How can I proceed ? What strikes me is that I read a couple of things about Handbrake and similar *1-click* solutions. It seems you can really encode BluRay video stream with that (using x265). In my case, I don't want to use such things but rather command lines. Unfortunately, from what you say, it seems doing what I want is not possible (you talk about "encoded noise" (?)). I don't even talk about avisynth scripts. |
|
27th December 2015, 21:50 | #3059 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,783
|
No, at the moment, you won't be able to simply convert anything else than uncompressed YUV video with the single x265 encoder. But you may use ffmpeg including libx265 to convert a compressed source format, as it is able to decode it before feeding the decompressed result to the x265 encoder library inside ffmpeg, and even multiplex the result into a container. The command line with parameters will then be a little more complex. And it scratches the borders of this thread's topic...
The alternative may be to create an AviSynth script and pipe its output into the x265 encoder. Tools like MeGUI or StaxRip may help you doing so. Handbrake or Hybrid may be useful to support encoding with ffmpeg, I believe. |
27th December 2015, 22:05 | #3060 | Link | |
Registered User
Join Date: Feb 2015
Posts: 326
|
Quote:
You can start with this: Code:
ffmpeg -i rob.h264 -loglevel warning -f yuv4mpegpipe - | x265 --y4m - --preset fast --sar 1:1 --profile main --level 5.1 --subme 7 --merange 32 --bitrate 10000 --pass 1 -o NUL ffmpeg -i rob.h264 -loglevel warning -f yuv4mpegpipe - | x265 --y4m - --preset fast --sar 1:1 --profile main --level 5.1 --subme 7 --merange 32 --bitrate 10000 --pass 2 -o rob_pass2.hevc mkvmerge rob_pass2.hevc -o rob_pass2.mkv |
|
|
|