Log in

View Full Version : StaxRip 2.0 Support Thread


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 [45] 46

-QfG-
12th October 2020, 19:06
Hi stax, is there any chance to add DNxHR Intermediate Output in the FFMPEG section by Encoders? You can delete the "ProRes" button, "DNxHR" is the newer Intermediate Codec.

Here the inputs for DNxHR:

-c:v dnxhd -profile:v dnxhr_lb //Low Bandwidth. 8-bit 4:2:2 (yuv422p). Offline Quality.
-c:v dnxhd -profile:v dnxhr_sq //Standard Quality. 8-bit 4:2:2 (yuv422p). Suitable for delivery format.
-c:v dnxhd -profile:v dnxhr_hq //High Quality. 8-bit 4:2:2 (yuv422p)
-c:v dnxhd -profile:v dnxhr_hqx //High Quality. 10-bit 4:2:2 (yuv422p10le). UHD/4K Broadcast-quality delivery.
-c:v dnxhd -profile:v dnxhr_444 //Finishing Quality. 10-bit 4:4:4 (yuv444p10le). Cinema-quality delivery.

I don't know if i can add that himself, if anyone has an idea, how i can add this, please tell it me.

I can't encode directly via FFMPEG, because i need some Avisynth Tweaks (Inverse Telecine)

Greetings

jlw_4049
12th October 2020, 19:15
Hi stax, is there any chance to add DNxHR Intermediate Output in the FFMPEG section by Encoders? You can delete the "ProRes" button, "DNxHR" is the newer Intermediate Codec.



Here the inputs for DNxHR:



-c:v dnxhr_lb //Low Bandwidth. 8-bit 4:2:2 (yuv422p). Offline Quality.

-c:v dnxhr_sq //Standard Quality. 8-bit 4:2:2 (yuv422p). Suitable for delivery format.

-c:v dnxhr_hq //High Quality. 8-bit 4:2:2 (yuv422p)

-c:v dnxhr_hqx //High Quality. 10-bit 4:2:2 (yuv422p10le). UHD/4K Broadcast-quality delivery.

-c:v dnxhr_444 //Finishing Quality. 10-bit 4:4:4 (yuv444p10le). Cinema-quality delivery.



I don't know if i can add that himself, if anyone has an idea, how i can add this, please tell it me.



I can't encode directly via FFMPEG, because i need some Avisynth Tweaks (Inverse Telecine)



GreetingsI would suggest putting this on the tracker on github for a faster response

Sent from my SM-G986U1 using Tapatalk

-QfG-
12th October 2020, 19:31
Thx. Oh i see this is the wrong thread here, sorry.

jlw_4049
12th October 2020, 19:48
Thx. Oh i see this is the wrong thread here, sorry.Not the wrong thread, however he will look at and respond to the github issue tracker faster

Sent from my SM-G986U1 using Tapatalk

stax76
12th October 2020, 20:07
Currently, I pause 3-6 months. I try to get more people interested maintaining it.

hevron
13th October 2020, 01:08
I greet everyone. StaxRip-x64-2.1.4.8-Beta.
QVBR (Quality Variable bitrate using bitrate) preset for Intel H.264 does not work. This has been observed in all recent beta. Whatever high bitrate I set, the program switches to QVBR-Q (Quality Variable bitrate using quality - 23). If necessary, I will indicate the exact parameters of my files.
Also, another presets for Intel H.264: LA (VBR Lookahead), LA HRD does not work for me. If earlier it was possible to set the maximum Lookahead Depth - 100, now the launch with any settings ends in a crash: Failed to initialize encoder. : invalid video parameters. QSVEncC.exe finished with error! :confused:
Please pay attention to these problems. thanks

-QfG-
17th October 2020, 09:37
Updates for following AVS Filter available:

TDeint v1.7
TIVTC v1.22

https://github.com/pinterf/TIVTC/releases/tag/v1.0.22b

L E G E N D
17th October 2020, 16:01
Hi, i would like to ask for some help.

the story is that i'm trying to encode an avisynth filtered video script with NVEnc h265 in StaxRip,
i use a lot of filters to do that, as shown in script below.

i choose NVEnc to accelerate the process, because the avisynth script contains a lot of filters.

usually encoding with x264/x265 CPU costs a lot of time, then eventualy i assume using NVEnc might get the fps higher ^^

so since i'm in x64 env, i installed avisynth+ for both version 64 and 32, and added the plugins to right places,
everything works fine, i get the video preview in AVSPmod just OK.

the problem is when i start to encode the video, the fps is just the same as when i use only cpu to encode,
the GPU does nothing to speed-up the thing. i used MP_PIPELINE to create a process for each filter with max memory set to 1024 Mb,
and still i get: gpu 3% and VE 9% and fps 24 (maximum). I kept monitoring the process of MP_pipeline and noticed that cpu actes only without the gpu.

my question: is there anything to do to help accelerate the encoding of avisynth scripts with NVEnc h265/h264 ? or am i missing something??

i'll leave more details down below:

Windows 10 Pro(x64) (Build 18362)
StaxRip v2.0.8.0 Stable
NVEnc v4.68
AVSPmod V2.6.1.1 x64 and x32
MicrosoftVC++ Redistributable 2005->2019 x64 & x32
NVidia Driver v441.08

Encoder settings:

--vbrhq 2048 --codec h265 --preset quality --profile main10 --tier high --level 5.1 --output-depth 10 --aq --bframes 6 --ref 16 --gop-len 600
--lookahead 32 --strict-gop --nonrefp --cu-max 32 --cuda-schedule auto --colormatrix bt709 --colorprim bt709 --transfer bt709
--vpp-edgelevel strength=10,threshold=15,black=5,white=2 --mv-precision full-pel --cabac



