View Full Version : Hybrid: Input -> x264/x265/Xvid/VP8/VP9
Ajvar
13th March 2015, 11:39
Dear Selur, or anyone else. There is one strange behavior I can't seem to solve. I encoded source mov file using Hybrid into both x265 and x264 and both resulted files looked with different color range. I take source file and set Levels in ffdshow to 16-235 and see exactly what show encoded files.
Furthermore I went to Filtering, Postprocessing, checked autolevels>Full range and got crashed encoding error after sstarting job. What am I doing wrong? Do you need source file and encoded? Both encodings were with a preset settings and I almost didn't change anything else.
Also when I look at Avisynth preview it looks like on the encoded files. Is that artificial flag in the mov file? I just want it to be with less color lossy option, no matter what it is.
I found a BUG.
Lets say you go to Filtering>Avisynth>Line>Resize checkbox. Then you select Lancoz resize with default 4 tap. It is working fine. However if you change tap number to anything f.i. 3 then you will have error with Avisynth Preview because of Avisynth code: LanczosResize(taps=31280,720), where I asume coma (,) is missing between 3 and resolution.
Also if you select gauss Resize and change sharpness from default 30 then you will get the same error.
EDIT: Ha! I also found that if I add Toon filtering in Avisynth it will bring the exact color range as shows original. So I just added this as custom and that worked.
LoadPlugin("C:\Program Files\Hybrid\avisynthPlugins\aWarpSharp.dll")
LoadPlugin("C:\Program Files\Hybrid\avisynthPlugins\Toon-v1.1.dll")
# line darkening
Toon(Strength=0.00)
As you can see it practically does no filtering due to 0.00 strength but fo some reason it works. I also encoded that file in another program and it also gave resulted file with same color range but without custom scripts.
Selur
13th March 2015, 17:44
Furthermore I went to Filtering, Postprocessing, checked autolevels>Full range and got crashed encoding error after sstarting job. What am I doing wrong?
need a debug output (see support page for how to create one)
EDIT: Ha! I also found that if I add Toon filtering in Avisynth it will bring the exact color range as shows original. So I just added this as custom and that worked.
Can't really follow you, since a few avisynth lines basically say nothing on their own.
-> Settings + debug output + a sample to reproduce the problem are needed
Ajvar
14th March 2015, 09:47
need a debug output (see support page for how to create one)
Sure. Lets do it one by one.
First bug I think I found about modifying default resize options like sharpness for gaussian filter and taps number for Lanczos and other.
Here is a video. http://youtu.be/u6-v45zrlys
Attached log file of such happening with gaussian filter.
Selur
14th March 2015, 14:09
Will look at the video later attaching stuff here in the forum is a bad choice since I can only look at the content once a moderator has approved of the attachment, and by then I probably forgot about it. :)
-> see the problem will fix for next release.
Selur
15th March 2015, 10:00
if I add Toon filtering in Avisynth it will bring the exact color range as shows original.
That's strange since atm. Hybrid should always output tv-scale content yuv content is used.
Ajvar
16th March 2015, 13:08
That's strange since atm. Hybrid should always output tv-scale content yuv content is used.
Well as promised here are logfile and video sample files.
Original video: http://www.ex.ua/load/155742574
Encoded sample with juicy colors as original (Toon 0.000 aplied) http://www.ex.ua/load/155743319?fs_id=153
Encoded sample with duller colors than original http://www.ex.ua/load/155744220?fs_id=153
LOG FILE http://www.ex.ua/load/155742590?fs_id=153
I noticed that with full PC range video is bigger size with same CRF settings.
I also found that on some computers both video files look the same but that should be due to their decoder settings for sure.
Ideally I would prefer to keep full PC range even if it will be narrowed to TV while playing on some computers.
For comparison of captured frames please go here http://screenshotcomparison.com/comparison/116511
=================================================================================================
And about AutoLevels Bug.
Here is a debug log: http://www.ex.ua/load/156110209?fs_id=153
Selur
16th March 2015, 17:27
Thanks will look into it later today. :)
Selur
16th March 2015, 19:20
This will probably take a bit to fix, but I'm on it.
Ajvar
16th March 2015, 21:06
This will probably take a bit to fix, but I'm on it.
Cool, so bug exists. But are you on autolevels crash or encoded color range?:)
P.S. Don't forget to fix typos in x264 CRF explanation:
tying = trying
quanity = quality
and perhaps "who know the want" = "who want"
Selur
16th March 2015, 21:12
They are related. :)
Selur
22nd March 2015, 20:30
Hybrid rev 2015.03.22.1:
*added*
nvenc: support for NVEncC from rigaya (http://rigaya34589.blog135.fc2.com/)
audio: option to extract audio from DVD through DGIndex (this is only meant as a last resort since DGIndex doesn't understand DVD file structures)
output: option to use ffmpeg instead of MP4Box for muxing
*changed*
x265: added support for '--max-tu-size <32|16|8|4>'
x265: added support for '--min-cu-size <16|32|64>'
x265: removed '--threads X', and added basic support for '--pools XXXX'
x265: adjust presets to latest changes
cosmetics: audio speed stretch detection allows times as alternative to decimals now
cosmetics: moved shortcut overview to Config->Views
avisynth: autoadjust not using setmtmode 2 for more stability
*fixed*
cosmetics: separate log window (SHIFT+F11) wasn't updated
avisynth: fixed batch encoding and 'embed first' subtitle script creation problem
avisynth: fixed resizer options
jobs: fixed job loading bug
input: DVD aid mixup when language is empty.
Windows users should deinstall Hybrid and delete old jobs before installing the new version.
-> downloads: http://www.selur.de/downloads
Cu Selur
Patman
28th March 2015, 22:27
hi selur,
i've a problem with your latest version of hybrid. When i want to start hybrid a second time, it stucks at loading of nvencc app. First start after install is without any problem. Some specifications of my system: Intel Core i7-4790k, ATI R290. I don't need nvencc app. Please check this and fix it if it is possible.
Selur
28th March 2015, 22:52
Fixed it locally. Problem is that NVEncC freezes on system without NVIDIA cards. :(
workaround until I release a new version: delete NVEncC from your Hybrid folder.
lo1t3yu
29th March 2015, 08:46
What app uses (ffmpeg or mencoder) when selected 'Yadif - custom' deinterlacing preset? Ffmpeg and mencoder has own different yadif's filter.
Selur
29th March 2015, 08:50
Both mencoder and ffmpeg use the same yadif algorithm, using custom or not in Hybrid only allows to set some more of the available settings.
So whether mencoder or ffmpeg is used doesn't depend on the yadif settings, but on the source, the Hybrid settings and how Hybrid decides to act on those settings.
Ajvar
29th March 2015, 18:15
Good day! While trying x265 encode I noticed that whenever I choose any preset I see in a command line key --min-cu-size 16. Recently I got some bucket of troubles with a file and noticed that MediaInfo says this file is 1920x1088 instead of 1920x1080 as original. I checked x265 site (http://x265.readthedocs.org/en/latest/presets.html) and it says that only UltraFast preset uses min-cu-size 16 while all other use value 8.
Hybrid version is 2015.3.16.1 (which you gave for testing fixes).
Selur
29th March 2015, 18:32
minCuSize -> Yup, that's a bug.
Regarding the resolution, disabling "Config->Internals->Prefer Original->Resolution" might help
Ajvar
29th March 2015, 18:48
Regarding the resolution, disabling "Config->Internals->Prefer Original->Resolution" might help
Confirmed that if I manually set min-cu-size to 8x8 blocks then resolution (and everything else) goes back to normal.
Selur
6th April 2015, 19:26
Hybrid rev 2015.04.06.1:
*changed*
crop/resize: cosmetics change, crop width/height warning combobox was disabled
tools: check for nvidia cards before checking for tools and thus avoiding freezes due to NVEncC
x265: updated to latest presets
x265: enable pools&threads configuration
misc: allow setting of '-ao' and disabling '-fps=...' for preview
input: prefering LibAvSource over FFmpegSource when using avisynth for avi input
crop/resize: cosmetics change, crop width/height warning combobox was disabled
*fixed*
NVEncC: during vbr mode, --cbr was used
-> downloads: http://www.selur.de/downloads
Cu Selur
stax76
6th April 2015, 19:40
Nikos told me about the NVEncC freeze and reported it to rigaya who apparently already fixed it, do you have the latest NVEncC?
Selur
6th April 2015, 19:44
yes, latest release contains the latest NVEncC version and it also checks for NVIDIA cards before checking for NVEncC to avoid similar problems in the future.
stax76
6th April 2015, 20:41
How does the check work?
Selur
6th April 2015, 20:51
For the NVIDIA cards?
It's a pretty simple (and old, wrote it a few years ago) check for the registry key "HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Video" which collects all 'Device Description' entries and compares these descriptions against a list of cuda capable cards which I update from time to time.
(I once wrote a check by looking and trying to load specific dlls, but that turned out to be too much of a hassle with changing drivers.)
Ajvar
19th April 2015, 15:13
Dear Selur, I am not a designer but draw this button's pic out of your 2 for Play/Pause Job action. Because anytime I paused I always click Play button to resume instead of Pause button.
http://i.imgur.com/skSeEO1.png http://i.imgur.com/IJq822J.png
Selur
19th April 2015, 17:48
I'm no designer either, but I'll think about modifying the button image. (didn't know anybody was using the resume and pause functionality at all :))
How about this:
http://i57.tinypic.com/qp15j5.png
Ajvar
19th April 2015, 19:29
Better:) I liked mine more because it kinda slashed away some part from triangle and 2 lines http://i.imgur.com/IJq822J.png, but thanks!:)
I use this feature because I'm not a pro in this and encode only personal stuff on personal computer and HEVC is looong even on quad i7.
Ajvar
24th April 2015, 19:24
As I am a generator of ideas, here is another one.
When you hold a cursor you may see a help text but there are different places for holding a cursor: Actual text (name of feature) and value place (numbers).
Is it possible to make it so anytime you click Right Mouse Button somewhere then a help-text wil appear if you clicked at the right place? Instead of holding arrow.
Selur
24th April 2015, 19:29
In theory: yes
In praxis: will have to test a few thinks, because I would need to overwrite the right-click event of every elements,...
-> if it can't be done in a generic way it would be way to much effort, but I got an idea, which might work. ;)
Selur
24th April 2015, 19:46
btw. if you are struggling with reading the toolTips, I would encourage you to:
1. enable: Config->View->Design->Show tooltips
and
2. disable: Config->View->Design->Show tooltips
this way the tooltips will only be shown in the sidebar, where they don't disappear (unless you trigger another tooltip)
Ajvar
24th April 2015, 22:38
btw. if you are struggling with reading the toolTips, I would encourage you to:
1. enable: Config->View->Design->Show tooltips
and
I believe you forgot to add "sidebar" at #1 :)
Now I want to read tooltips very rarely but back in the days... sidebar is really useful, true.
You don't have to do all these stuff, I just noticed that right button does nothing in the GUI and that would be logic to show info on the right click, nothing else.
Selur
25th April 2015, 08:11
"pressing right mouse button -> tooltip" will be supported with the next release. (wasn't hard to implement since I already had implemented a global event filter to be able to disable tooltips. ;))
stax76
25th April 2015, 08:52
good feature
Hybrid rev 2015.05.01.1:
*added*
vp8/9: support for high bit-depth encoding (vp9+complex profile only)
vp8/9: support for 4:2:2 and 4:4:4 encoding
audio: normalize audio to XdB via sox
*fixed*
qsvencc: some small bugs regarding feature detection
nvencc: quantizer couldn't be set
nvencc: b-frames weren't enabled for h.265
audio: dts-hd -> stereo wav
audio: aften ac3 encoding
audio: fdkaac, use cbr only encoding.
avisynth: 'Decomb.dll' wasn't loaded for 'Decomb (Avisynth)'
avisynth: ffmpegsoure2 wasn't used
output: avi(fraps) -> avi(fraps) remux problem
*changed*
x265: added support for '--qg-size <int>'
x265: added support for '--qpstep <int>'
jobs: added 'postpone' as one of the popup selection choices
jobs: make columns rearrangeable
avisynth: added 'cropping' to the custom section placing
autocrop: set min width mult to 75% instead of 88%
analyse: don't run interlaced analysis on files with < 500 frames, to limit false positives
-> downloads: http://www.selur.de/downloads
Cu Selur
stax76
1st May 2015, 22:36
I asked rigaya about b-frames in nv h265 a few days ago, apparently it's not supported:
Codec: H.265/HEVC
Max Bframes 0
RC Modes 63
Field Encoding 0
MonoChrome 0
Quater-Pel MV 1
B Direct Mode 0
Max Temporal Layers 0
Hierarchial P Frames 0
Hierarchial B Frames 0
Max Level 62
Min Level 1
4:4:4 0
Max Width 4096
Max Height 4096
Dynamic Resolution Change 1
Dynamic Bitrate Change 1
Forced constant QP 1
Dynamic RC Mode Change 0
Subframe Readback 0
Constrained Encoding 1
Intra Refresh 1
Custom VBV Bufsize 1
Dynamic Slice Mode 1
Ref Pic Invalidiation 1
PreProcess 0
Async Encoding 0
Max MBs 65536
MAX MB per sec 983040
Lossless 0
got no card which support H.265 encoding, but when --check-features shows that it is supported Hybrid will allow to set it. :)
Music Fan
2nd May 2015, 08:51
The Windows Installer is not found on your website :confused:
fixed, accidentally an a space was inside the download link
Music Fan
2nd May 2015, 14:00
Thanks !
Music Fan
3rd May 2015, 17:14
Hi Selur,
the drag & drop does not work to open a mkv, is it normal ?
And I'd like to test lossless x264 encoding, how to do it with Hybrid ? I believe one has to put --keyint 1 and -qp 0 in the command line but I'm not sure.
Hi Selur,
And I'd like to test lossless x264 encoding, how to do it with Hybrid ? I believe one has to put --keyint 1 and -qp 0 in the command line but I'm not sure.
http://c2n.me/3h9HnA1.jpg
Dear Selur, if you go to x264 Profile, you will see 2 options "None".
@Ajvar: 2x'none' is fixed in 2015.05.01.1
@Music Fan:
the drag & drop does not work to open a mkv, is it normal ?
Works fine here. Can you create a debug output level 9? What OS are you using?
Music Fan
4th May 2015, 21:44
I have Win 7 64b, but it seems to work now :confused:
Thanks Ajvar, I believed I didn't have this setting but I realized I had first to chose "unrestricted", otherwise "constant quantizer" does not appear in the list, and "lossless" does not either.
Why can we still change the number of b-frames in lossless, I believed it only contained I-frames ?
And I'm also astonished x264 lossless is in 4:4:4, while Lagarith can be in 4:2:0 and it's lossless too :confused:
By the way, rev 2015.05.01.1 still shows 2015.04.25.1.
digitall.h
7th May 2015, 00:36
Hi Selur,
I upgraded my PC and reinstalled the operative system, now based on Debian Jessie 64bit.
I downloaded Hybrid Linux64bit Qt 4.8 v 2015.05.01.1 and installed most dependencies, then put path to tools in Hybrid and it showed correct versions.
PlayOnLinux is also installed and so is wine, that shows in tools information under Hybrid. But all dependencies installed are Linux dependencies and not Windows, so not wine used.
But
I loaded a Blu-Ray, and managed to extract subtitles, add audio tracks, crop video and preview cropping, adjust x264 settings, add matroska flags... Created a job, so long so good. But when I start the job it crashes.
In Hybrid log it shows that generated calls always include /usr/bin/wine... it tries to run dependencies as if they where windows and not Linux.
I don't have a simple Debug to send, just the one with various trial/error tests trying to solve the error. If it is needed I will generate one simpler.
By now I just wanted your help to know if I missed some switch in Config tab asking to use wine or windows dependencies under Linux, or if this is the expected Hybrid behaviour when wine is detected in the system.
Created a Debug (level 7...) and sent
Selur
10th May 2015, 21:08
Hybrid rev 2015.05.10.1:
*fixed*
general: wine problem, on non-Windows systems
input: a few bugs related to folder monitoring
-> downloads: http://www.selur.de/downloads
Cu Selur
Music Fan
10th May 2015, 23:41
Hi Selur,
can you answer this ?
Why can we still change the number of b-frames in lossless, I believed it only contained I-frames ?
And I'm also astonished x264 lossless is in 4:4:4, while Lagarith can be in 4:2:0 and it's lossless too :confused:
Selur
11th May 2015, 05:11
Why can we still change the number of b-frames in lossless, I believed it only contained I-frames ?
No clue where that believe does come from. But lossless doesn't always mean that there are only I/key-frames.
And I'm also astonished x264 lossless is in 4:4:4, while Lagarith can be in 4:2:0 and it's lossless too
a. 4:4:4 is a larger color space than 4:2:0, so you can save 4:2:0 lossless inside it (assuming you use the proper color matrix).
As a side note: saving 4:4:4 content with 4:2:0 on the other hand is not lossless.
b. Lowest level which supports lossless in H.264 is High 4:4:4 Predictive Profile, which does support 4:2:0/4:2:2/4:4:4 color coding, so no reason to stick with 4:4:4
-> x264 lossless doesn't have to be 4:4:4
digitall.h
11th May 2015, 08:30
In a fast test, the new Hybrid rev 2015.05.10.1 version solved for me the problem of Hybrid using wine under Linux.
I will make a whole encoding test soon to confirm.
A curious thing: the qt 4.8 executable shrunk from 22 MB to 8 MB
:)
EDIT: now completed a full encode from BluRay to x264, everything went perfect, as expected
As a side comment: are there any switches that make x264 take advantage of multicore/multithreading?, I think threads is probably set to auto (in final encode it shows 12 threads).
What would be faster while keeping quality in the final encode?.
Selur
12th May 2015, 20:48
A curious thing: the qt 4.8 executable shrunk from 22 MB to 8 MB
that's because I:
a. stripped the binary
b. ran upx over it :)
As a side comment: are there any switches that make x264 take advantage of multicore/multithreading?
Normally x264 uses multiple cores quite well unless in example the decoding is stalling.
-> What settings are you using?
digitall.h
15th May 2015, 00:34
My settings:
Decoding is done with a locally compiled ffmpeg version to include libbluray
:rolleyes:
Encoding with x264, crf mode, very slow preset, tune film
:cool:
Selur
15th May 2015, 05:07
Is your cpu maxed out during encoding?
If not, try if using a higher lookahead thread count ('x264->Rate Control->Rate Control Settings->Lookahead threads') helps.
If it is, try if lowering the -rc-lookahed ('x264->Rate Control->Rate Control Settings->Lookahead threads' from 60 to 40) helps.
You could also:
- use a lower sub pixel motion estimation precision ('x264->Motion Estimation->Motion Estimation Settings->Sub-pixel precision')
- use a faster preset (using 'very slow' and complaining that the speed is not so fast seems a bit 'schizophrenic'. ;))
- use a higher decoder thread count (Config->Internals->FFmpeg/MEncoder threads); this could have a positive or a negative impact on the speed ;)
Cu Selur
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.