[System Environment]
Windows : Windows 10 Home x64 19042.746
CPU : Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz
Hi,
I deployed the most recent release x265-x64-v3.4+55-aMod-gcc10.2.1+opt.7z
(x265-x64-v3.4+55-aMod-gcc10.2.1.exe
) to be called from StaxRip 2.1.7.1 Beta, and I encounter the following error message at the end of encoding.
------------------------ Error Video encoding ------------------------
Video encoding returned error exit code: -1073740940 (0xC0000374)
It's unclear what the exit code means, in case it's a COM error then it possibly means:
HRESULT where exception occurred: 0xC0000374
The command was as follows (with [...] being the abbreviation for the path):
[...]\x265.exe --crf 18 --output-depth 10 --hist-threshold 0.01 --output [...]\test_1audio_new_out.hevc [...]\test_1audio_new.vpy
(x265
took vpy as a direct input.)
And the vpy
file was as follows:
import os, sys
import vapoursynth as vs
core = vs.get_core()
sys.path.append(r"[...]\VS\Scripts")
core.std.LoadPlugin(r"[...]\ffms2.dll", altsearchpath=True)
clip = core.ffms2.Source(r"[...]\test_1audio.mkv", cachefile=r"[...]\test_1audio_temp\temp.ffindex")
clip.set_output()
During the whole process, I couldn't observe any memory leak (albeit casually).
What could be the cause?
(BTW, can you please support 8-bit and 12-bit encoding as well? ๐)
ADDED:
- I ran the same command on CMD, but
hevc
itself encodes successfully.
- For comparison, I called @Patman86's most recent
x265
build x265M-test_seek_avs_and_vpy.zip
from within StaxRip 2.1.7.1 Beta, and had no problems unlike your build.
Well, is this an issue with StaxRip? Since I don't have in-depth knowledge regarding this matter, I can't figure out. Can you please take a look?
Update:
I think I figured out the cause: it was UPXing. (ver 3.96)
I tried un-UPXing x265-x64-v3.4+55-aMod-gcc10.2.1.exe
and the problem is gone.
But if I re-UPX it, the same error occurs in StaxRip.
Is issuing different exit codes (uncompressed vs UPXed) normal usually?
If so, maybe this is to taken care of by StaxRip.
But considering that StaxRip has not experienced this kind of issues so far with UPXed binaries (your previous binaries and @Patman86's many binaries including the above mentioned x265
in x265M-test_seek_avs_and_vpy.zip
, ffmpeg, MP4Box, aomenc, etc.) I'm pretty much suspicious that there's something with x265-x64-v3.4+55-aMod-gcc10.2.1.exe
.