Max B frames are 0 frames.
NVEncC (x64) 4.68 (r1402) by rigaya, Mar 7 2020 13:54:44 (VC 1916/Win/avx2)
OS Version Windows 10 x64 (18362)
CPU Intel Core i7-8550U @ 1.80GHz [TB: 2.59GHz] (4C/8T)
GPU #0: GeForce GTX 1050 (640 cores, 1493 MHz)[PCIe3x16][441.08]
NVENC / CUDA NVENC API 9.1, CUDA 10.2, schedule mode: auto
Input Buffers CUDA, 41 frames
Input Info Avisynth+ 2.60(yv12)->nv12 [AVX2], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
cspconv(nv12 -> yv12(16bit))
edgelevel: strength 10.0, threshold 15.0, black 5.0, white 2.0
cspconv(yv12(16bit) -> p010)
Output Info H.265/HEVC main10 @ Level 5.1
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control VBRHQ
Bitrate 2048 kbps (Max: 153600 kbps)
Target Quality auto
Initial QP I:20 P:23 B:25
VBV buf size auto
Lookahead on, 32 frames, Adaptive I, B Insert
GOP length 600 frames
B frames 0 frames [ref mode: disabled]
Ref frames 16 frames
AQ on
CU max / min 32 / auto
VUI matrix:bt709,colorprim:bt709,transfer:bt709
Others mv:full-pel nonrefp


Script i'm trying to encode


MP_Pipeline("""
### platform: win64
FFmpegSource2("C:\Users\LEGEND\Desktop\Filter\File.mkv", width=1280, height=720, resizer="BICUBIC", colorspace="YV12")


### ###
### platform: win32
SetMemoryMax(1024)
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\eDeen.dll")

eDeen(r=2, ty=14, tuv=21, ly=7, luv=10, hqc=true)

### prefetch: 32, 16
### ###
### platform: win32
SetMemoryMax(1024)
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\Deen.dll")
Deen(mode="a2d", rad=2, thrY=14, thrUV=16, min=0.5)

### prefetch: 32, 16
### ###
### platform: win32
SetMemoryMax(1024)
Sharpen(0.20)


### prefetch: 32, 16
### ###
### platform: win32
SetMemoryMax(1024)
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\aWarpSharp2.dll")
aWarpSharp2(depth=20)

### prefetch: 32, 16
### ###
### platform: win32
SetMemoryMax(1024)
LoadPlugin("C:\Program Files (x86)\AviSynth+\plugins\MSharpen.dll")
msharpen(threshold=10, strength=70,mask=false, highq=true)

### prefetch: 32, 16
### ###
### platform: win32
SetMemoryMax(1024)
FastLineDarken(strength=100, luma_cap=191, threshold=4, thinning=24)

### prefetch: 32, 16
### ###
### platform: win32
SetMemoryMax(1024)
Trim(18200, 25900)

### prefetch: 32, 16
### ###
""")


tell me if you need more details. and please reply if you have something to tell me. Thanks in advance.

44vince44
18th October 2020, 06:00
@Legend, you need to monitor the CPU usage, to know what's happening.

I bet the CPU usage is low. Meaning, you're not taking advantage of the CPU speed for some reason. This reason could be that one or more of the AVisynth plugins is not working in multi-cpu mode.
To force multi-cpu, you have to put at the end of your script, only once:
Prefetch(4)

4 being here the number of CPU logical cores. You can set it up to 8 on your i7 setup.
Try that and it should solve your problem.


Note: I'm not sure that SetMemoryMax(1024) is required here...

L E G E N D
18th October 2020, 18:45
@Legend, you need to monitor the CPU usage, to know what's happening.

I bet the CPU usage is low. Meaning, you're not taking advantage of the CPU speed for some reason. This reason could be that one or more of the AVisynth plugins is not working in multi-cpu mode.
To force multi-cpu, you have to put at the end of your script, only once:
Prefetch(4)

4 being here the number of CPU logical cores. You can set it up to 8 on your i7 setup.
Try that and it should solve your problem.


Note: I'm not sure that SetMemoryMax(1024) is required here...

First of all, thanks to responding ^^

you bet right, the CPU usage is 48~58 %. I don't know much about the Avisynth Plugins/Scripts Multi-core/Multithread support.
I kept monitoring the Mp_pipeline processes, they don't use much memory nor GPU. i tried removing the lines of setting max memory
from the script, and set Prefetch(8) in the end, but the NVENC behaves the same, CPU usage don't exceed 60 % and GPU is at 3% usage 9% VE.

My thought is that mp_pipeline is written in C, not CUDA, hence, it doesn't make the child processes of each filter profit from the GPU as it should be
in this case. so maybe there's no point in using NVENC when no GPU resources are not being exploited.

maybe the solution is to use Vapoursynth.

https://i.imgur.com/5iMWl8K.jpg

real.finder
19th October 2020, 23:22
@l e g e n d


MP_Pipeline("""
### platform: win64
FFmpegSource2("", width=1280, height=720, resizer="BICUBIC", colorspace="YV12")

### prefetch: 32, 16
### ###
### platform: win32
SetFilterMTMode("eDeen", 2)
SetFilterMTMode("Deen", 2)
eDeen(r=2, ty=14, tuv=21, ly=7, luv=10, hqc=true)
Deen(mode="a2d", rad=2, thrY=14, thrUV=16, min=0.5)
prefetch(8)
### prefetch: 20, 10
### ###
### platform: win64
Sharpen(0.20)

aWarpSharp2(depth=20)

msharpen(threshold=10, strength=70,mask=false, highq=true)

FastLineDarken(strength=100, luma_cap=191, threshold=4, thinning=24)

Trim(18200, 25900)
prefetch(8)
### prefetch: 10, 5
### ###
""")


