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. |
15th February 2023, 21:25 | #9001 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
For now, i've been able in my mcf version, to "re-install" cmake, after compare the dependencies with the list of installed packages in mcf version, and after a dozen of missing dll and a dozen of more packages, to have the whole list of things to install... And build success with mcf.
__________________
My github. |
15th February 2023, 22:19 | #9002 | Link | |
Registered User
Join Date: Jul 2018
Posts: 450
|
Quote:
|
|
16th February 2023, 01:26 | #9003 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Thanks.
Any idea why this works: Code:
mkdir -p 10bit cd 10bit cmake -G "MSYS Makefiles" ../../../source -DENABLE_SHARED=OFF -DHIGH_BIT_DEPTH=ON -DENABLE_CLI=ON -DSTATIC_LINK_CRT=ON -DCMAKE_CXX_FLAGS_RELEASE="-static-libgcc -static-libstdc++ -static" make ${MAKEFLAGS} Code:
mkdir -p 8bit_x64 10bit_x64 12bit_x64 cd 12bit_x64 cmake -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON -DCMAKE_CXX_FLAGS_RELEASE="-static-libgcc -static-libstdc++ -static" make ${MAKEFLAGS} cp libx265.a ../8bit_x64/libx265_main12.a cd ../10bit_x64 cmake -G "MSYS Makefiles" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DCMAKE_CXX_FLAGS_RELEASE="-static-libgcc -static-libstdc++ -static" make ${MAKEFLAGS} cp libx265.a ../8bit_x64/libx265_main10.a cd ../8bit_x64 cmake -G "MSYS Makefiles" ../../../source -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DENABLE_CLI=ON -DENABLE_SHARED=OFF -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DSTATIC_LINK_CRT=ON -DCMAKE_CXX_FLAGS_RELEASE="-static-libgcc -static-libstdc++ -static" make ${MAKEFLAGS} # rename the 8bit library, then combine all three into libx265.a using GNU ar mv libx265.a libx265_main.a ar -M <<EOF CREATE libx265.a ADDLIB libx265_main.a ADDLIB libx265_main10.a ADDLIB libx265_main12.a SAVE END EOF Edit: Didn't check yet (lack of time, ended things at 1am) with msys2 gcc version instead of mcf.
__________________
My github. Last edited by jpsdr; 16th February 2023 at 11:16. |
16th February 2023, 12:37 | #9004 | Link | |
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
Quote:
Guess I had the wrong understanding of mode 5. I thought it is a mode of its own which behaves like one of the other modes depending on scenery, therefore constantly flagged as mode 5 throughout the entire stream. So it is more like a 'fictitious' mode which switches through the other modes depending on scenery and changing the mode flags accordingly? That still confuses me a little. Because in that case Mediainfo should never display aq-mode=5 for some files, no? |
|
16th February 2023, 13:22 | #9005 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
@LeXXuz
No, mode 5 is like the others, always flagged at 5, it's the aq-auto which changes the mode flags according scenery. When using aq-auto, the mode set in aq-mode became irrelevant. Otherwise, about building x265. Just tested with standard msys2 gcc, it seems that in multilib, despite the -DCMAKE_CXX_FLAGS_RELEASE, the library are not linked... I'll try to add -DCMAKE_EXE_LINKER_FLAGS at the last step, if it doesn't work, don't know what to try... Edit: Failed... Even when adding -DCMAKE_EXE_LINKER_FLAGS at the last step, the multilib build is not static. I take any advice...
__________________
My github. Last edited by jpsdr; 16th February 2023 at 13:52. |
16th February 2023, 14:15 | #9006 | 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... |
|
16th February 2023, 14:37 | #9007 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
So, the results of my strugles are :
The gcc version provided on www.msystem.waw.pl/x265 is a static build, thanks StvG tips using external cmake, i've been able to make a multilib build, and no needs to add static flags. This is the only gcc version i've been able to make a static multilib with. With the others gcc, i'm able to make a static build only on a single lib build. I took any tips to be able to make multilib with them two (the only i'm realy interested in is the mcf).
__________________
My github. |
16th February 2023, 14:48 | #9008 | Link | |
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
Quote:
|
|
16th February 2023, 15:55 | #9009 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
--sbrc used to be like --aq-auto is now. The x265 devs just accidentally pushed incorrect code as SBRC, which is a very different feature in the fixed code now available.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
16th February 2023, 19:31 | #9011 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Yeah... The clang build is twice faster than my gcc builds !
It seems that even if the default setting is "Release", i suspect the compiler options being... poor. It's not possible that this speed difference comes only because of the compiler...
__________________
My github. |
16th February 2023, 20:15 | #9013 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
No, it's not that...
I spend a lot of time reading the gcc optimize options, and i'll try rebuild adding a bunch of option... If it doesn't help, i'll stop wasting time and just provide clang_AVX2 build, period.
__________________
My github. |
16th February 2023, 21:02 | #9014 | Link | |
Registered User
Join Date: Jul 2018
Posts: 450
|
Quote:
|
|
17th February 2023, 09:50 | #9015 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
@StvG
Again, you save the day ! Otherwise, as i've said, after searching/reading docs on optimize command for gcc, i've added twice a dozen of options, rebuild with them, and finaly got a .exe that's as fast (almost, at less than 1%... ) than the clang build. Edit: Finaly, it didn't work, there is a loooot of lines begining with msys64/mingw64/bin/c++.exe, there is no -Bdynamic in it, and just one line with several -Wl. I've removed them, but when running make ${MAKEFLAGS} it fails with errors. The win32 thread version is working fine, i've been able to figure out the commands line to add to build a not slow exe, i'll stop here with gcc, as i have a working process. I'm now trying to find a process allowing me to make multilib with Visual Studio + llvm. Edit2: Been able to do multilib with VS.
__________________
My github. Last edited by jpsdr; 17th February 2023 at 14:33. |
17th February 2023, 15:53 | #9016 | Link | |
Registered User
Join Date: Jul 2018
Posts: 450
|
Quote:
https://i.slow.pics/WoKl4fIq.png https://i.slow.pics/sUg1ju0r.png |
|
18th February 2023, 07:44 | #9019 | Link |
Registered User
Join Date: Feb 2007
Location: Sweden
Posts: 483
|
x265 v3.5+93
Built on February 18, 2023, GCC 12.2.0 DL : https://www.mediafire.com/file/2nwbzkhcmwiplv3 |
18th February 2023, 12:00 | #9020 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,316
|
Seriously...! A new version just right now after all my strugles...
They made it on purpose, just after i put my build i spend all this time on... Have to wait a little time unfortunately for a new build.
__________________
My github. |
|
|