Log in

View Full Version : StaxRip


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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 [99] 100 101

Bibo64
5th October 2024, 20:26
Hello guys,
since I changed from 2.29 to 2.42.1 last week, neither deinterlacing nor frame conversion work using ffmpeg within staxrip.
On the end of a fps conversion the program stops with an error that there were too less frames to encode. How can I tell staxrip that exactly this was my intention (I have 720p50 input which I convert to 480p25)?

And second, deinterlacing doesn't work with ffmpeg.
My command line looks like: -hwaccel cuda -hwaccel_output_format cuda -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=100:y=59:w=30:h=60,eq=gamma=0.91:saturation=1.4,crop=1920:1080:0:0,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k

The log is this:


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

StaxRip : v2.42.1
Settings : v2.42.1
Windows : Windows 10 Pro 22H2 2009 (19041.1.amd64fre.vb_release.191206-1406)
Language : German (Germany)
CPU : AMD Ryzen 9 5900X 12-Core Processor
RAM : 32GB
GPU : NVIDIA GeForce RTX 4060 Ti
Resolution : 2560 x 1440
DPI : 96
Code Page : 1252

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

D:\GBlueUE4k\1\20240921 Hello_fixed.ts

General
ID : 10016 (0x2720)
Complete name : D:\GBlueUE4k\1\20240921 Hello_fixed.ts
Format : MPEG-TS
File size : 2.46 GiB
Duration : 42 min 15 s
Overall bit rate mode : Variable
Overall bit rate : 8 342 kb/s
Frame rate : 25.000 FPS