this give me 60fps

L E G E N D
20th October 2020, 01:27
@l e g e n d


MP_Pipeline("""
### platform: win64
FFmpegSource2("", width=1280, height=720, resizer="BICUBIC", colorspace="YV12")

### prefetch: 32, 16
### ###
### platform: win32
SetFilterMTMode("eDeen", 2)
SetFilterMTMode("Deen", 2)
eDeen(r=2, ty=14, tuv=21, ly=7, luv=10, hqc=true)
Deen(mode="a2d", rad=2, thrY=14, thrUV=16, min=0.5)
prefetch(8)
### prefetch: 20, 10
### ###
### platform: win64
Sharpen(0.20)

aWarpSharp2(depth=20)

msharpen(threshold=10, strength=70,mask=false, highq=true)

FastLineDarken(strength=100, luma_cap=191, threshold=4, thinning=24)

Trim(18200, 25900)
prefetch(8)
### prefetch: 10, 5
### ###
""")


this give me 60fps


Thank you real.finder i tried the script above and got 100% CPU usage, performance jumped to 43 fps.
also there are some artifacts that show up periodically. i'll leave two pictures for comparison. anyway THANK YOU ^^.


original:
https://i.imgur.com/xEcnSRv.png

artifacts:
https://i.imgur.com/VHaYEqV.png
[/SPOILER]

real.finder
20th October 2020, 11:14
you can replace the old FastLineDarken with FastLineDarkenMOD4 for more speed and stability

yes that come from edeen, that why I hate using close sources plugins! you can't do anything about it, except change SetFilterMTMode("eDeen", 2) to SetFilterMTMode("eDeen", 3) or remove prefetch(8) from the block that has eDeen and in both cases you may get back to old speed (eDeen will be a Bottle neck)

edit: also you can replace
SetFilterMTMode("eDeen", 2)
SetFilterMTMode("Deen", 2)
eDeen(r=2, ty=14, tuv=21, ly=7, luv=10, hqc=true)
Deen(mode="a2d", rad=2, thrY=14, thrUV=16, min=0.5)
prefetch(8)
### prefetch: 20, 10
with
eDeen(r=2, ty=14, tuv=21, ly=7, luv=10, hqc=true)
Deen(mode="a2d", rad=2, thrY=14, thrUV=16, min=0.5)
### branch: 4
### prefetch: 20, 10
which give a faster speed (not same as prefetch(8)) and no artifacts

lordalibaski
31st October 2020, 03:27
edit sorry meant to put it in the other staxrip topic.

Dann0245
1st November 2020, 08:51
How to load VapourSynth with StarxRip?

I use python 3.8.6 and VapourSyntth R52

my test.vpy script, it's a sample from http://www.vapoursynth.com/doc/gettingstarted.html


from vapoursynth import core
video_in = core.ffms2.Source(source='Rule6.mkv')
#video_in = core.lsmas.LWLibavSource(r'Rule6.mkv')
video_in = core.std.Transpose(video_in)
video_in.set_output()


Virtual Dub 2 opens it well

https://forum.doom9.org/attachment.php?attachmentid=17539&stc=1&d=1604216164


I can run the script from command line too.

vspipe --y4m test.vpy - | x265 --y4m - --output encoded.mkv



StarxRip 2.1.4.8 Beta, give an error when open script:

https://forum.doom9.org/attachment.php?attachmentid=17540&stc=1&d=1604216495


When I chage

video_in = core.ffms2.Source(source='Rule6.mkv')

to

video_in = core.lsmas.LWLibavSource(r'Rule6.mkv')

StarRip give me another error:

I already put file LSMASHSource.dll into: "StaxRip-x64-2.1.4.8-Beta\Settings\Plugins\VapourSynth" and "StaxRip-x64-2.1.4.8-Beta\Apps\FrameServer\VapourSynth\vapoursynth64\coreplugins"

https://forum.doom9.org/attachment.php?attachmentid=17541&stc=1&d=1604216749


do some search, I found this post: https://forum.doom9.org/showthread.php?p=1816963#post1816963

stax76 said: "Let staxrip create a vpy script"

But how to do that?

44vince44
1st November 2020, 11:54
It means you have to open staxrip, click where you read AVS Filters (in blue) and select Filter Setup > Vapoursynth. It will change to VS Filters.
Then open or drag and drop the video file in staxrip, and build your filters from there (read staxrip doc).

Staxrip will build the script for you, and you'll be able to execute the process without the whole scripting method that is explained in Vapoursynth.

Dann0245
2nd November 2020, 02:10
It means you have to open staxrip, click where you read AVS Filters (in blue) and select Filter Setup > Vapoursynth. It will change to VS Filters.
Then open or drag and drop the video file in staxrip, and build your filters from there (read staxrip doc).

Staxrip will build the script for you, and you'll be able to execute the process without the whole scripting method that is explained in Vapoursynth.

I figured it out.

Thank!

hevron
14th November 2020, 16:29
I appeal to experts for help. Updated plugins on Update-Links Staxrip -Stuff.
Plugins_JPSDR: in the folder there are 8 pieces, which of them should be selected?
AVS-Stuff real.finder: avs 2.6 and up or avs 2.5 and up should be selected? Thank you.
Win10x64.

44vince44
16th November 2020, 13:41
hevron,

1) for JPSDR:
-default one in Staxrip releases is Clang W7 AVX to allow compatibility with older generation CPUs
-you can manually replace with Release tClang W7 AVX2 if you have a more recent processor (by recent I mean not older than 4-5 years approximately)

2) for AviSynth+, we use the 3.6xx fork, not the 2.x, get it here https://github.com/AviSynth/AviSynthPlus/releases

hevron
16th November 2020, 16:10
44vince44, thanks a lot for the clarification, Release Clang W7 AVX2 is more suitable for me.
This link https://github.com/AviSynth/AviSynthPlus/releases has AviSynth + 3.6.1/ Date = 2020-06-20, but we have Version 3.6.2 test 2 /Date = 2020-08-31
:thanks:

44vince44
21st November 2020, 07:45
You're welcome hevron!
I don't know where Stax76 got the beta, but I believe soon there'll be an official release. When Stax76 includes a beta in Staxrip, it's due to a specific fix that he has been expecting.

DavidRyan
23rd November 2020, 12:27
I tried to use DSS2 as a source filter for the first time (StaxRip v2.1.3.0) as I wanted to try it on a variable frame rate MKV (from a DVD using makemkv). But I run into the following error every time:
https://images2.imgbox.com/97/40/o37wWjX3_o.png

Does anyone have an idea of what is wrong? I don't use vapoursynth, only avisynth so not sure if the "VS_In" refers to that. Checking in the apps-manage menu it says "DSS2mod - status OK". Here is the mediainfo of the file if that matters:

"Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Frame rate : 24.035 FPS
Original frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits"

Would appreciate any advice if anyone has an idea on how to get DSS2 working.

EDIT: Resolved, as described below

Mister XY
24th November 2020, 08:49
A small question, is it possible that i can use my own compiled ffmpeg version to encode videos? If i change the folder for ffmpeg, ffmpeg crashed with error message.
Error Video encoding x265 (2.1.4.8)

Video encoding x265 returned error exit code: 1 (0x1)

It's unclear what the exit code means, in case it's a Windows system error then it possibly means:

Unzulässige Funktion


------------------------- Video encoding x265 -------------------------

ffmpeg 4.3.1

"C:\Program Files\FFmpeg 4.3\ffmpeg.exe" -i "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs" -c:v libx265 -crf 20 -pix_fmt yuv420p10le -x265-params profile=main10 -an -y -hide_banner "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01_out.h265"

[avs2 @ 00000221323e8940] Format avs2 detected only with low score of 1, misdetection possible!
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 221323fbe20: using 1 thread(s): 1(frame/AEC)+0(pool/REC), 2 tasks
[davs2 error]: Manager 221323fbe20: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323f2780] Decoder error: can't read packet
[avs2 @ 00000221323e8940] decoding for stream 0 failed
[avs2 @ 00000221323e8940] Could not find codec parameters for stream 0 (Video: avs2 (libdavs2), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, avs2, from 'E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: avs2, none, 25 tbr, 1200k tbn, 25 tbc
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 warn]: Manager 22132444fc0: Max number of thread reached, forcing to be 8

[davs2 info]: Manager 22132444fc0: using 8 thread(s): 8(frame/AEC)+0(pool/REC), 9 tasks
Stream mapping:
Stream #0:0 -> #0:0 (avs2 (libdavs2) -> hevc (libx265))
Press [q] to stop, [?] for help
[davs2 error]: Manager 22132444fc0: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323e9d00] Decoder error: can't read packet
Error while decoding stream #0:0: Generic error in an external library
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

StaxRip.ErrorAbortException: Video encoding x265 returned error exit code: 1 (0x1)

It's unclear what the exit code means, in case it's a Windows system error then it possibly means:

Unzulässige Funktion


------------------------- Video encoding x265 -------------------------

ffmpeg 4.3.1

"C:\Program Files\FFmpeg 4.3\ffmpeg.exe" -i "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs" -c:v libx265 -crf 20 -pix_fmt yuv420p10le -x265-params profile=main10 -an -y -hide_banner "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01_out.h265"

[avs2 @ 00000221323e8940] Format avs2 detected only with low score of 1, misdetection possible!
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 221323fbe20: using 1 thread(s): 1(frame/AEC)+0(pool/REC), 2 tasks
[davs2 error]: Manager 221323fbe20: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323f2780] Decoder error: can't read packet
[avs2 @ 00000221323e8940] decoding for stream 0 failed
[avs2 @ 00000221323e8940] Could not find codec parameters for stream 0 (Video: avs2 (libdavs2), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, avs2, from 'E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: avs2, none, 25 tbr, 1200k tbn, 25 tbc
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 warn]: Manager 22132444fc0: Max number of thread reached, forcing to be 8

[davs2 info]: Manager 22132444fc0: using 8 thread(s): 8(frame/AEC)+0(pool/REC), 9 tasks
Stream mapping:
Stream #0:0 -> #0:0 (avs2 (libdavs2) -> hevc (libx265))
Press [q] to stop, [?] for help
[davs2 error]: Manager 22132444fc0: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323e9d00] Decoder error: can't read packet
Error while decoding stream #0:0: Generic error in an external library
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!


bei StaxRip.Proc.Start() in D:\Projekte\VB\staxrip\General\Proc.vb:Zeile 399.
bei StaxRip.ffmpegEnc.Encode(String args) in D:\Projekte\VB\staxrip\Encoding\ffmpegEnc.vb:Zeile 139.
bei StaxRip.ffmpegEnc.Encode() in D:\Projekte\VB\staxrip\Encoding\ffmpegEnc.vb:Zeile 125.
bei System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei StaxRip.GlobalClass.ProcessJob(String jobPath) in D:\Projekte\VB\staxrip\General\GlobalClass.vb:Zeile 312.

DavidRyan
24th November 2020, 11:20
I tried to use DSS2 as a source filter for the first time (StaxRip v2.1.3.0) as I wanted to try it on a variable frame rate MKV (from a DVD using makemkv). ...

Does anyone have an idea of what is wrong? I don't use vapoursynth, only avisynth so not sure if the "VS_In" refers to that. Checking in the apps-manage menu it says "DSS2mod - status OK". Here is the mediainfo of the file if that matters:

...

Would appreciate any advice if anyone has an idea on how to get DSS2 working.

If anyone else has this issue, I resolved it by installing lavfilters. DSS2 requires lavfilters to either be:
- installed on the system
- LAVFilters.ax files in the \LAVFilters subfolder in the same folder where avss.dll is placed (not the case with staxrip)
- a path to the LAVFilters.ax files specified using "lavf_path"

ChaosKing
24th November 2020, 11:40
Makes sense, as DirectShow uses codecs installed on your system. DSS2 does *not* require lavfilter but it happens to be that it installed the needed codec on your system.
Why not just use ffms2 or lsmash?

Mister XY
26th November 2020, 10:37
A little problem. If I want to create a 2 pass video with ffmpeg, it saves the file ffmpeg2pass-0 in the Staxrip folder. The problem with this is if Staxrip does not have rights access to it will be prohibited. Can't you do it so that the ffmpeg2pass-0 file is saved in the Temp Files folder?
Thx

44vince44
28th November 2020, 05:13
Mister XY I confirm this. It's a bug. The command line of ffmpeg should include the -passlogfile option with the temp location specified. This is a real bug, I will create a ticket in github, mentioning your find.

The problem is solved by adding the custom switch -passlogfile "%temp_dir%\ffmpeg2passlog"

I've noted that as well in the bug report.

Mister XY
28th November 2020, 13:53
I must do anything wrong. I add this line -passlogfile "%temp_dir%\ffmpeg2passlog" to the custom line in ffmpeg window, but when start to encode i get this message.
Cannot write log file '%temp_dir%\ffmpeg2passlog-0.log' for pass-1 encoding: No such file or directory

44vince44
29th November 2020, 07:28
I must do anything wrong. I add this line -passlogfile "%temp_dir%\ffmpeg2passlog" to the custom line in ffmpeg window, but when start to encode i get this message.
Cannot write log file '%temp_dir%\ffmpeg2passlog-0.log' for pass-1 encoding: No such file or directory

You're doing nothing wrong. The macro value is not being passed :-(
Another bug?

Not only %temp_dir%, but ALL MACROS are not passed from the custom line :-((((( It seems the custom line does not support macros.

So in that case, only as workaround, use a system env variable -passlogfile "%temp%\ffmpeg2passlog"
This will use the global user temporary folder (as defined in your system)

Mister XY
29th November 2020, 08:43
OK, i have also seen, that the macros did not passing. If i have set decoder to another decoder looks like software, dxva2 etc. i must set the crop values. If i set the values via macros, it did not pass.

VincAlastor
29th November 2020, 11:57
[AOMediaCodec/SVT-AV1] Pre-release v0.8.6 - SVT-AV1 v0.8.6

default setting changed: --irefresh-type 2

[0.8.6] - 2020-11-28
Encoder

Further quality-speed tradeoffs tuning for VOD use cases
Improved TPL support within 1-pass and 2-pass CRF moode
Continued non-optimized support for 2pass VBR and CRF
Align kernel nomenclature to prefix svt_aom for kernels brough from libaom to avoid symbol conflicts

Build and Testing

Bug fixes
Improve CI
Added CI support for gitlab
Improve Unit Test Coverage
Address C vs asm mismatches
Fix static analysis warnings / errors
Add address sanitizer
Fix symbol conflicts with libaom and libvpx when staticly linked to ffmpeg


https://github.com/AOMediaCodec/SVT-AV1/releases/tag/v0.8.6

Z'Hadum
6th January 2021, 23:23
Just noticed 2.1.6.0 stable is out:

https://github.com/staxrip/staxrip/releases

:thanks:

44vince44
7th January 2021, 16:12
It has some unfortunate bugs, get directly the fixed beta 2.1.6.1

here: https://www.dropbox.com/sh/4ctl2y928xkak4f/AAADEZj_hFpGQaNOdd3yqcAHa?dl=0

Stax76 has released a new Stable 2.1.7.0

Trench
8th January 2021, 01:45
I've been fighting an error similar to what Mister XY just mentioned, but I seem to have a different root cause. A log in my case will show:


------------------------- System Environment -------------------------

StaxRip : 2.1.7.0
Windows : Windows 10 Pro 2009
Language : English (United States)
CPU : Intel(R) Xeon(R) CPU E3-1280 V2 @ 3.60GHz
GPU : Microsoft Remote Display Adapter, NVIDIA GeForce GTX 1050 Ti
Resolution : 1920 x 1080
DPI : 96

----------------------- Media Info Source File -----------------------

C:\Files\Staxrip\The.File.mkv

General
Complete name : C:\Files\Staxrip\The.File.mkv
Format : Matroska
Format version : Version 4
File size : 598 MiB
Duration : 51 min 8 s
Overall bit rate : 1 636 kb/s
Movie name : The.File
Encoded date : UTC 2021-01-06 03:04:57
Writing application : mkvmerge v51.0.0 ('I Wish') 64-bit
Writing library : libebml v1.4.0 + libmatroska v1.6.2

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 51 min 8 s
Bit rate : 1 424 kb/s
Width : 1 920 pixels
Height : 960 pixels
Display aspect ratio : 2.000
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.032
Stream size : 521 MiB (87%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC LC SBR
Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name : HE-AAC
Format settings : Explicit
Codec ID : A_AAC-2
Duration : 51 min 8 s
Bit rate : 206 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 23.438 FPS (2048 SPF)
Compression mode : Lossy
Delay relative to video : 23 ms
Stream size : 75.5 MiB (13%)
Language : English
Default : Yes
Forced : No

Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 48 min 51 s
Bit rate : 52 b/s
Count of elements : 744
Stream size : 18.9 KiB (0%)
Title : English
Language : English
Default : No
Forced : No

------------------------------ Demux MKV ------------------------------

mkvextract 52

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Support\MKVToolNix\mkvextract.exe C:\Files\Staxrip\The.File.mkv tracks 2:"C:\Files\Staxrip\The.File_temp\ID1 English {English}.srt" 1:"C:\Files\Staxrip\The.File_temp\ID1 23ms English.aac" --ui-language en

Error: Failed to create the file 'C:\Files\Staxrip\The.File_temp\ID1 23ms English.aac': 0 (open file error)

Start: 5:33:38 PM
End: 5:33:38 PM
Duration: 00:00:00

-------------------------------- Error --------------------------------

no output found

-------------------------- Error Demux Audio --------------------------

Demux Audio returned error exit code: 1 (0x1)

It's unclear what the exit code means, in case it's a Windows system error then it possibly means:

Incorrect function


----------------------------- Demux Audio -----------------------------

ffmpeg N-100448-gab6a56773f-x64-gcc10.2.0 Patman

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Encoders\ffmpeg\ffmpeg.exe -i C:\Files\Staxrip\The.File.mkv -vn -sn -y -hide_banner -c:a copy "C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a"

Input #0, matroska,webm, from 'C:\Files\Staxrip\The.File.mkv':
Metadata:
title : The.File
encoder : libebml v1.4.0 + libmatroska v1.6.2
creation_time : 2021-01-06T03:04:57.000000Z
Duration: 00:51:08.61, start: 0.000000, bitrate: 1635 kb/s
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x960, SAR 1:1 DAR 2:1, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 1424359
DURATION-eng : 00:51:08.607000000
NUMBER_OF_FRAMES-eng: 73573
NUMBER_OF_BYTES-eng: 546350126
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp (default)
Metadata:
BPS-eng : 206485
DURATION-eng : 00:51:08.459000000
NUMBER_OF_FRAMES-eng: 71917
NUMBER_OF_BYTES-eng: 79199106
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip
Metadata:
title : English
BPS-eng : 52
DURATION-eng : 00:48:51.678000000
NUMBER_OF_FRAMES-eng: 744
NUMBER_OF_BYTES-eng: 19353
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a: Permission denied

----------------------------- Demux Audio -----------------------------

ffmpeg N-100448-gab6a56773f-x64-gcc10.2.0 Patman

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Encoders\ffmpeg\ffmpeg.exe -i C:\Files\Staxrip\The.File.mkv -vn -sn -y -hide_banner -c:a copy "C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a"

Input #0, matroska,webm, from 'C:\Files\Staxrip\The.File.mkv':
Metadata:
title : The.File
encoder : libebml v1.4.0 + libmatroska v1.6.2
creation_time : 2021-01-06T03:04:57.000000Z
Duration: 00:51:08.61, start: 0.000000, bitrate: 1635 kb/s
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x960, SAR 1:1 DAR 2:1, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 1424359
DURATION-eng : 00:51:08.607000000
NUMBER_OF_FRAMES-eng: 73573
NUMBER_OF_BYTES-eng: 546350126
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp (default)
Metadata:
BPS-eng : 206485
DURATION-eng : 00:51:08.459000000
NUMBER_OF_FRAMES-eng: 71917
NUMBER_OF_BYTES-eng: 79199106
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip
Metadata:
title : English
BPS-eng : 52
DURATION-eng : 00:48:51.678000000
NUMBER_OF_FRAMES-eng: 744
NUMBER_OF_BYTES-eng: 19353
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a: Permission denied

Start: 5:33:38 PM
End: 5:33:39 PM
Duration: 00:00:00

------------------------------ Exception ------------------------------

StaxRip.ErrorAbortException: Demux Audio returned error exit code: 1 (0x1)

It's unclear what the exit code means, in case it's a Windows system error then it possibly means:

Incorrect function


----------------------------- Demux Audio -----------------------------

ffmpeg N-100448-gab6a56773f-x64-gcc10.2.0 Patman

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Encoders\ffmpeg\ffmpeg.exe -i C:\Files\Staxrip\The.File.mkv -vn -sn -y -hide_banner -c:a copy "C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a"

Input #0, matroska,webm, from 'C:\Files\Staxrip\The.File.mkv':
Metadata:
title : The.File
encoder : libebml v1.4.0 + libmatroska v1.6.2
creation_time : 2021-01-06T03:04:57.000000Z
Duration: 00:51:08.61, start: 0.000000, bitrate: 1635 kb/s
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x960, SAR 1:1 DAR 2:1, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 1424359
DURATION-eng : 00:51:08.607000000
NUMBER_OF_FRAMES-eng: 73573
NUMBER_OF_BYTES-eng: 546350126
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp (default)
Metadata:
BPS-eng : 206485
DURATION-eng : 00:51:08.459000000
NUMBER_OF_FRAMES-eng: 71917
NUMBER_OF_BYTES-eng: 79199106
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip
Metadata:
title : English
BPS-eng : 52
DURATION-eng : 00:48:51.678000000
NUMBER_OF_FRAMES-eng: 744
NUMBER_OF_BYTES-eng: 19353
_STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a: Permission denied


at StaxRip.Proc.Start() in D:\Projekte\VB\staxrip\General\Proc.vb:line 384
at StaxRip.ffmpegDemuxer.DemuxAudio(String sourcefile, AudioStream stream, AudioProfile ap, Project proj, Boolean overrideExisting) in D:\Projekte\VB\staxrip\General\Demux.vb:line 366
at StaxRip.mkvDemuxer.Demux(String sourcefile, IEnumerable`1 audioStreams, IEnumerable`1 subtitles, AudioProfile ap, Project proj, Boolean onlyEnabled, Boolean videoDemuxing, Boolean overrideExisting, String title, Boolean useStreamName) in D:\Projekte\VB\staxrip\General\Demux.vb:line 963
at StaxRip.mkvDemuxer.Run(Project proj) in D:\Projekte\VB\staxrip\General\Demux.vb:line 731
at StaxRip.MainForm.Demux() in D:\Projekte\VB\staxrip\Forms\MainForm.vb:line 3212
at StaxRip.MainForm.OpenVideoSourceFiles(IEnumerable`1 files, Boolean isEncoding) in D:\Projekte\VB\staxrip\Forms\MainForm.vb:line 2134


It's not a permissions issue of being able to create or write files in the temporary directory, because the Staxrip log shown is being created and written there successfully by Staxrip.exe.

But two different tools as shown in the log -- mkvextract.exe trying to create "ID1 23ms English.aac", and then ffmpeg.exe trying to create "ID1 23ms English.m4a" -- complain as though files cannot be created in the "C:\Files\Staxrip\The.File_temp" temp area.

Microsoft's Process Monitor shows me the tools are receiving ACCESS_DENIED in their attempt to create those files, as though it actually is a permissions issue.

But Staxrip creates the log file in the temp area successfully, and I can create files in the temp area using File Explorer. Both Staxrip.exe and File Explorer are running as normal non-elevated processes. Running Staxrip.exe as administrator still results in the same failure for mkvextract.exe and ffmpeg.exe.

I've concluded that the issue this: In the path shown, C:\Files\ is a mount point. Meaning C:\ itself is an SSD drive, but C:\Files\ is the mount point of a multi-terabyte magnetic drive for work space. The successful temp folder creation & successful log file creation by Staxrip.exe itself receives REPARSE in response to the C:\Files\-involved path, but the tools simply fail with ACCESS_DENIED.

It seems like "suddenly" Staxrip processing cannot traverse a mount point. Staxrip.exe itself can still traverse that path; but not the tools being launched.

This happens with 2.1.5.5.Beta and 2.1.7.0.Stable. Note the log says "Windows 10 2009", and my WinVER confirms "20H2 19042.685".

If I run 2.1.3.0.Stable or 2.1.4.8.Beta against the same source file in the same folder setup, the tools are able to create and write to files in the temporary area just fine.

Some unintended consequence of how the tools were updated for long path handling? Or can someone refute these results, and you are able to use a mount point in the path under Windows 20H2 successfully; meaning I should continue digging for a more specific root cause?

44vince44
8th January 2021, 10:43
@Trench, is it possible to edit the properties of your C:\Files\Staxrip\ folder and set permissions (full control) to you as user? do mount points allow that ?
We must know if the problem persists after that.

stax76
8th January 2021, 16:36
@Trench

The only relevant change I remember is changing the current directory of the staxrip process to the video temp folder, this was not long ago. Before the current folder of the staxrip process was usually the startup folder where staxrip is located. That's something a child process inherits.

44vince44
8th January 2021, 17:57
When creating folders directly in C:\ the system does not give them proper permissions for free read/write operations. Unlike a folder created in the user's official temp tree, or in the user's tree more generally.
As we are discussing something happening with a temp folder, it is wise to check the permissions on the folder C:\Files\Staxrip\ in Trench's case.
This should not be considered as a problem in Staxrip, even if it used to work otherwise.

So, @Trench, please check and do the permissions change, or set your paths to locations that you have R/W control on.

LazyNcoder
18th January 2021, 16:00
@stax76 Can you please compile Staxrip more often?
I see there are more than 75 changes since the last release 2.1.7.0
I'm impatiently waiting...

Thank you

Atlantis
18th January 2021, 20:04
Question. I remember you said some time ago that you added a button for attachments in demux dialog to select none like Audio and Subtitles but I noticed it is not there.

44vince44
19th January 2021, 08:42
@LazyNcoder you should check up the Staxrip docs, downloads section. There you get links to the betas.
There have been 3 betas released since then.
https://staxrip.readthedocs.io/introduction.html#download

freezer
19th January 2021, 15:40
Hi guys - I need some help with audio processing in Staxrip. Feeling really stupid right now as I can't figure out on myself what I am doing wrong.

Goal: import old interlaced footage, process the video and copy (or convert) audio to ProRes MOV with PCM audio.

I've got three types of source footage:

#1 miniDV AVI with stereo channel PCM audio - this does work as expected by setting audio to copy/mux profile. No problem here. A window pops up and asks for the audio track to get demuxed.

#2 HDV m2t with stereo channel MP2 audio

#3 XDCAM HD422 mxf OP-1A with 8 mono channel PCM audio

With #2 and #3 I just can't get any audio processed through the pipeline.

Staxrip stable 2.1.7.0 with local installations of
AviSynth 3.7.0
VapourSynth r52
Phyton 3.8.2150

Scripting runs through VaporSynth.

But no matter what I choose for audio as the profile, it doesn't get loaded when the video source gets loaded.
I can right click into the audio field and select the file again, then I get at least one track. That's ok for processing one file, but for batch processing hundreds it can't be the way to go.
Creating a ffmpeg -c:a pcm_s24le profile did not help either...

I have googled around for 2 days and read several threads but there must be something (setting/procedure) I am obviously missing.

Hopefully someone with more knowledge can give me a hint into the right direction?

44vince44
19th January 2021, 15:52
Can you please provide a mediainfo sheet of the source that has the problem, and a log of the processing as well (you may paste them in pastebin.com then link to them here). I'm sure we'll help once we got that information.

LazyNcoder
19th January 2021, 15:56
@LazyNcoder you should check up the Staxrip docs, downloads section. There you get links to the betas.
There have been 3 betas released since then.
https://staxrip.readthedocs.io/introduction.html#download

Thank you very much! :sly:

freezer
19th January 2021, 16:01
Can you please provide a mediainfo sheet of the source that has the problem, and a log of the processing as well (you may paste them in pastebin.com then link to them here). I'm sure we'll help once we got that information.

Thanks!

I thought it might be easier to supply a short clip I am using for testing (43 MB)
This is the m2t file:
https://we.tl/t-i2vzqoQy8a

And this is the Staxrip Template:
https://we.tl/t-ehPbIfe6c1

I am looking for a sample of the MXF source I can upload too and will provide a link then.

stax76
19th January 2021, 16:41
The default configuration would demux and decode it with DgMpgDec, but that don't run because ffms2 is defined as source filter. What you can do is changing the source filter back to automatic or MPEG2Source, or you can remux it to mkv:

Tools > Settings > Preprocessing > ffmpeg remux > Edit > Input File Types > ts m2t

In the next build m2t will be found as audio source file, but this might result in async audio, so I recommend DgMpgDec.

freezer
19th January 2021, 17:09
The default configuration would demux and decode it with DgMpgDec, but that don't run because ffms2 is defined as source filter. What you can do is changing the source filter back to automatic or MPEG2Source, or you can remux it to mkv:

Tools > Settings > Preprocessing > ffmpeg remux > Edit > Input File Types > ts m2t

In the next build m2t will be found as audio source file, but this might result in async audio, so I recommend DgMpgDec.

Many Thanks! Setting the source filter to automatic did the trick.
:-)

creeve4
24th January 2021, 14:00
Since upgrading to 2.1.7 I am getting the following error for all encodes when using VapourSynth:

Script exceeded memory limit. Consider raising cache size.

My encodes will not complete
out of memory: 3087360

How do I increase the memory limit? I have searched and read, but I cannot find an answer.

JKyle
24th January 2021, 17:18
Since upgrading to 2.1.7 I am getting the following error for all encodes when using VapourSynth:

Script exceeded memory limit. Consider raising cache size.

This issue was raised right after the default setting for x265 encoding of vpy was changed from vspipe to direct reading without piping.
See this issue thread (https://github.com/staxrip/staxrip/issues/470).

You can solve this problem in two ways.

1) Select vspipe for Pipe in Input/Output section of x265 Options window.

or

2) get @DJATOM's new x265 build (https://github.com/DJATOM/x265-aMod/releases/tag/3.4%2B65) that is believed to have fixed this memory leak issue, and replace the current one with this new build. You need some more testing in this case.

creeve4
25th January 2021, 02:48
This issue was raised right after the default setting for x265 encoding of vpy was changed from vspipe to direct reading without piping.
See this issue thread (https://github.com/staxrip/staxrip/issues/470).

You can solve this problem in two ways.

1) Select vspipe for Pipe in Input/Output section of x265 Options window.

or

2) get @DJATOM's new x265 build (https://github.com/DJATOM/x265-aMod/releases/tag/3.4%2B65) that is believed to have fixed this memory leak issue, and replace the current one with this new build. You need some more testing in this case.

Thank you so much!

Trench
1st February 2021, 20:17
Thanks all. I've been out of the office the past three weeks, and just now getting back to where I can test this. Note we did also have a Microsoft Patch Tuesday since this was observed, and the machine has automatically restarted to apply those updates since then.


@Trench, is it possible to edit the properties of your C:\Files\Staxrip\ folder and set permissions (full control) to you as user? do mount points allow that ?

Agreed it's wise to check the permissions, given the evidence.

Although the point still remains that with the tools included and/or invoked by Staxrip 2.1.3.0.Stable or 2.1.4.8.Beta against the same source files in the same folder with the same set permissions, the temp area created by Staxrip could be written to successfully.

And also that using "Run as Administrator", for which those default permissions you're referring to grant Full Control to the Administrators group, hadn't avoided the issue either.



The only relevant change I remember is changing the current directory of the staxrip process to the video temp folder, this was not long ago. Before the current folder of the staxrip process was usually the startup folder where staxrip is located. That's something a child process inherits.

Interesting observation that I will keep in mind while continuing to investigate. As you might have noted from the log, the Staxrip program directory in my case is actually outside of the mount point area; in "C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable" instead of "C:\Files\Staxrip". So that kind of current process directory change does seem reasonable to consider.


But today -- as I test this issue which duplicated 100% for files inside of "C:\Files\Staxrip", and for which I had to work around the problem by moving my source files outside of the mount point area -- today the problem no longer occurs.

Since I've been away and not changing anything about the test or the configuration, for the moment I'm assuming Microsoft's Patch Tuesday corrected something here; whether it was also related to process' current directory or not. The patch that applied in my absence was https://support.microsoft.com/help/4598242/, but I do not see any changes with obvious correlation attributed there, other than "unspecified security updates."

Therefore the problem no longer exists at the moment. But should this symptom return, I can pick up with the recommended tests and report back.