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. |
2nd August 2015, 08:02 | #2601 | Link | |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
|
Quote:
Or maybe sh.exe does not even support codepage configuration at all, and I should try to prefer mintty instead? Last edited by LigH; 2nd August 2015 at 08:07. |
|
2nd August 2015, 21:43 | #2602 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
Please excuse me if someone has mentioned this before.
In x264-10bit, the CRF value actually results in average qp near CRF+12 to maintain similar visual quality. For example, CRF 20 on 10 bits encoding actually results CRF "32". In x265 high bit depth encoding, have we already applied the same mechanism? Or should we manually adjust the CRF value to ~+12 on 10 bits or even more on 12 bits to get a similar visual quality level? |
3rd August 2015, 02:29 | #2603 | Link | |
Registered User
Join Date: Mar 2012
Posts: 3
|
Quote:
The banding problem could be solved if I added grain manually but then it'll require even more bitrate than the x264 version just to cover the flaws. If that's the case, might as well stick to x264. x265 also has some discoloration errors here and there that cause color splots where as on x264 it'll be uniform. Last edited by ARRYMatie; 3rd August 2015 at 03:08. |
|
3rd August 2015, 07:44 | #2604 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
|
|
3rd August 2015, 07:48 | #2605 | Link | |
Registered User
Join Date: Aug 2006
Posts: 2,229
|
Quote:
The encode can only be ever as good as the input to the encoder. If the input has banding, the encoder will actually encode that banding as information which is why you see it in the output file. |
|
3rd August 2015, 12:48 | #2606 | Link | |
Registered User
Join Date: Nov 2012
Posts: 218
|
Quote:
1. The internal ffmpeg decoder decodes 10bit HEVC and then convert it to 8bit output 2. EVR render converts that to RGB under 8bit precision 3. Video card then "enhance" the video once again in poor precision. AMD products enable this by default. |
|
3rd August 2015, 15:35 | #2607 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
|
Just compared my last builds with brief benchmarks (best of 3, foreman.y4m in PAL CIF) on a legacy CPU (AMD Phenom-II X4, max. used SIMD = SSE2); for slow preset, I got a relation of ~5.0 fps (GCC 4.9.2) : ~5.5 fps (GCC 5.2.0), that should be significant.
|
3rd August 2015, 16:17 | #2608 | Link | |
Registered User
Join Date: Oct 2014
Posts: 268
|
Quote:
So I'm thinking that your shell is outputting the correct codes for Umlauts and stuff, but Windows is just forcing the console window to something ancient (or the font that is used to display the console isn't an unicode-compatible font, stuff like that). |
|
3rd August 2015, 18:28 | #2609 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
The way this tends to work on Windows is that you're *not* dealing with the actual Bourne shell (or bash, or dash, etc.), but with (ba|da)sh running under cmd.exe. And even forcing it into UTF-8 with chcp 65001 before launching sh doesn't seem to really do anything, as far as I can recall.
If, however, you're using mintty (MSys2 does this) as the host for the shell, then you can just change the codepage to whatever you want in the Options dialog. Although I don't necessarily know how this reacts on other OS codepage settings, but mintty is set on en.US and UTF-8 and it correctly prints eszett and umlauted characters just fine (and o with stroke, and ñ, and thorn, etc.). Not that I think the en.US part is doing anything, that's simply because I am under the English OS codepage here. I'm sure that it's simply because mintty actually does honor the UTF-8 setting. Last edited by qyot27; 3rd August 2015 at 18:33. |
3rd August 2015, 21:33 | #2610 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
|
I switched to mintty as shell by calling "msys.bat --mintty"; this is a quite advanced shell window application and supports locales and codepages (and Windows CP1252 is the correct one here). No need to try to force sh-in-cmd into something possibly not really supported.
|
3rd August 2015, 21:55 | #2611 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Getting Unicode (UTF-8) strings to show up properly in a Console window on the Windows platform can be quite challenging
First of all, you have to avoid the the stdio-layer of the C-Runtime mangles your UTF-8 strings. This is going to happen by default! With Visual C++, you have to use the non-standard _setmode() function, with _O_U8TEXT or _O_BINARY flag, so that your strings get passed though undistorted. Not sure about MinGW. But you can always skip the stdio-layer altogether and use Win32 API functions, like WriteConsole(), directly. This avoids one source of string distortion. But even if you manage that your UTF-8 string actually arrives at the Console undistorted, you still have to ensure the Console will interpret it correctly. You have to call SetConsoleOutputCP() with CP_UTF8. Last but not least, the default Console font on Windows (called "Consolas") is not Unicode-aware! You explicitly have to change the font to "Lucidia Console" to make things works. Not sure the font issue can be solved pragmatically. Maybe with some Registry hack...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 3rd August 2015 at 22:01. |
4th August 2015, 08:00 | #2612 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
|
So I guess mintty does a conversion here. The required changes are minimal, the result is satisfying, and on top I get some fancy gadgets (e.g. a translucent plain or even the "Aero Glass" blurry background).
|
4th August 2015, 09:26 | #2613 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
|
|
7th August 2015, 12:05 | #2615 | Link | |||
Registered User
Join Date: Oct 2013
Posts: 41
|
mingw-w64 4.0.4 is out. AFAIK this problem is not fixed. am i right? =(
Quote:
I dont use 7-zip because its not bundled with windows. Maybe i will automatically build 10 and 12 bit binaries too soon or will manage to build the multilib pe file. //edit: 10-bit and 12-bit binaries are now build automatically too (for x86-64) Quote:
Quote:
__________________
encoder.pw buildbot is NOT affiliated with, endorsed, or sponsored by the x265 development team, MultiCoreWare Inc, Xiph.Org Foundation nor VideoLAN organization. Last edited by x265.cc; 7th August 2015 at 14:29. |
|||
7th August 2015, 16:48 | #2616 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Quote:
Code:
Dependency: x265 ================ # Any options with [] around them are optional cd ~/mpv-build-deps # Supporting both 8bit and higher bit depths requires an out-of-tree build: mkdir -p x265-build/12bit x265-build/10bit x265-build/8bit cd x265-build hg clone https://bitbucket.org/multicoreware/x265 # Build 12-bit: cd 12bit cmake ../x265/source -G "Ninja" -DCMAKE_INSTALL_PREFIX="$HOME/x265_build/x265-12bit" \ -DCMAKE_TOOLCHAIN_FILE="/usr/i686-w64-mingw32/toolchain-i686-w64-mingw32.cmake" \ -DCMAKE_CXX_FLAGS="-mfpmath=sse -march=pentium3 -msse -mtune=pentium3" \ -DHIGH_BIT_DEPTH:bool=on -DMAIN12:bool=on -DENABLE_SHARED:bool=off \ -DENABLE_ASSEMBLY:bool=off -DEXPORT_C_API:bool=off -DENABLE_CLI:bool=off [-DWINXP_SUPPORT:bool=on] ninja sudo checkinstall --pkgname=x265-main12-mingw --pkgversion="$(grep X265_VERSION \ build.ninja | sed 's/X265_VERSION=/\t/' | cut -f2 | sed 's/ /\t/g' | cut -f1)-$(date \ --rfc-3339=date | sed 's/-//g')-hg" --backup=no --deldoc=yes --delspec=yes \ --deldesc=yes --strip=yes --fstrans=no --default cp libx265.a /usr/i686-w64-mingw32/lib/libx265_main12.a # Build 10-bit: cd 10bit cmake ../x265/source -G "Ninja" -DCMAKE_INSTALL_PREFIX="$HOME/x265_build/x265-10bit" \ -DCMAKE_TOOLCHAIN_FILE="/usr/i686-w64-mingw32/toolchain-i686-w64-mingw32.cmake" \ -DCMAKE_CXX_FLAGS="-mfpmath=sse -march=pentium3 -msse -mtune=pentium3" \ -DHIGH_BIT_DEPTH:bool=on -DENABLE_SHARED:bool=off -DENABLE_ASSEMBLY:bool=off \ -DEXPORT_C_API:bool=off -DENABLE_CLI:bool=off [-DWINXP_SUPPORT:bool=on] ninja sudo checkinstall --pkgname=x265-main10-mingw --pkgversion="$(grep X265_VERSION \ build.ninja | sed 's/X265_VERSION=/\t/' | cut -f2 | sed 's/ /\t/g' | cut -f1)-$(date \ --rfc-3339=date | sed 's/-//g')-hg" --backup=no --deldoc=yes --delspec=yes \ --deldesc=yes --strip=yes --fstrans=no --default cp libx265.a /usr/i686-w64-mingw32/lib/libx265_main10.a # Only the .a files from 12-bit and 10-bit are installed to the system, # to reduce the chances of conflicts. # Build 8-bit: cd ../8bit cmake ../x265/source -G "Ninja" -DCMAKE_INSTALL_PREFIX="/usr/i686-w64-mingw32" \ -DCMAKE_TOOLCHAIN_FILE="/usr/i686-w64-mingw32/toolchain-i686-w64-mingw32.cmake" \ -DCMAKE_CXX_FLAGS="-mfpmath=sse -march=pentium3 -msse -mtune=pentium3" \ -DENABLE_SHARED:bool=off -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT:bool=on -DLINKED_12BIT:bool=on \ -DEXTRA_LIB="/usr/i686-w64-mingw32/lib/libx265_main10.a;/usr/i686-w64-mingw32/lib/libx265_main12.a" \ [-DWINXP_SUPPORT:bool=on] ninja sed -i 's/lx265/lx265 -lx265_main10 -lx265_main12/' x265.pc sudo checkinstall --pkgname=x265-mingw --pkgversion="$(grep X265_VERSION \ build.ninja | sed 's/X265_VERSION=/\t/' | cut -f2 | sed 's/ /\t/g' | cut -f1)-$(date \ --rfc-3339=date | sed 's/-//g')-hg" --backup=no --deldoc=yes --delspec=yes \ --deldesc=yes --strip=yes --fstrans=no --default ninja install # 32-bit builds with HIGH_BIT_DEPTH enabled also require the use of # -DENABLE_ASSEMBLY:bool=off. # Enabling Windows XP support now requires using the -DWINXP_SUPPORT:bool=on # option, because the API default is now Win7. Also, you'll notice some of that stuff is very specific to my own environment (32-bit, PIII compiler opts, XP support), so adapt as needed. |
|
7th August 2015, 17:25 | #2617 | Link | |
Registered User
Join Date: Feb 2015
Posts: 326
|
Quote:
Code:
Personally, I think the patch is nearly OK, but the lock/unlock functions should go into its own files, not something hard to correct. Kai, anything? |
|
7th August 2015, 19:21 | #2619 | Link | |
Registered User
Join Date: Feb 2015
Posts: 326
|
Quote:
But for this options: Code:
--no-asm --preset slower --crf 17.5 --rdoq-level 1 --deblock -1 -f 200 1920x800-hob.y4m w.hevc 32-bit versions of 10-bit x265 are without asm, so I assumed that vs2015 builds could be disqualified due to 107% rule. I will make speed test and take a look at real numbers. |
|
|
|