Video
ID : 6571 (0x19AB)
Menu ID : 50032 (0xC370)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format, CABAC : Yes
Format, Reference frames : 4 frames
Format, GOP : M=4, N=24
Codec ID : 27
Duration : 42 min 15 s
Bit rate : 7 478 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan type, store method : Separated fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.144
Stream size : 2.21 GiB (90%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 6572 (0x19AC)
Menu ID : 50032 (0xC370)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : 6
Duration : 42 min 15 s
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -56 ms
Stream size : 135 MiB (5%)
Language : German
Service kind : Complete Main
Dialog Normalization : -31 dB
cmixlev : -4.5 dB
surmixlev : -6 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -27 dB

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

ffmpeg N-116758-x64-gcc14.2.0

"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -y -hide_banner -probesize 10M -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -vn -sn -c:a copy "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3"

[h264 @ 000001fe726dc340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000001fe726dc340] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 000001fe726dc340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000001fe726dc340] Increasing reorder buffer to 2
Input #0, mpegts, from 'D:\GBlueUE4k\1\20240921 Hello_fixed.ts':
Duration: 00:42:15.14, start: 19074.473467, bitrate: 8342 kb/s
Program 50032
Stream #0:0[0x19ab]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn
Stream #0:1[0x19ac](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Output #0, ac3, to 'D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3':
Metadata:
encoder : Lavf61.5.101
Stream #0:0(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
Press [q] to stop, [?] for help
[out#0/ac3 @ 000001fe726dc340] video:0KiB audio:138646KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.000000%

Start: 23:49:05
End: 23:49:06
Duration: 00:00:00

General
Complete name : D:\GBlueUE4k\1\20240921 Hello_fixed_temp\ID1_[de] (German) -56ms.ac3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
File size : 135 MiB
Duration : 42 min 15 s
Overall bit rate mode : Constant
Overall bit rate : 448 kb/s

Audio
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Duration : 42 min 15 s
Bit rate mode : Constant
Bit rate : 448 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 135 MiB (100%)
Service kind : Complete Main
Dialog Normalization : -31 dB
cmixlev : -4.5 dB
surmixlev : -6 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -27 dB

------------------------------ Auto Crop ------------------------------

AutoCrop 2.5

"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\Support\AutoCrop\AutoCrop.exe" "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_source.avs" 3 15 3168 3168 1000 0

0,0,0,0

Start: 23:49:09
End: 23:49:09
Duration: 00:00:00

---------------------------- Configuration ----------------------------

Template : NVENC-ffmpeg-int-TV·HD-colorEnhanced-unsharp
Video Encoder : ffmpegEnc
Video Encoder Profile : ffmpeg | Nvidia | Nvidia H.264
Container/Muxer Profile : MKV (mkvmerge)
+++++
Process Priority : BelowNormal
Delete Temp Files : Disabled
Delete Temp Files Selection : Include

--------------------------- AviSynth Script ---------------------------

AddAutoloadDir("C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\plugins")

LoadPlugin("C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\Plugins\Dual\L-SMASH-Works\LSMASHSource.dll")
LWLibavVideoSource("D:\GBlueUE4k\1\20240921 Hello_fixed.ts", cachefile="D:\GBlueUE4k\1\20240921 Hello_fixed_temp\temp.lwi")
FadeIO2(50)
# hardware encoder resizes

------------------------- Source Script Info -------------------------

Width : 1920
Height : 1080
Frames : 63377
Time : 42:15.080
Framerate : 25 (25/1)
Format : YUV420P8

------------------------- Target Script Info -------------------------

Width : 1920
Height : 1080
Frames : 63381
Time : 42:15.240
Framerate : 25 (25/1)
Format : YUV420P8

------------- Error Video encoding Nvidia | Nvidia H.264 -------------

ffmpeg N-116758-x64-gcc14.2.0

"C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -hwaccel cuda -hwaccel_output_format cuda -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=143:y=69:w=60:h=80,eq=gamma=0.91:saturation=1.4,crop=1920:1080:0:0,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k -an -y -hide_banner "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_out.h264"

[h264 @ 000002614951f340] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 000002614951f340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614951f340] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 000002614951f340] Increasing reorder buffer to 1
[h264 @ 000002614951f340] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614951f340] Increasing reorder buffer to 2
[mpegts @ 0000026149514400] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Selecting decoder 'h264' because of requested hwaccel method cuda
Input #0, mpegts, from 'D:\GBlueUE4k\1\20240921 Hello_fixed.ts':
Duration: 00:42:15.14, start: 19074.473467, bitrate: 8342 kb/s
Program 50032
Stream #0:0[0x19ab]: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first, left), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn
Stream #0:1[0x19ac](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s
[out#0/h264 @ 000002614a6eec00] No explicit maps, mapping streams automatically...
[vost#0:0/h264_nvenc @ 00000261497e0580] Created video stream from input stream 0:0
[Parsed_delogo_1 @ 00000261495a4a80] x:100 y:59, w:30 h:60 band:1 show:0
[Parsed_scale_9 @ 000002614a7f42c0] w:1744 h:980 flags:'lanczos' interl:0
Correcting start time of Input #0 by 56000 us.
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
[vost#0:0/h264_nvenc @ 00000261497e0580] Starting thread...
[vf#0:0 @ 00000261495a4440] Starting thread...
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Starting thread...
[in#0/mpegts @ 0000026149514080] Starting thread...
Press [q] to stop, [?] for help
[h264 @ 00000261496b09c0] NVDEC capabilities:
[h264 @ 00000261496b09c0] format supported: yes, max_mb_count: 65536
[h264 @ 00000261496b09c0] min_width: 48, max_width: 4096
[h264 @ 00000261496b09c0] min_height: 16, max_height: 4096
[h264 @ 00000261496b09c0] Reinit context to 1920x1088, pix_fmt: cuda
[h264 @ 000002614b0e2040] mmco: unref short failure
Last message repeated 1 times
[h264 @ 000002614b0e2040] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[h264 @ 00000261495bb2c0] mmco: unref short failure
Last message repeated 1 times
[Parsed_delogo_1 @ 0000026149512ec0] x:100 y:59, w:30 h:60 band:1 show:0
[graph -1 input from stream 0:0 @ 000002616b157cc0] w:1920 h:1080 pixfmt:cuda tb:1/90000 fr:25/1 sar:1/1 csp:bt709 range:tv
[auto_scale_0 @ 000002616b157dc0] w:iw h:ih flags:'' interl:0
[Parsed_yadif_0 @ 000002614aef83c0] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_yadif_0'
Impossible to convert between the formats supported by the filter 'graph -1 input from stream 0:0' and the filter 'auto_scale_0'
[vf#0:0 @ 00000261495a4440] Error reinitializing filters!
[vf#0:0 @ 00000261495a4440] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 00000261495a4440] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_nvenc @ 00000261497e0580] Encoder thread received EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 00000261497e0580] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Decoder returned EOF, finishing
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Terminating thread with return code 0 (success)
[vist#0:0/h264 @ 000002614a6ed040] All consumers of this stream are done
[in#0/mpegts @ 0000026149514080] All consumers are done
[in#0/mpegts @ 0000026149514080] Terminating thread with return code 0 (success)
[out#0/h264 @ 000002614a6eec00] Nothing was written into output file, because at least one of its streams received no packets.
[AVIOContext @ 00000261495a4240] Statistics: 0 bytes written, 0 seeks, 0 writeouts
[in#0/mpegts @ 0000026149514080] Input file #0 (D:\GBlueUE4k\1\20240921 Hello_fixed.ts):
[in#0/mpegts @ 0000026149514080] Input stream #0:0 (video): 36 packets read (543343 bytes); 4 frames decoded; 0 decode errors;
[in#0/mpegts @ 0000026149514080] Total: 36 packets (543343 bytes) demuxed
[AVIOContext @ 0000026149514ac0] Statistics: 4444304 bytes read, 2 seeks
Conversion failed!


Video encoding Nvidia | Nvidia H.264 returned exit code: -40 (0xFFFFFFD8)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Start: 14:33:34
End: 14:33:35
Duration: 00:00:01

Bibo64
7th October 2024, 19:30
I use staxrip since the very early days and always found a way for me to manage problems which occur with a new version.
But now I'm stuck...
I convert 720p50 content to 480p25 that fails because staxrip counts the frames encoded and realizes a mismatch (of course...!).

The second is a failure with deinterlacing. I use ffmpeg to impose the delogo filter and so I do all the work within an ffmpeg filter graph that fails completely.
I tried to post a few days before. It was blocked. Maybe my log file was too big?

Tanks in advance.

My command line for the deinterlacing job is: "C:\Programme (portabel)\StaxRip-v2.42.0-x64\Apps\FrameServer\AviSynth\ffmpeg.exe" -hwaccel cuda -hwaccel_output_format cuda -i "D:\GBlueUE4k\1\20240921 Hello_fixed.ts" -c:v h264_nvenc -profile:v high -v verbose -vf yadif,delogo=x=143:y=69:w=60:h=80,eq=gamma=0.91:saturation=1.4,crop=1920:1080:4:4,scale=1744x980:flags=lanczos,unsharp=3:3:2 -preset p6 -tune hq -rc vbr -rc-lookahead 32 -spatial-aq 1 -temporal-aq 1 -coder cabac -refs 2 -bf 4 -b_ref_mode middle -b:v 4300k -an -y -hide_banner "D:\GBlueUE4k\1\20240921 Hello_fixed_temp\20240921 Hello_fixed_out.h264"

error log output (excerpt):
[Parsed_delogo_1 @ 0000026149512ec0] x:100 y:59, w:30 h:60 band:1 show:0
[graph -1 input from stream 0:0 @ 000002616b157cc0] w:1920 h:1080 pixfmt:cuda tb:1/90000 fr:25/1 sar:1/1 csp:bt709 range:tv
[auto_scale_0 @ 000002616b157dc0] w:iw h:ih flags:'' interl:0
[Parsed_yadif_0 @ 000002614aef83c0] auto-inserting filter 'auto_scale_0' between the filter 'graph -1 input from stream 0:0' and the filter 'Parsed_yadif_0'
Impossible to convert between the formats supported by the filter 'graph -1 input from stream 0:0' and the filter 'auto_scale_0'
[vf#0:0 @ 00000261495a4440] Error reinitializing filters!
[vf#0:0 @ 00000261495a4440] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 00000261495a4440] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/h264_nvenc @ 00000261497e0580] Encoder thread received EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 00000261497e0580] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 00000261497e0580] Terminating thread with return code -22 (Invalid argument)
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Decoder returned EOF, finishing
[vist#0:0/h264 @ 000002614a6ed040] [dec:h264 @ 00000261495a4a80] Terminating thread with return code 0 (success)
[vist#0:0/h264 @ 000002614a6ed040] All consumers of this stream are done
[in#0/mpegts @ 0000026149514080] All consumers are done

DaMacFunkin
27th October 2024, 08:50
Hello, can someone help please?

I am trying to use Ngx-TrueHDR but i can not get a file that is 10 bit HDR on output, I have checked this thread below:
https://github.com/staxrip/staxrip/issues/1509

I have copied as ,many values as I can but always the same 8 bit output - here is my config:"C:\Encode Plus\Staxrip 2.42\Apps\Encoders\NVEncC\NVEncC64.exe" --avhw --vbr 40000 --codec h265 --preset quality --output-depth 10 --profile main --level 5.1 --qp-init 1 --max-bitrate 40000 --aq --aq-temporal --bref-mode each --bframes 5 --lookahead 32 --gop-len 240 --multiref-l0 5 --multiref-l1 2 --strict-gop --nonrefp --vpp-colorspace matrix=bt709:bt2020nc,colorprim=bt709:bt2020,transfer=bt709:bt2020-10,range=limited:limited --vpp-ngx-truehdr --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)" --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --colorrange limited --max-cll "1000,300" --chromaloc 2 --aud --repeat-headers --output-buf 64 --vbr-quality 22 --output-res 3840x2160 -i "C:\xxxx\xxxx\xxxxxx\Cowboys And Aliens (2011).mkv" -o "D:\Cache\Cowboys And Aliens (2011)_temp\Cowboys And Aliens (2011)_out.h265"

Here is my output file:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L5.1@Main
HDR format : SMPTE ST 2086
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 58 min
Bit rate : 29.5 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.148
Stream size : 24.4 GiB (92%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Level : 300 cd/m2

I think it is just the 8bit - 10 bit conversion that is falling down but I can't figure out what the switch should be?

Thank you for any help.

Emulgator
27th October 2024, 16:37
Maybe the source is 8 bit ? Mediainfo please.

DaMacFunkin
27th October 2024, 18:14
Hi,

The source is 8 bit, but isn't the point of this to convert a 8 bit SDR to 10 bit HDR via NGX True HDR?

I also have Output set at --output-depth 10 and transfer=bt709:bt2020-10

Surely Staxrip can convert 8bit to 10bit?

Emulgator
27th October 2024, 20:58
You got to upconvert in your script, Staxrip can not know otherwise.

Shuichiyagami
3rd November 2024, 15:42
Hmm... i got an error like this.
"Failed to load getVSScriptAPI function. Upgrade Vapoursynth to R55 or newer!"

And, how to upgrade Vapoursynth? I don't see any update menu on Staxrip

Joekiwi
15th November 2024, 12:19
Thanks mainly use NVENC with variable bit rate - starting using the QP max in encoding, seems to work well as an overall insurance to certain std. I assume as well constraint by max bite rate , so another safety feature
Will play around a bit more to find perfect max QP for my needs
Yes it pushed size up on some encodes , but SSIM and PSNR scores went up as well ( as an aside use VMAF as well for awhile - but seemed redundant as scores all correlated well , and that one maybe takes more time to calc )

anyway anyone else using NVENC qp int , max seem to work - interesting to see how much bitrate goes up on those 1 in 10 black and white movie that always gives lower SSIM scores -they look fine on viewing

craigpro
17th November 2024, 00:37
wow.. I had no idea Staxrip was supported any more, but really happy to see it is still in development.

I just updated from v2.8.0 and my old NVenc )using Rigaya's encoder (old v5.37, new 7.66) settings for hardware encoding were:

old
--vbr 0 --codec h265 --preset P7 --output-depth 10 --multipass 2pass-full --vbr-quality 33 --aq --aq-temporal --bref-mode middle --bframes 4 --ref 5 --lookahead 32 --multiref-l0 5 --multiref-l1 4 --vpp-deband range=24,thre=6,thre_y=6,thre_cb=6,thre_cr=6,dither=24,dither_y=24,dither_c=24


so re-creating that as best I could in v2.42.2 leads to:

new
--vbr 5000 --codec h265 --preset P7 --output-depth 10 --profile main --multipass 2pass-full --max-bitrate 17500 --aq --aq-temporal --bref-mode middle --bframes 4 --ref 5 --lookahead 32 --multiref-l0 5 --multiref-l1 4 --vpp-deband range=24,thre=6,thre_y=6,thre_cb=6,thre_cr=6,dither=24,dither_y=24,dither_c=24

The only difference I can see in the command line format (when I went through each options page in v2.8.0 and recreated them in v2.42.2) is the '--vbr 0' (2.8.0) changing to '--vbr 5000' (2.42.2) and the '--vbr-quality 33' (2.8.0) and '--vbr-quality 33 -' (2.42.2) options. I'm googling to find out what the actual difference is, but so far no luck.

I did some testing with the same settings and same source file and 2.42.2 was slightly quicker (a total of 35 minutes instead of 42 minutes) and had a slightly higher VBR for video than 2.8.0, that was copying from an external USB C mechanical SATA drive to an nvme drive for the test files and audio conversion etc.

Also I found it strange that the v2.8.0 encode with MAIN10 and 10bit video output was listed as 10bit, but the 2.42.2 encode was listed as 8bit when it has the same MAIN10 and 10bit video profile encoding settings. Source file is 8 bit, so maybe the 7.66 NVenc encoder doesn't convert 8 to 10 bit but the 5.37 NVEnc encoder did?


Just wondering if anyone has any suggestions please which might improve the video quality (though to be honest I've been re-encoding DVDs and Blurays for the past 3 years using these settings and I cannot notice any quality loss).

Thank you and THANK YOU! to the dev(s) still working on this (I'm catching up reading this thread)

craigpro
17th November 2024, 10:03
anyone else running 2.42.2 notice that temp files are not auto deleted after conversion?

Joekiwi
18th November 2024, 10:45
Craigpro, didn't know that was setting , quite like temp files as has text log and some stuff demuxed if need it - I also check SSIM scores

For DVDs I would just use H264 and CPU as so quick. For reasons i don't know - 264 is still best for DVDs.Some people use likes of Topaz AI to upscale and then encode to get smaller - Topaz isn't cheap and it's trial and error anyway

My settings are
--vbr 7000 --codec h265 --preset P7 --output-depth 10 --profile main10 --tier high --level 5.1 --multipass 2pass-full --qp-max 26 --max-bitrate 24000 --aq-temporal --bref-mode each --bframes 4 --ref 5 --lookahead 32 --gop-len 600 --slices 1 --multiref-l0 4 --multiref-l1 2 --no-b-adapt --no-i-adapt --weightp --ssim --psnr --mv-precision q-pel -i

So pretty similar to yours minus vpp-deband etc
the extra precision precision q-pel should technically improve your quality

For non clean movies mainly older - I always do KNLMeansCL light ( setting ) -denoising done on Cuda cores as well. I find the results not displeasing - will still keep filmic look and details - but really has big impact on using my VBR 7000 much better ,
Purist will hate it, but some remasters by studios are more brutal that this, wiping grain and smoothing things . Some go other way, leaving in temporal noise like sparkling - just why ??

I used to use some of the other options, but thing they work better for encodes at 2000 or 3000 bits eg B and I adapt


Just discovered the qp max - probably 26 is a bit demanding and will push bitrates out - i think for you qp max 30 maybe a good choice , will only hit those demanding parts of movie - shouldn't go over your max bitrate

Also can work kind of other way to decrease overall bitrates.
Eg if I have a modern Asian movie very clean, no noise , or modern style cartoon - I can drop my KNLMeansCL. set VBR to 3000 to 4000 and the have QP max at say 22
Ie I do encodes at 7000 and get a ssim score of .994 , so didn't really need all those bits , or pnr around 50 plus - For cartoons/anime , you should get close to perfect anyway

I do change VBR for 4K or how much I like a movie , or if it's a doco - Some movies will eat bitrates , conversely 99% of movies are perfectly fine watched at 3000 or 2000 with CPU . Some movies I think they add random noise or something to make them hard to encode with a quality factor- just my opinion - ie if noise 100% random - there is no easy way to encode it efficiently

Only shame is no open source will convert Atmos TrueHD to Dolby Digital Plus with atmos , same for DTS X - think no shrinking at moment - but DTS HD to DTS is a can do

Only problem I find Starip can't handle well is movies with variable play back speeds ie not constant - So use handbrake then- I sure there are scripts , but if i was that much into it , i would use CPU
And if say a subtitle goes for much longer that movie- Movie will play fine - just shows much longer length that has no video . just some sub wrongly timed for much later

tormento
18th November 2024, 10:52
Only shame is no open source will convert Atmos TrueHD to Dolby Digital Plus with atmos , same for DTS X - think no shrinking at moment - but DTS HD to DTS is a can do
AFAIK and tried, even commercial ones can’t. It’s like asking to recreate a 3D scene from a 2D rastered one or have perfect C source from a binary. You can achieve “ATMOS” like but with discrete channels only and once for all.

About noise: I find BM3DCUDA much more accurate and pleasant, leaving SMDegrain to some more noisy cases.

About variable frame rates: you can extract timestamps with various tools and apply back when muxing to MKV. There is an option too in staxrip to deal with it but I never played with it enough.

craigpro
20th November 2024, 08:57
Craigpro, didn't know that was setting , quite like temp files as has text log and some stuff demuxed if need it - I also check SSIM scores


My settings are
--vbr 7000 --codec h265 --preset P7 --output-depth 10 --profile main10 --tier high --level 5.1 --multipass 2pass-full --qp-max 26 --max-bitrate 24000 --aq-temporal --bref-mode each --bframes 4 --ref 5 --lookahead 32 --gop-len 600 --slices 1 --multiref-l0 4 --multiref-l1 2 --no-b-adapt --no-i-adapt --weightp --ssim --psnr --mv-precision q-pel -i

So pretty similar to yours minus vpp-deband etc
the extra precision precision q-pel should technically improve your quality

Just discovered the qp max - probably 26 is a bit demanding and will push bitrates out - i think for you qp max 30 maybe a good choice , will only hit those demanding parts of movie - shouldn't go over your max bitrate

Ie I do encodes at 7000 and get a ssim score of .994 , so didn't really need all those bits , or pnr around 50 plus - For cartoons/anime , you should get close to perfect anyway


Thanks for the reply Joekiwi, I just did a test and with staxrip 2.8.0 and the settings I've been using for the past 3 years I ended up with an SSIM score of 0.966 - I can't notice anything with 1080p video on my 75" TV, so good enough for me (and the 90% reduction in file size from 26GB > 2GB is more than an acceptable transfer for me).

title : Surround 5.1
BPS-eng : 1731917
DURATION-eng : 01:37:04.160000000
NUMBER_OF_FRAMES-eng: 546015
NUMBER_OF_BYTES-eng: 1260870592
SOURCE_ID-eng : 001101
_STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2024-11-08 04:05:02
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
encoder : Lavc59.3.102 pcm_s16le
frame=139640 fps=151 q=-0.0 Lq=-0.0 size=N/A time=01:37:04.15 bitrate=N/A speed= 6.3x
video:120003kB audio:3276090kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[Parsed_ssim_0 @ 000001ce54676f00] SSIM Y:0.960329 (14.015279) U:0.975661 (16.136959) V:0.979870 (16.961561) All:0.966141 (14.703287)
[Parsed_psnr_1 @ 000001ce54678000] PSNR y:41.829373 u:45.371809 v:45.719316 average:42.752872 min:30.327257 max:113.058966

C:\Staxrip\StaxRip-v2.8.0-x64>

I tried the same settings in staxrip 2.42.2 and it was still around the same filesize, but it took longer.. so I think I'm going to stick with my tried and tested settings at the moment, but I will definitely give the qp max setting a bit of a test to see if I can improve it noticeably for not much increase in file size.

jimbobub
9th December 2024, 20:54
Staxrip, Hybrid and Ripbot264 all have audio sync being off. Handbrake, Clever ffmpeg, avidemux and tmpgenc all have good audio sync. I'm converting a home video from dvd that is, according to mediainfo, 29.97 interlaced tff. h264 is the encoder output. I've tried encoding the audio to ac3 and other times I tried passthrough. With various staxrip decoders some show the source file as 29.97 and others 29.918. My goal is to be able to use qtgmc deinterlacer. I tried yadif bob as well with no luck with proper a/v sync. Is there a setting that I am missing that could help? Thanks.

Emulgator
10th December 2024, 03:22
You may report the sourcefilters that assume the wrong fps,
and for DVD decoding I suggest DG's MPEG2Source or DGSource (indexing comes first)
http://avisynth.nl/index.php/DGDecode
http://avisynth.nl/index.php/DGDecNV
and you may feed a Avisynth Script to Staxrip ending with Assumefps("ntsc_video")

jimbobub
10th December 2024, 13:33
Thanks for you response. I'm an intermediate, just barely, when it comes to playing around with stuff such as with the code editor. I'm willing to try but will need some help if you or others are willing. I have staxrip 2.42.2. I did see mpeg2source listed in the source options and I did try that decoder before and it did list the source frame rate correctly but after encoding to mp4, the audio is out of sync. I did not see dgsource listed in source decoders. Regarding dgdecode and dgdecnv, I do not know how to add them to staxrip if not already in there. If they are how to adjust the settings?

jimbobub
10th December 2024, 14:47
To be more exact on what I am trying to do. I have home videos that were transferred from vhs to dvd. I want to convert the dvd mpegs (29.97 interlaced tff) to mp4 bluray (59.94 progressive). Using handbrake for example I was able to do all this with no problem. I used yadif bob for a nice smooth motion video and sync was fine. Handbrake however has no color, contrast and brightness adjustments. On the original vhs videos these are a bit too high. What I like about staxrip is qtgmc and the color, contrast and brightness adjustments.

Emulgator
10th December 2024, 16:13
You may upload a sample.
wetransfer.com, up to 2GB free, uptime now down to 3 days IIRC.

Shuichiyagami
13th December 2024, 13:23
iam just use Staxrip recently, but now i want to try external filters like sharpening, so can somebody gave me the tutorial to use external filters?

Emulgator
14th December 2024, 18:27
You would feed an AviSynth script to Staxrip.
Any tutorial comes with the script or can be taken from
http://avisynth.nl/index.php/External_filters#Sharpeners

Shuichiyagami
31st December 2024, 13:22
I got an error like this when use anti-aliasing script.

Script Error

Python exception: Failed to load L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.

Traceback (most recent call last):
File "src\\cython\\vapoursynth.pyx", line 3124, in vapoursynth._vpy_evaluate
File "src\\cython\\vapoursynth.pyx", line 3125, in vapoursynth._vpy_evaluate
File "L:\Download\[SubsPlease] Shadowverse Flame - 31 (1080p) [EC8C15F3].mkv_temp\[SubsPlease] Shadowverse Flame - 31 (1080p) [EC8C15F3]_new_view.vpy", line 20, in <module>
core.std.LoadPlugin(r"L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll", altsearchpath=True)
File "src\\cython\\vapoursynth.pyx", line 2860, in vapoursynth.Function.__call__
vapoursynth.Error: Failed to load L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.


And how to automatically not include subtitle and attachment if the video we want to encode already have that?

https://i.ibb.co/K687qjZ/Untitled.png (https://ibb.co/K687qjZ)

Emulgator
1st January 2025, 12:58
core.std.LoadPlugin(r"L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll", altsearchpath=True)
the r in Front is suspicious to me. Does it belong there ? Remove it. Reload.
Goto L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll
Is NNEDI3CL.dll there ? If yes, report to the StaxRip developers.

Sub/Attach muxing settings: Staxrip implements these project-based and assumes these as default=yes, keep them
You just untick these:
Project -> Options -> Subtitles -> Default Subtitle -> None
Project -> Options -> Attachments -> Add Attachments to Muxing -> untick

Z2697
1st January 2025, 13:08
core.std.LoadPlugin(r"L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll", altsearchpath=True)
the r in Front is suspicious to me. Does it belong there ? Remove it. Reload.
Goto L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll
Is NNEDI3CL.dll there ? If yes, report to the StaxRip developers.

Sub/Attach muxing settings: Staxrip implements these project-based
Project -> Options -> Subtitles -> Default Subtitle -> None
Project -> Options -> Attachments -> Add Attachments to Muxing -> untick

It's python "raw string literal" that basically just saves the need for escaping (i.e. you can see the single backslash is used instead of double backslash you would normally need)

Z2697
1st January 2025, 13:24
I got an error like this when use anti-aliasing script.

Script Error

Python exception: Failed to load L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.

Traceback (most recent call last):
File "src\\cython\\vapoursynth.pyx", line 3124, in vapoursynth._vpy_evaluate
File "src\\cython\\vapoursynth.pyx", line 3125, in vapoursynth._vpy_evaluate
File "L:\Download\[SubsPlease] Shadowverse Flame - 31 (1080p) [EC8C15F3].mkv_temp\[SubsPlease] Shadowverse Flame - 31 (1080p) [EC8C15F3]_new_view.vpy", line 20, in <module>
core.std.LoadPlugin(r"L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll", altsearchpath=True)
File "src\\cython\\vapoursynth.pyx", line 2860, in vapoursynth.Function.__call__
vapoursynth.Error: Failed to load L:\Fansub\StaxRip-v2.44.0-x64\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.


And how to automatically not include subtitle and attachment if the video we want to encode already have that?

https://i.ibb.co/K687qjZ/Untitled.png (https://ibb.co/K687qjZ)

The template and start up option is likely what you want. Although I'm not sure if the container options is saved with template, haven't used staxrip for quite a while.

Emulgator
1st January 2025, 13:38
r -> python "raw string literal"
Ah, ok.

DMD
1st January 2025, 18:18
Happy New Year to all
In the X264 encoder section (StaxRip 2.44.1) I can't get the commands to hide the items displayed in mediainfo “Witing library and Encoding setting”.
Any ideas?
Thanks


https://i.postimg.cc/wBbCsssp/Immagine-2025-01-01-180953.png

Leo 69
1st January 2025, 20:43
Happy New Year to all
In the X264 encoder section (StaxRip 2.44.1) I can't get the commands to hide the items displayed in mediainfo “Witing library and Encoding setting”.
Any ideas?
Thanks


There's no such setting in StaxRip. You can remove that information with ffmpeg:

ffmpeg -i input.mkv -c copy -bitexact -map_metadata -1 -vbsf filter_units=remove_types=6 output.mkv

DMD
1st January 2025, 21:26
There's no such setting in StaxRip. You can remove that information with ffmpeg:

ffmpeg -i input.mkv -c copy -bitexact -map_metadata -1 -vbsf filter_units=remove_types=6 output.mkv

Can I include the command line in the Custom section?

-QfG-
2nd January 2025, 06:06
--------------------------- Frame Mismatch ---------------------------

WARNING: Target file has -1 frames, but should have 59914 frames!
Encoding was probably terminated at 0,0% with a mismatch of 59915 frames!

Has anyone a solution for this, this is every time during x265 Encode.
Have sync issues with the DV layer, can't fix this error.

In the X264 encoder section (StaxRip 2.44.1) I can't get the commands to hide the items displayed in mediainfo “Witing library and Encoding setting”.

x264 core:164 r3198+7 bf259fa [Mod by Patman] modified (writes no encoding settings). This is the Encoder from StaxRip 2.44.1
https://mega.nz/folder/Qtch1Yjb#6pTc3OusOT7yrOaijOHLsA

DMD
2nd January 2025, 08:42
x264 core:164 r3198+7 bf259fa [Mod by Patman] modified (writes no encoding settings). This is the Encoder from StaxRip 2.44.1
https://mega.nz/folder/Qtch1Yjb#6pTc3OusOT7yrOaijOHLsA
Thank you very much :thanks:
It was what I was looking for, I will keep it carefully.

-QfG-
2nd January 2025, 17:20
If you have a new x264.exe you can send it to me and i will modify the file ;).

DMD
2nd January 2025, 20:39
If you have a new x264.exe you can send it to me and i will modify the file ;).
Thank you.
I'll keep abreast of new releases.

-QfG-
4th January 2025, 16:38
Ok, here the funny result. Using an Old StaxRip Version (v2.3.1) with most identcal settings:
(I can't use 2.44 templates with 2.3.1, so i rebuild it for 2.3.1)
(Thread #4396 (https://forum.doom9.org/showpost.php?p=2012411&postcount=4936))

STAXRIP v2.3.1:

--------------------------- Video encoding ---------------------------

x265 4.1.0.54 [PatMan]

B:\_RIPPING\StaxRip_2.1.3.0\Apps\Support\avs2pipemod\avs2pipemod64.exe -y4mp B:\VIDEO\Arcane.S01E09_temp\Arcane.S01E09.avs | B:\_RIPPING\StaxRip_2.1.3.0\Apps\Encoders\x265\x265.exe --crf 12 --preset slower --tune animation --profile main10 --level-idc 5.1 --vbv-bufsize 90000 --vbv-maxrate 90000 --hme-search umh,umh,star --hme --refine-analysis-type off --min-keyint 1 --keyint 24 --no-open-gop --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)" --hdr10 --colorprim bt2020 --colormatrix bt2020nc --transfer smpte2084 --range limited --repeat-headers --no-info --hrd --aud --uhd-bd --no-strong-intra-smoothing --subme 5 --deblock -1:-1 --bframes 4 --ref 4 --no-sao --no-rect --no-amp --sar 1 --refine-mv 0 --rd 6 --rdoq-level 1 --tu-intra 1 --tu-inter 1 --limit-tu 0 --output-depth 10 --frames 56310 --y4m --output B:\VIDEO\Arcane.S01E09.hevc -

avs2pipemod[info]: writing 56310 frames of 24000/1001 fps, 3840x2160,
sar 0:0, YUV-420-planar-10bit progressive video.
y4m [INFO]: 3840x2160 fps 24000/1001 i420p10 sar 1:1 unknown frame count
raw [INFO]: output file: B:\VIDEO\Arcane.S01E09.hevc
x265 [INFO]: HEVC encoder version 4.1+54+9-0c07fe364 [Mod by Patman]
x265 [INFO]: build info [Windows][MSVC 1942][64 bit] 10bit
x265 [INFO]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [INFO]: Main 10 profile, Level-5.1 (High tier)
x265 [INFO]: Thread pool created using 32 threads
x265 [INFO]: Slices : 1
x265 [INFO]: frame threads / pool features : 6 / wpp(34 rows)
x265 [INFO]: Coding QT: max CU size, min CU size : 64 / 8
x265 [INFO]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [INFO]: HME L0,1,2 / range / subpel / merge : umh, umh, star / 48 / 5 / 4
x265 [INFO]: Keyframe min / max / scenecut / bias : 1 / 24 / 40 / 5.00
x265 [INFO]: Lookahead / bframes / badapt : 40 / 4 / 2
x265 [INFO]: b-pyramid / weightp / weightb : 1 / 1 / 1
x265 [INFO]: References / ref-limit cu / depth : 4 / off / on
x265 [INFO]: AQ: mode / str / qg-size / cu-tree : 2 / 0.4 / 32 / 1
x265 [INFO]: Rate Control / qCompress : CRF-12.0 / 0.60
x265 [INFO]: VBV buffer / maxrate / init : 90000 / 90000 / 0.900
x265 [INFO]: tools: limit-modes rd=6 psy-rd=0.40 rdoq=1 psy-rdoq=1.00
x265 [INFO]: tools: rskip mode=1 signhide tmvp b-intra deblock(tC=-1:B=-1)
x265 [INFO]: tools: dhdr10-info
avs2pipemod[info]: finished, wrote 56310 frames [100%].
avs2pipemod[info]: total elapsed time is 24316.033 sec.
x265 [INFO]: frame I: 2508, Avg QP:12.07 kb/s: 43225.82
x265 [INFO]: frame P: 14182, Avg QP:14.24 kb/s: 30505.64
x265 [INFO]: frame B: 39620, Avg QP:18.04 kb/s: 10256.31
x265 [INFO]: Weighted P-Frames: Y:18.9% UV:9.0%
x265 [INFO]: Weighted B-Frames: Y:10.9% UV:5.4%
encoded 56310 frames in 24324.01s (2.31 fps), 16824.65 kb/s, Avg QP:16.81

Start: 09:13:44
End: 15:59:08
Duration: 06:45:24

General
Complete name : B:\VIDEO\Arcane.S01E09.hevc
Format : HEVC
Format/Info : High Efficiency Video Coding
File size : 4.60 GiB

Video
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2

---------------------------- Job Complete ----------------------------

Start: 09:13:43
End: 15:59:08
Duration: 06:45:25

StaxRip v2.44.1:

--------------------------- Video encoding ---------------------------

x265 4.1+54+9-0c07fe364-.Mod-by-Patman.-x64-avx2-msvc1942

B:\_RIPPING\StaxRip\Apps\Encoders\x265\x265.exe --reader-options library=B:\_RIPPING\StaxRip\Apps\FrameServer\AviSynth\AviSynth.dll --crf 12 --preset veryslow --tune animation --vbv-bufsize 80000 --vbv-maxrate 90000 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)" --hdr10 --colorprim bt2020 --colormatrix bt2020nc --transfer smpte2084 --range limited --chromaloc 2 --dolby-vision-profile 8.1 --dolby-vision-rpu "B:\VIDEO\Arcane - League of Legends - Season 1\Arcane.German.DTSHD.S01E09.2160p.UHD.BluRay.DV.HDR.HEVC.Remux.Repack-QfG.mkv_temp\HDRDVmetadata.rpu" --profile main10 --level-idc 5.1 --rd 6 --rdoq-level 1 --tu-intra 1 --tu-inter 1 --limit-tu 0 --sar 1 --qcomp 0.6 --ref 4 --bframes 4 --selective-sao 0 --rskip 0 --no-open-gop --no-info --no-sao --no-rect --no-amp --hme-search umh,umh,star --hme --repeat-headers --aud --uhd-bd --min-keyint 1 --keyint 24 --hrd --hdr --hdr-opt --output-depth 10 --output "B:\VIDEO\Arcane - League of Legends - Season 1\Arcane.German.DTSHD.S01E09.2160p.UHD.BluRay.DV.HDR.HEVC.Remux.Repack-QfG.hevc" --input "B:\VIDEO\Arcane - League of Legends - Season 1\Arcane.German.DTSHD.S01E09.2160p.UHD.BluRay.DV.HDR.HEVC.Remux.Repack-QfG.mkv_temp\Arcane.German.DTSHD.S01E09.2160p.UHD.BluRay.DV.HDR.HEVC.Remux.Repack-QfG.avs"

avs+ [INFO]: using external Avisynth library from: "B:\_RIPPING\StaxRip\Apps\FrameServer\AviSynth\AviSynth.dll"
avs+ [INFO]: AviSynth+ 3.7.3 (r4003, 3.7, x86_64)
avs+ [INFO]: 3840x2160 fps 24000/1001 i420p10 sar 1:1 frames 0 - 56309 of 56310
raw [INFO]: output file: B:\VIDEO\Arcane - League of Legends - Season 1\Arcane.German.DTSHD.S01E09.2160p.UHD.BluRay.DV.HDR.HEVC.Remux.Repack-QfG.hevc
x265 [INFO]: HEVC encoder version 4.1+54+9-0c07fe364 [Mod by Patman]
x265 [INFO]: build info [Windows][MSVC 1942][64 bit] 10bit
x265 [INFO]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [INFO]: Main 10 profile, Level-5.1 (High tier)
x265 [INFO]: Thread pool created using 32 threads
x265 [INFO]: Slices : 1
x265 [INFO]: frame threads / pool features : 6 / wpp(34 rows)
x265 [INFO]: Coding QT: max CU size, min CU size : 64 / 8
x265 [INFO]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [INFO]: HME L0,1,2 / range / subpel / merge : umh, umh, star / 48 / 4 / 5
x265 [INFO]: Keyframe min / max / scenecut / bias : 1 / 24 / 40 / 5.00
x265 [INFO]: Lookahead / bframes / badapt : 40 / 4 / 2
x265 [INFO]: b-pyramid / weightp / weightb : 1 / 1 / 1
x265 [INFO]: References / ref-limit cu / depth : 4 / off / off
x265 [INFO]: AQ: mode / str / qg-size / cu-tree : 2 / 0.4 / 32 / 1
x265 [INFO]: Rate Control / qCompress : CRF-12.0 / 0.60
x265 [INFO]: VBV buffer / maxrate / init : 80000 / 90000 / 0.900
x265 [INFO]: tools: rd=6 psy-rd=0.40 rdoq=1 psy-rdoq=1.00 signhide tmvp b-intra
x265 [INFO]: tools: strong-intra-smoothing deblock(tC=1:B=1) dhdr10-info
x265 [INFO]: VES muxing with Dolby Vision RPU file successful in x265
x265 [INFO]: frame I: 2508, Avg QP:14.78 kb/s: 28317.83
x265 [INFO]: frame P: 14182, Avg QP:16.85 kb/s: 18461.53
x265 [INFO]: frame B: 39620, Avg QP:19.81 kb/s: 5210.96
x265 [INFO]: Weighted P-Frames: Y:20.3% UV:10.4%
x265 [INFO]: Weighted B-Frames: Y:13.2% UV:7.2%
encoded 56310 frames in 29991.06s (1.88 fps), 9577.36 kb/s, Avg QP:18.84

Start: 04:32:34
End: 12:52:27
Duration: 08:19:52

General
Complete name : B:\VIDEO\Arcane - League of Legends - Season 1\Arcane.German.DTSHD.S01E09.2160p.UHD.BluRay.DV.HDR.HEVC.Remux.Repack-QfG.hevc
Format : HEVC
Format/Info : High Efficiency Video Coding
File size : 2.63 GiB
Frame rate : 23.976 FPS

Video
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2

---------------------------- Job Complete ----------------------------

Start: 04:32:34
End: 12:52:27
Duration: 08:19:52

--------------------------- Frame Mismatch ---------------------------

WARNING: Target file has -1 frames, but should have 56310 frames!
Encoding was probably terminated at 0,0% with a mismatch of 56311 frames!

I think there is any pipeline problem with StaxRip 2.44x. :(
I using the same Encoder (x265 from StaxRip 2.44.1).
Also no A/V sync errors after Muxing FEL from original file.

Emulgator
5th January 2025, 01:18
Sounds familiar: I had the -1 frame problem with Topaz and certain more recent builds (uvz4073) of AviSynth.
pinterf's r4066 worked. I read r4003 from your log.

K.i.N.G
10th January 2025, 15:09
When using vapoursynth in staxrip, how can i adjust a filter parameter on specific frames and/or apply filters only to specific frames?

For example increase denoising strength on single frame flashes that seem hard to denoise (like muzzleflashes of guns in grainy footage).

I asked chatgpt and it keeps telling me to do it this way (i used a convert to greyscale to as a quicktest):

# Function to apply filter to specific frames
def filter_selected_frames(n, clip):
if n in [100, 200, 300]: # Apply filter only to frames 100, 200, and 300
return core.resize.Bicubic(clip, format=vs.GRAY8) # Apply the filter
return clip # Return unmodified frame for others

# Apply the conditional filter and store the result back in 'clip'
clip = core.std.FrameEval(clip, filter_selected_frames, prop_src=clip)

But it doesnt work in staxrip...

The UI itself gives no error in the statusbox below, but when i run the script i get this:

Error Video encoding (v2.44.1)

x265 x265-4.1+54+9-0c07fe364-.Mod-by-Patman.-x64-alderlake-gcc14.2.0

C:\Tools\StaxRip-v2.44.1-x64\Apps\Encoders\x265\x265.exe --reader-options library=C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll --crf 17 --preset slower --output-depth 10 --profile main10 --level-idc 5 --high-tier --rd-refine --psy-rdoq 1.33 --rskip-edge-threshold 4 --ctu 32 --qcomp 0.65 --nr-intra 10 --nr-inter 20 --vbv-bufsize 40000 --vbv-maxrate 40000 --merange 60 --max-merge 3 --rc-lookahead 48 --keyint 360 --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --hdr10 --colorprim bt2020 --colormatrix bt2020nc --transfer smpte2084 --range limited --hdr10-opt --chromaloc 2 --repeat-headers --aud --hrd --deblock -3:-3 --no-sao --output "D:\0\CUT_4-normalx265Settings_6_out.hevc" --input "D:\0\CUT_4-normalx265Settings_6.vpy"

vpy [INFO]: using external VapourSynth library from: "C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll"
vpy [INFO]: VapourSynth Core R70
vpy [FLAW]:
Traceback (most recent call last):
File "src\\cython\\vapoursynth.pyx", line 3216, in vapoursynth.publicFunction
File "src\\cython\\vapoursynth.pyx", line 3218, in vapoursynth.publicFunction
File "src\\cython\\vapoursynth.pyx", line 834, in vapours occurred while getting frame 0
x265 [FLAW]: unable to open input file <D:\0\CUT_4-normalx265Settings_6.vpy>


Video encoding returned exit code: 1 (0x1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

StaxRip.ErrorAbortException: x265 x265-4.1+54+9-0c07fe364-.Mod-by-Patman.-x64-alderlake-gcc14.2.0

C:\Tools\StaxRip-v2.44.1-x64\Apps\Encoders\x265\x265.exe --reader-options library=C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll --crf 17 --preset slower --output-depth 10 --profile main10 --level-idc 5 --high-tier --rd-refine --psy-rdoq 1.33 --rskip-edge-threshold 4 --ctu 32 --qcomp 0.65 --nr-intra 10 --nr-inter 20 --vbv-bufsize 40000 --vbv-maxrate 40000 --merange 60 --max-merge 3 --rc-lookahead 48 --keyint 360 --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --hdr10 --colorprim bt2020 --colormatrix bt2020nc --transfer smpte2084 --range limited --hdr10-opt --chromaloc 2 --repeat-headers --aud --hrd --deblock -3:-3 --no-sao --output "D:\0\CUT_4-normalx265Settings_6_out.hevc" --input "D:\0\CUT_4-normalx265Settings_6.vpy"

vpy [INFO]: using external VapourSynth library from: "C:\Tools\StaxRip-v2.44.1-x64\Apps\FrameServer\VapourSynth\VSScript.dll"
vpy [INFO]: VapourSynth Core R70
vpy [FLAW]:
Traceback (most recent call last):
File "src\\cython\\vapoursynth.pyx", line 3216, in vapoursynth.publicFunction
File "src\\cython\\vapoursynth.pyx", line 3218, in vapoursynth.publicFunction
File "src\\cython\\vapoursynth.pyx", line 834, in vapours occurred while getting frame 0
x265 [FLAW]: unable to open input file <D:\0\CUT_4-normalx265Settings_6.vpy>


Video encoding returned exit code: 1 (0x1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


at StaxRip.Proc.Start() in D:\Code\Github\staxrip\staxrip\Source\General\Proc.vb:line 366
at StaxRip.x265Enc.Encode(String passName, String commandLine, ProcessPriorityClass priority) in D:\Code\Github\staxrip\staxrip\Source\Encoding\x265Enc.vb:line 109
at StaxRip.x265Enc.Encode() in D:\Code\Github\staxrip\staxrip\Source\Encoding\x265Enc.vb:line 79
at StaxRip.GlobalClass._Closure$__._Lambda$__141-7() in D:\Code\Github\staxrip\staxrip\Source\General\GlobalClass.vb:line 367
at System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at StaxRip.GlobalClass.ProcessJob(String jobPath) in D:\Code\Github\staxrip\staxrip\Source\General\GlobalClass.vb:line 376

DMD
12th January 2025, 22:16
If you have a new x264.exe you can send it to me and i will modify the file ;).

New version x264-0.164.3204+8-8241910-[Mod-by-Patman]
https://github.com/Patman86/x264-Mod-by-Patman/releases/tag/0.164.3204%2B8

If it is also possible with this file.
Thank you

Trench
16th January 2025, 15:31
(Originally posted as https://forum.videohelp.com/threads/369913-StaxRip/page24#post2764022.)

I think I've googled sufficiently to say it doesn't exist, but doesn't hurt to ask: Is there any existing way I could convince existing StaxRip releases to add the "-no-check" parameter to any MP4Box command line it needs to generate when demuxing?

I've encountered more than one MP4 container which ends up throwing error, specifically about "not enough bytes in box colr: 6 left, reading 7":

StaxRip.ErrorAbortException: MP4Box 2.5-DEV-rev1021-g49a598895-x64-msvc1942

[isom] not enough bytes in box colr: 6 left, reading 7 (file H:\repos\gpac\src\isomedia\iff.c, line 226) - try specifying -no-check (might crash)
[iso file] Read Box "colr" (start 10855184763) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "avc1" (start 10855184623) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "stsd" (start 10855184607) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "stbl" (start 10855184599) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "minf" (start 10855184535) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "mdia" (start 10855184450) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "trak" (start 10855184314) failed (Invalid IsoMedia File) - skipping
[iso file] Read Box "moov" (start 10855184198) failed (Invalid IsoMedia File) - skipping

Which stops any further processing. In my particular instances, the MP4 files play fine as-is, and even the demux generates valid exports of all the track types when I manually figure out the needed MP4Box commands and then add "-no-check". I'm about to do it for a second time, so I just wanted to ask whether StaxRip might already have a way to add this without me manually doing the work to demux the MP4.

If it's not already there, does this seem worthy of me making a bug in the tracker, or is there a better place for "enhancement requests." Clearly for any MP4 I'm in control of generating, I would instead want to solve why the generated MP4 isn't valid. But for users of StaxRip receiving an MP4 which they can't otherwise "fix", perhaps having the "use -no-check" option would save them some grief and let StaxRip help them potentially get past the issue.

Oh, the idea didn't come to mind until writing this: Can I get StaxRip to reveal all the demux command lines it intends to generate for the current file? Because that's really "the issue"; because StaxRip processing aborts on the first demux command line that fails, I can't just "look at the StaxRip log" to see all the command lines needed and add -no-check to them to run them manually myself. Only the first failed command line is in the log. StaxRip is willing to preview me the command lines for the encodings it intends to perform, but if it will preview me the demux command lines, I've missed it.

lexx2
6th February 2025, 17:29
Question! Can Staxrip make use of the ssimulacra2 implementation in vapoursynth? Having viewed a bunch of encoding quality metrics and apps, I'm convinced that for high fidelity, VMAF is useless and ssimulacra2 is what I need to use. I haven't been able to find any implementation of it where I can compare an original file to a transcoded file and get output metrics. Then I saw that Staxrip can use vapoursynth in...some way... and there's an implementation of ssimulacra2 for vapoursynth.

//I'm in way over my head here. I'm...basically...familiar with CLI syntax, but not Linux shells, regular expressions, etc.

Shuichiyagami
16th February 2025, 13:48
Why my staxrip always ask "The target file already exist" like this every time after done encoding. Even though it really a new name file and not same like the raw file.

https://i.ibb.co.com/SDcxbvsF/RTYS.png (https://ibb.co.com/SDcxbvsF)

Emulgator
16th February 2025, 15:11
Unlucky wording, I guess, and I found it so from the first day I used StaxRip.
Maybe to keep you from pressing Accept/Next button again and overwriting the just finished encode.
Could be changed to "Target file encoded", and green, and only switching to abovementioned behaviour when Accept/Next button is pressed again.

Magik Mark
24th February 2025, 12:52
I have been trying to search for a guide that would convert DOVI to HDR. Can someone point me to the right direction?

Thanks

salvo00786
6th March 2025, 21:15
Hi... I updated to the latest version of Staxrip, but I don't know how to use Super Resolution or Nvidia VSR in encoder NVEncC options.

First of all, what are the differences between NVIDIA Super Resolution and NVIDIA VSR, what isthe best between these two?

If i select these in encoder options/resize, the file is not upscaled. How can I enable the upscale?

Emulgator
7th March 2025, 09:59
--output-res <int>x<int>[,<string>=<string>]
Set output resolution. When it is different from the input resolution, HW/GPU resizer will be activated automatically.
All other available resizer parameters and their dependencies see
https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md
These are a lot, and this may change daily with availability of implementations, so I better link to.
Just use CTRL+F vpp-resize in your browser and you will land somewhere in the last quarter.
Which algo is best you will tell after applying and reporting.

lordalibaski
31st March 2025, 19:43
Just installed the latest version and got this error

DirectoryNotFoundException (v2.46.1)

Could not find a part of the path 'D:\01 - My VHS and DVD\02 - ITF DJ Championships\1997 ITF USA Championships Advancement Class Eliminations Tape 2\1997 ITF USA Championships Advancement Class Eliminations Tape 2.mpeg_temp\1997 ITF USA Championships Advancement Class Eliminations Tape 2_staxrip.log'.

System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\01 - My VHS and DVD\02 - ITF DJ Championships\1997 ITF USA Championships Advancement Class Eliminations Tape 2\1997 ITF USA Championships Advancement Class Eliminations Tape 2.mpeg_temp\1997 ITF USA Championships Advancement Class Eliminations Tape 2_staxrip.log'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at StaxRip.StringExtensions.WriteFile(String instance, String path, Encoding encoding) in D:\Code\Github\staxrip\staxrip\Source\General\Extensions.vb:line 609

Emulgator
31st March 2025, 23:03
Path too long (266 characters)

lordalibaski
1st April 2025, 22:55
Why I didn't notice that I don't know, just checked the last time I converted it the title was just 1997 ITF USA Championships Advancement Class.

TR-9970X
8th April 2025, 07:49
Why I didn't notice that I don't know, just checked the last time I converted it the title was just 1997 ITF USA Championships Advancement Class.

Check your sig, are you sure you have an AMD 9550x3D ??

lordalibaski
9th April 2025, 00:13
I am sure why?

You sure you have all those running as your main systems!!

TR-9970X
9th April 2025, 00:30
I am sure why?

You sure you have all those running as your main systems!!

I've never heard of a 9550X3D, that's all.

Absolutely !!!

lordalibaski
9th April 2025, 00:59
You haven't heard of one but you have it in your sig!!

https://www.amd.com/en/products/processors/desktops/ryzen/9000-series/amd-ryzen-9-9950x3d.html

I actually got it on launch from overclockers.co.uk this will probably be my last system I purchase being the old fart I am.