Error when starting encode
Hi,
i compiled x265 3.3+... from the master-branch and get these error, if i start to encode.
#!
avs2pipemod[info]: writing 2184 frames of 24000/1001 fps, 720x400,
sar 0:0, YUV-420-planar-8bit progressive video.
y4m [info]: 720x400 fps 24000/1001 i420p8 unknown frame count
raw [info]: output file: G:\Movie\x264\test\00009_temp\00009_out.hevc
x265 [info]: HEVC encoder version 3.3+17-gdf2ac512d
x265 [info]: build info [Windows][GCC 10.0.1][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [error]: internalBitDepth must match compiled bit depth
x265 [error]: x265_encoder_open() failed for Enc,
x265 [error]: Failure generating stream headers 0
avs2pipemod[info]: finished, wrote 1 frames [0%].
avs2pipemod[info]: total elapsed time is 0.042 sec.
avs2pipemod[error]: only wrote 1 of 2184 frames.
I compiled same version with VS2019 and get the same error. That happend with all of my multilib builds. Have a look here. I think it is since commit 429d33f
Comments (20)
-
-
-
assigned issue to
-
assigned issue to
-
@Patman86 - Could you please checkout to 3.3+17-df2ac512d in x265_git and test? It has the fix for the build errors.
-
See first post, compiling the x265-3.3+17 works, but the compiled multilib exe can't used, there is an error with the encoder, the headers and the bit depth. I got same result with Msvc, gcc 9.3.0 or gcc 10.0.1.
-
Do you observe this encode error even with standalone x265 exe? I just tested the multilib builds with standalone x265 application and the integration with FFMpeg. Both work fine for me.
-
Now I have tested a lot, but it is not possible to create a Multilib x265.exe with all bit depths working. When I build a standalone for 12bit, 10bit and 8bit, each of these exe files works as it should. But when I build a Multilib x265.exe, only the 8-bit depth works correctly. The other two Bitdepht's show me the error in post 1. I think it’s a linking problem or a little bug in abrEncApp.cpp.
-
I double-checked this on 3.3+18- 8b61ca0ca. Multilib x265.exe works perfectly for all 3 input-depths. Can you share your build steps for us to reproduce the issue? I hope you are using multilib.sh.
-
This is really strange. I used the multilib.sh file from the msys folder or the customized multilib.bat file from the vc15-x86_64 folder. The adjustments made here are only in relation to Visual Studio 16. The processes for creating the exe file work smoothly. Nor am I the only one who has this problem. Other people in the Doom9 forum also have this problem. I then generated the building process via the CMake GUI and started building, again with the error message of the exe file. Then I built a static version, still the error message. Till version 3.3+15 there are no problems with the exe file. Here are my compiling logs: GCC log and MSVC log
-
Thanks for the details, @Patman86 . I could reproduce the issue now. My bad! I was testing it with incorrect CLI. I’ll get back here with the fix ASAP.
-
@Patman86 - Please give this fix patch a spin and let us know if it works as expected.
-
Hey Aruna, the fix works as expected, great!!!
-
- changed status to resolved
app: Fix encode errors with multi-lib builds.
Enables the application to use the correct version of API based on the internal bit-depth specified run-time.
Fixes issue
#539→ <<cset 6bb2d88029c2>>
-
Don't forget to apply this fix to x265_git too.
-
Done.
-
There is a new problem now:
x265 “freezes” after encoding the last frame of a sequence.
More info: https://forum.doom9.org/showthread.php?p=1907179#post1907179 -
@Marsia Mariner - Could you please share the full command and build configuration?
-
The problems have occurred since the addition of the abrEncApp.cpp file and the associated adjustments. Issue #541 targets the same problem. You can get more infos via the link from @Marsia Mariner
-
@Marsia Mariner Could you please check if this patch is fixing the issue?
-
@Aruna Matheswaran the patch works as expected!
-
Thanks for the confirmation @Patman86
- Log in to comment
Now, i’m registered. The mentioned issue above is from me. I compiled x265-3.3+15 from x265_git with GCC and VS2019 and that Versions works. When i would like to compile x265-3.3-16 from x265_git i’ve got an error during compiling. I’ve set checkout at this commit from source. Error log: