View Full Version : StaxRip 2.0 Support Thread
Revan654
8th March 2019, 01:49
StaxRip is the best tool,
congratulations
Please add
ffmpeg | AMD | Amd H.264 -c:v h264_amf
ffmpeg | AMD | Amd H.265 -c:v hevc_amf
VCEEncC replace with version 4.02 (https://drive.google.com/open?id=1FsRO-F8jNYYGz8OLijEst9usH-jc8LVI)by rigaya, build Dec 11 2018 21:03:34,
and add :
--crop <int>,<int>,<int>,<int>
set crop pixels of left, up, right, bottom.
option.
I have Amd Ryzen7 with VEGA 10 (https://www.amd.com/en/products/apu/amd-ryzen-7-2700u)
With VCEEncC (x64) 4.02 it encodes 120 FPS 1080 HEVC using LAV Video Decoder 0.73.1
thank you
Crop already exists, it has for a very long time. It's done by using crop hardware function.
Revan654
8th March 2019, 21:07
Release 2.0.0.1 Beta
2.0.0.1 Beta
- Tweaked the Groupbox UI Scaling for lower DPI Monitors (Credit: Stax76)
- This is a pure Refresh Release, Mainily designed to update some of the encoding tools.
- This Release contains all the Changes from the Pipeline along with the Following.
- Updated Temp Folder Creation and Long Path Checker (Usually Only used on OS below Windows 10 or Non-NTFS harddrive)
- Updated Comparison Tool It shouldn't need to index file when ffms2 is used.
- Updated Both Contact Sheet Creator and Video Comparison tool to use LWLibavVideoSource over the Standard L-Smash.
- Updated Visual Studio to 2019 RC, Anything Compiled will be using RC Build of VS 2019.
- Included additional config files for dotnet 4.8 along with standard 4.7.2.
- VS: The default Resizer Code is slightly Different Compared to Base VS Resizer Code in the Context Menu.
- VS: SVPFlow Altered to Target CurrentFramte & Num / Den to achieve the Final Framerate instead of rounding. Type quality has also been Changed, aswell linear light support has been added (GPU Only).
- x265: AQmode Tweaked for the new Defaults.
- XAA Remove from AVS (Temp), due to certain Functions being alter in AVS+ core. Will be Re-Added Once Re-Coded.
- VS: Updated DGIndexNV Load Function It now loads using it's native method instead of AVS load function.
- VS: G41Fun replaces hnwvsfunc
- VS: hnwvsfunc Script removed
- VS: fvsfunc functions updated
- VS: Auto-Deblock Added to Context Menu
- VS: nnedi3_rpow2 added to Script folder for Support.
- VS: Added FixTelecinedFades to Context Menu for RCR.
- Core: Fixed Some of Search Paths, They didn't include the sub folders in rare cases.
- Rebuilt QVSEnc Encoder Script, Added Pre-Check and Will become Enabled as long as your CPU support QSV Encoding(Note Some QSV enabled CPU's only support decoding).
- x265 Has been updated to 3.0-AU+ With any Additional Changes.
- Tweaked some of the x265 profiles to include the new defaults.
- Changed the default CFR to the default (28.0)
- Added Merge: XviD Encoding code has been Updated (Credit: jkilez)
- Added Merge: Chapter Cutting Feature to MkvMuxer (Credit: wybb)
- Rav1e Added The Following Flags(In Progress):
- content_light(aka MAX CLL / FALL)
- Bitrate
- Passes
- Threads
- Range
- mastering_display
*Note dotnet 4.8 is in RC Stage this is the same Release that will be included in the next update of Windows 10. So you can download the Preview if you wish to use dotnet 4.8 now. This is also the first Staxrip compiled with VS 2019 RC.
Link: https://github.com/Revan654/staxrip/releases/download/2.0.0.1/Staxrip.2.0.0.1.Beta.rar
The File size did shrink some how. Last Release: 297 MB, This Release: 274 MB
suckerpuncher
9th March 2019, 08:59
Thanks for the new Beta.
I found one issue so far. When trying to use ffmpeg and QSVEncC I get the following error message:
Video encoding using QSVEnc 3.17 failed with exit code: 1 (0x1)
The exit code might be a system error code: STATUS_WAIT_1
The exit code might be a system error code: Unzulässige Funktion.
y4m: failed to parse y4m header.
It worked before in StaxRip.2.0.0.0 without any problems.
There seems to be an issue with the provided ffmpeg.exe. Updating the ffmpeg.exe to the latest version fixes this in case anyone else has this error.
wallander
9th March 2019, 18:13
Revan654,
thank you for the new Beta!
Can I copy my *.srip template- files from 2.0.0.0-release to 2.0.0.1-beta?
I have about 10 templates and it is much work to generate the files new in every version.
...when I update Avisynth+ in my windows 10 system over the 2.0.0.1-beta, are problems to be expected in the operation of the previous version 2.0.0.0-release?
Thank you for help :)
Revan654
9th March 2019, 18:21
Revan654,
thank you for the new Beta!
Can I copy my *.srip template- files from 2.0.0.0-release to 2.0.0.1-beta?
I have about 10 templates and it is much work to generate the files new in every version.
Thank you for help :)
Templates files are fine, Since they don't really change.
wallander
10th March 2019, 06:03
@Revan654, thank you for answer.
What ist with updated Avisynth+ from 2728 to 2772.
Does it work fine with StaxRip 2.0.0.0-release (if I have to go back to the release version)?
stax76
11th March 2019, 10:42
@Revan654
The visual clitch I reported does still appear using your latest release. Was that built before you fixed the issue? I checked the file modified date but it's not present in the rar archieve, using the packer from www.7-zip.org the dates are preserved. To prepare a release or test build I used a utility written in VB.NET, for mpv.net I use powershell, looks like so.
$scriptDir = Split-Path -Path $PSCommandPath -Parent
$exePath = $scriptDir + "\mpv.net\bin\Debug\mpvnet.exe"
$version = [Diagnostics.FileVersionInfo]::GetVersionInfo($exePath).FileVersion
$desktopDir = [Environment]::GetFolderPath("Desktop")
$targetDir = $desktopDir + "\mpv.net-" + $version
if (Test-Path $targetDir) { rd $targetDir -recurse }
Copy-Item $scriptDir\mpv.net\bin\Debug $targetDir -recurse
$addonDir = $targetDir + "\Addons"
remove-item $addonDir -Recurse -Include *mpvnet.exe, *mpvnet.exe.config, *mpvnet.pdb
$7zPath = "C:\Program Files\7-Zip\7z.exe"
$args = "a -t7z -mx9 $targetDir.7z -r $targetDir\*"
Start-Process -FilePath $7zPath -ArgumentList $args
Shared Sub ReleaseStaxRip()
Dim sourceDir = "D:\Projekte\VS\VB\StaxRip\bin\"
Dim version = Assembly.LoadFile(sourceDir + "StaxRip.exe").GetName.Version
Dim releaseType = "-stable"
If version.Revision <> 0 Then releaseType = "-test"
If Not Directory.Exists(sourceDir) Then
Msg("Source directory not found." + BR2 + sourceDir, MessageBoxIcon.Error)
Exit Sub
End If
Dim info = FileVersionInfo.GetVersionInfo(sourceDir + "StaxRip.exe")
Dim targetDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
"StaxRip-x64-" + info.FileVersion + releaseType + "\")
FileSysUtil.DeleteDir(targetDir)
FileSystem.CopyDirectory(sourceDir, targetDir)
For Each i In Directory.GetDirectories(targetDir + "Apps\Plugins\vs")
Dim cacheDir = i + "\__pycache__"
If Directory.Exists(cacheDir) Then FileSysUtil.DeleteDir(cacheDir)
Next
FileSysUtil.DeleteDir(targetDir + ".vs")
FileSysUtil.DeleteDir(targetDir + "Apps\qaac\QTfiles64")
FileSysUtil.DeleteFile(targetDir + "debug.log")
FileSysUtil.DeleteFile(targetDir + "_StaxRip.log")
FileSysUtil.DeleteFile(targetDir + "StaxRip.vshost.exe")
FileSysUtil.DeleteFile(targetDir + "StaxRip.vshost.sln")
FileSysUtil.DeleteFile(targetDir + "StaxRip.vshost.exe.config")
FileSysUtil.DeleteFile(targetDir + "StaxRip.vshost.exe.manifest")
FileSysUtil.DeleteFile(targetDir + "Apps\eac3to\log.txt")
FileSysUtil.DeleteFile(targetDir + "Apps\DGIndex\DGIndex.ini")
FileSysUtil.DeleteFile(targetDir + "Apps\MKVToolNix\mkvtoolnix.ini")
FileSysUtil.DeleteFile(targetDir + "Apps\MKVToolNix\mkvtoolnix-gui.ini")
FileSysUtil.DeleteFile(targetDir + "Apps\ProjectX\X.ini")
FileSysUtil.DeleteFile(targetDir + "Apps\AVSMeter\AVSMeter.ini")
For Each i In Directory.GetFiles(targetDir, "*.ini", IO.SearchOption.AllDirectories)
Msg(i, MessageBoxIcon.Exclamation)
Exit Sub
Next
Pack({targetDir}.ToList)
If releaseType = "-test" Then
For Each i In {
"C:\Users\Frank\Dropbox\public\StaxRip\Builds\",
"C:\Users\Frank\OneDrive\StaxRip test build\"}
FileSystem.CopyFile(targetDir.TrimEnd("\"c) + ".7z", i + DirPath.GetName(targetDir) + ".7z", UIOption.AllDialogs)
Process.Start(i)
Next
End If
End Sub
Shared Sub Pack(args As List(Of String))
For Each i In args
If i.EndsWith("\") Then i = i.TrimEnd("\"c)
Dim targetName = i + ".7z"
i += "\" + "*"
Using p As New Process
p.StartInfo.FileName = Environment.ExpandEnvironmentVariables("%programfiles%\7-Zip\7z.exe")
p.StartInfo.Arguments = " a -t7z -mx9 """ + targetName + """ -r """ + i + """"
p.Start()
p.WaitForExit()
If p.ExitCode <> 0 Then Throw New Exception("7z failed with exit code " + p.ExitCode.ToString + ".")
End Using
Next
End Sub
leo5111
11th March 2019, 14:56
i installed 2.0 staxrip from dec and using my nvidia card for nvidea265 is SLOW like 15fps same file on 1.7 is like 160fps? what setting am i missing?
Revan654
12th March 2019, 02:04
@Revan654
snip
don't think the files synced up.
This version will have the fix: https://ci.appveyor.com/project/Revan654/staxrip/build/artifacts.
Not sure what the problem was with the UI not scaling at on some DPI's.
Revan654
12th March 2019, 02:05
@Revan654, thank you for answer.
What ist with updated Avisynth+ from 2728 to 2772.
Does it work fine with StaxRip 2.0.0.0-release (if I have to go back to the release version)?
The build shouldn't matter, unless function is changed and it affects scripts or plugins.
stax76
12th March 2019, 04:47
@Revan654
It renders fine now, thanks!
I've made a pull request to install FFTW only if needed:
https://github.com/Revan654/staxrip/pull/87/files
Mister XY
12th March 2019, 06:04
Same problem with mediainfo.dll . This is the same error looks like many weeks before.
ukmark
12th March 2019, 14:23
Hi,
A very small cosmetic issue. When on the main StaxRip window, where you see the video codec and container chosen on the RHS, the descriptions for the x265 quality settings are the same as x264. As x265 is more efficient than x264, should the descriptions for x265 be changed?
For example, quality of 26 shows as "very low" for both x264 and x265. Should a setting of 26 for x265 be set to "medium"?? There is a link below to an ffmpeg doc saying that CRF 23 on x264 is about the same as CRF 28 on x265.
https://trac.ffmpeg.org/wiki/Encode/H.265
hailingyou
12th March 2019, 15:00
I've been wanting to try StaxRip 2.0.0.0 after it was recently recommended to me but I'm having a difficult time getting it to run.
When I first run it and try to load a video it prompts me to install avisynth+ which installs fine. Then it prompts me to install FFTW, and when I click on that it returns an error. I have also manually added the .dll's described in the link http://avisynth.nl/index.php/QTGMC but it still gives me the error.
Any idea on how to get running? Thanks.
https://i.imgur.com/BFVWJPk.jpg
Revan654
12th March 2019, 18:03
I've been wanting to try StaxRip 2.0.0.0 after it was recently recommended to me but I'm having a difficult time getting it to run.
When I first run it and try to load a video it prompts me to install avisynth+ which installs fine. Then it prompts me to install FFTW, and when I click on that it returns an error. I have also manually added the .dll's described in the link http://avisynth.nl/index.php/QTGMC but it still gives me the error.
Any idea on how to get running? Thanks.
https://i.imgur.com/BFVWJPk.jpg
That should have been fixed, Just drop the fftw files into your system folder.
Revan654
12th March 2019, 18:05
Hi,
A very small cosmetic issue. When on the main StaxRip window, where you see the video codec and container chosen on the RHS, the descriptions for the x265 quality settings are the same as x264. As x265 is more efficient than x264, should the descriptions for x265 be changed?
For example, quality of 26 shows as "very low" for both x264 and x265. Should a setting of 26 for x265 be set to "medium"?? There is a link below to an ffmpeg doc saying that CRF 23 on x264 is about the same as CRF 28 on x265.
https://trac.ffmpeg.org/wiki/Encode/H.265
I started to change them, I never got around to finish it.
I just have way to many projects I'm working on, Plus switching from c# to VB can be slightly annoying. I don't have allot of extra time to make some changes I have ideas for. Plus I have to switch from WPF to WinForms.
hailingyou
12th March 2019, 20:18
That should have been fixed, Just drop the fftw files into your system folder.
Thanks, It worked fine in 2.0.0.1 Beta.
jonrodrigos
12th March 2019, 22:19
Hello friends, I have come to ask for the help of everyone with a problem that I try to solve for months and I can not find a way to solve it.
I already activated the HDR in windows 10 and QLED55q6fn TV and everything seems to work normal, since in games the HDR activates normally and stays show.
I use staxrip to convert my videos, usually movies I down in 1080p remux h264 (.mkv) or 4k h265 all without HDR.
But all the videos I try to convert with the staxrip using x265 10bit adding HDR settings does not look good, it looks like the image is too red, and with too much contrast or gamma I can not say for sure what it is exactly.
I also used the Nvidia h265 10bit configuration with HDR configuration and it conforms to the phitos.
already tried to convert the video with commands ffmpeg adding HDR commands and the same thing happens.
already tried all kinds of configuration and nothing.
What can I be doing wrong?
follow images below and images of the current staxrip, use version 2.0.0.0 - x64.
Setting the video after conversion
mediainfo
Video
ID: 1
Format: HEVC
Format / Info: High Efficiency Video Coding
Commercial name: HDR10
Format profile: Main 10 @ L6.2 @ High
Codec ID: V_MPEGH / ISO / HEVC
Duration: 2 h 29 min
Bit rate: 5 883 kb / s
Width: 1 920 pixels
Height: 1 080 pixels
Display aspect ratio: 2.40: 1
Frame rate mode: Constant
Frame rate: 23.976 (24000/1001) FPS
Color space: YUV
Chroma subsampling: 4: 2: 0
Bit depth: 10 bit
Bits / (Pixel * Frame): 0.118
Stream size: 6.14 GiB (91%)
Language: English
Default: Yes
Forced: No
Color range: Limited
Primary color: BT.2020
Transfer characteristics: PQ
Matrix coefficients: BT.2020 non-constant
Mastering display primary color: BT.2020
Mastering display luminance: min: 0.0001 cd / m2, max: 1000 cd / m2
Maximum Content Light Level: 1000 cd / m2
Maximum Frame-Average Light Le: 1 cd / m2
images with HDR color problem
https://i.imgur.com/HOJW7cN.jpg
https://i.imgur.com/KM0LE64.jpg
https://i.imgur.com/n6yXd5A.jpg
images without HDR enabled
https://i.imgur.com/Qjin6qw.jpg
https://i.imgur.com/APbcEmn.jpg
https://i.imgur.com/RTAp1XM.jpg
image Staxrip config
https://i.imgur.com/yZdPsfU.jpg
https://i.imgur.com/5vsmzV8.jpg
https://i.imgur.com/XpW7nhL.jpg
https://i.imgur.com/6vrLEQ0.jpg
AMED
13th March 2019, 04:14
I'm having an issue with 2.0.1beta where it seems to fail the audio conversion from DTS to AAC\M4A. If i roll back to the 2.0.0 bundle it works as it should.
EDIT: Gah it's mediainfo.dll causing it, copied the 2.0.0 version over the top of the 2.0.1 version and it works.
-------------------------- System Environment --------------------------
StaxRip : 2.0.0.1
Windows : Windows 10 Education 1809
Language : English (New Zealand)
CPU : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
GPU : Radeon RX 580 Series
Resolution : 2560 x 1440
DPI : 96
------------------------ MediaInfo Source File ------------------------
W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv
General
Complete name : W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv
Format : Matroska
Format version : Version 4
File size : 36.6 MiB
Duration : 55 min 28 s
Overall bit rate : 92.3 kb/s
Encoded date : UTC 2019-03-08 21:40:34
Writing application : mkvmerge v31.0.0 ('Dolores In A Shoestand') 64-bit
Writing library : libebml v1.3.6 + libmatroska v1.4.9
IsTruncated : Yes
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format, CABAC : Yes
Format, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 55 min 28 s
Nominal bit rate : 8 732 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.176
Writing library : x264 core 144 r2525 40bb568
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 55 min 28 s
Bit rate mode : Constant
Bit rate : 1 509 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 599 MiB
Language : English
Default : Yes
Forced : No
Text #1
ID : 3
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Language : English
Default : No
Forced : No
Text #2
ID : 4
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Language : English
Default : No
Forced : No
Menu
00 : 00:00.000 : en:00:00:00.000
00 : 01:19.830 : en:00:01:19.830
00 : 06:37.480 : en:00:06:37.480
00 : 15:21.629 : en:00:15:21.629
00 : 25:20.811 : en:00:25:20.811
00 : 35:55.904 : en:00:35:55.904
00 : 45:14.754 : en:00:45:14.754
00 : 54:10.622 : en:00:54:10.622
------------------ Demux MKV using mkvextract 31.0.0 ------------------
D:\Staxrip.2.0.0.1.Beta\Apps\Support\MKVToolNix\mkvextract.exe "W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv" tracks 2:"C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID3 English" 3:"C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID4 English" 1:"C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka" --ui-language en
Extracting track 1 with the CodecID 'A_DTS' to the file 'C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka'. Container format: Digital Theater System (DTS)
Extracting track 2 with the CodecID 'S_VOBSUB' to the file 'C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.sub'. Container format: VobSubs
Error: Failed to create the VobSub data file 'C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.sub': open file error
Start: 3:50:01 PM
End: 3:50:01 PM
Duration: 00:00:00
General
Complete name : C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka
File size : 0.00 Byte
-------------- Demux xml chapters using mkvextract 31.0.0 --------------
D:\Staxrip.2.0.0.1.Beta\Apps\Support\MKVToolNix\mkvextract.exe "W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv" chapters "C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS_chapters.xml"
File 'W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv': container: Matroska
Track ID 0: video (MPEG-4p10/AVC/h.264)
Track ID 1: audio (DTS)
Track ID 2: subtitles (VobSub)
Track ID 3: subtitles (VobSub)
Chapters: 8 entries
Start: 3:50:01 PM
End: 3:50:02 PM
Duration: 00:00:00
-------------- Demux ogg chapters using mkvextract 31.0.0 --------------
D:\Staxrip.2.0.0.1.Beta\Apps\Support\MKVToolNix\mkvextract.exe "W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv" chapters "C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS_chapters.txt" --simple
File 'W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv': container: Matroska
Track ID 0: video (MPEG-4p10/AVC/h.264)
Track ID 1: audio (DTS)
Track ID 2: subtitles (VobSub)
Track ID 3: subtitles (VobSub)
Chapters: 8 entries
Start: 3:50:02 PM
End: 3:50:02 PM
Duration: 00:00:00
----------------------- Indexing using ffmsindex -----------------------
D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\both\ffms2\ffmsindex.exe "W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv" "C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS.ffindex"
Writing index... done.
Start: 3:50:02 PM
End: 3:50:02 PM
Duration: 00:00:00
-------------------------- VapourSynth Script --------------------------
import os
import sys
ScriptPath = 'D:/Staxrip.2.0.0.1.Beta/Apps/Plugins/VS/Scripts'
sys.path.append(os.path.abspath(ScriptPath))
import vapoursynth as vs
core = vs.get_core()
import importlib.machinery
psharpen = importlib.machinery.SourceFileLoader('psharpen', r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\Scripts\psharpen.py").load_module()
mvsfunc = importlib.machinery.SourceFileLoader('mvsfunc', r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\Scripts\mvsfunc.py").load_module()
adjust = importlib.machinery.SourceFileLoader('adjust', r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\Scripts\adjust.py").load_module()
havsfunc = importlib.machinery.SourceFileLoader('havsfunc', r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\Scripts\havsfunc.py").load_module()
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\both\ffms2\ffms2.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\fmtconv\fmtconv.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\AWarpSharp2\libawarpsharp2.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\CTMF\CTMF.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\DCTFilter\DCTFilter.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\Deblock\Deblock.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\DFTTest\DFTTest.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\EEDI2\EEDI2.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\EEDI3m\EEDI3m.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\FFT3DFilter\fft3dfilter.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\FluxSmooth\libfluxsmooth.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\HQDN3D\libhqdn3d.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\both\KNLMeansCL\KNLMeansCL.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\BM3D\BM3D.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\mvtools\libmvtools.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\nnedi3\libnnedi3.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\nnedi3\NNEDI3CL.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\Sangnom\libsangnom.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\scenechange\scenechange.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\SVPFlow\svpflow1_vs64.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\SVPFlow\svpflow2_vs64.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\vs\TTempSmooth\TTempSmooth.dll")
core.std.LoadPlugin(r"D:\Staxrip.2.0.0.1.Beta\Apps\Plugins\VS\nnedi3\vsznedi3.dll")
clip = core.ffms2.Source(r"W:\-UPLOAD-\XxXxXxXxXxX.1080p.x264.5.1.DTS.mkv", cachefile = r"C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS.ffindex")
clip = core.fmtc.bitdepth (clip, bits=16)
clip = core.resize.Spline36(clip, 1280, 720)
clip = havsfunc.SMDegrain(clip, tr=4, RefineMotion=True, thSAD=500)
clip = psharpen.psharpen(clip)
clip.set_output()
-------------------------- Script Properties --------------------------
Source Frame Count : 1058
Source Frame Rate : 23.976024
Source Duration : 00:00:44.1270000
Target Frame Count : 240
Target Frame Rate : 24.000000
Target Duration : 00:00:10
----------------------- MediaInfo Audio Source 1 -----------------------
General
Complete name : C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka
File size : 0.00 Byte
------------------ Error Find Gain 1 using ffmpeg 4.1 ------------------
Find Gain 1 using ffmpeg 4.1 failed with exit code: 1 (0x1)
The exit code might be a system error code: STATUS_WAIT_1
The exit code might be a system error code: Incorrect function.
--------------------- Find Gain 1 using ffmpeg 4.1 ---------------------
D:\Staxrip.2.0.0.1.Beta\Apps\Encoders\ffmpeg\ffmpeg.exe -i "C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka" -sn -vn -hide_banner -af volumedetect -f null NUL
[matroska,webm @ 0000020a4b453900] Format matroska,webm detected only with low score of 1, misdetection possible!
[matroska,webm @ 0000020a4b453900] EBML header parsing failed
C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka: Invalid data found when processing input
--------------------- Find Gain 1 using ffmpeg 4.1 ---------------------
D:\Staxrip.2.0.0.1.Beta\Apps\Encoders\ffmpeg\ffmpeg.exe -i "C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka" -sn -vn -hide_banner -af volumedetect -f null NUL
[matroska,webm @ 0000020a4b453900] Format matroska,webm detected only with low score of 1, misdetection possible!
[matroska,webm @ 0000020a4b453900] EBML header parsing failed
C:\TMP\XxXxXxXxXxX.1080p.x264.5.1.DTS_temp\XxXxXxXxXxX.1080p.x264.5.1.DTS ID1 English.mka: Invalid data found when processing input
Start: 3:50:09 PM
End: 3:50:09 PM
Duration: 00:00:00
Start: 12:00:00 AM
End: 3:50:10 PM
Duration: 17691135:50:10
qtwigg
13th March 2019, 20:53
https://media.discordapp.net/attachments/506134052898603009/555477152498319361/unknown.png?width=1335&height=616
AMED
13th March 2019, 22:48
@qtwigg
https://forum.doom9.org/showthread.php?p=1868551#post1868551
Revan654
13th March 2019, 22:49
Hello friends, I have come to ask for the help of everyone with a problem that I try to solve for months and I can not find a way to solve it.
I already activated the HDR in windows 10 and QLED55q6fn TV and everything seems to work normal, since in games the HDR activates normally and stays show.
I use staxrip to convert my videos, usually movies I down in 1080p remux h264 (.mkv) or 4k h265 all without HDR.
But all the videos I try to convert with the staxrip using x265 10bit adding HDR settings does not look good, it looks like the image is too red, and with too much contrast or gamma I can not say for sure what it is exactly.
I also used the Nvidia h265 10bit configuration with HDR configuration and it conforms to the phitos.
already tried to convert the video with commands ffmpeg adding HDR commands and the same thing happens.
already tried all kinds of configuration and nothing.
What can I be doing wrong?
follow images below and images of the current staxrip, use version 2.0.0.0 - x64.
Setting the video after conversion
mediainfo
Video
ID: 1
Format: HEVC
Format / Info: High Efficiency Video Coding
Commercial name: HDR10
Format profile: Main 10 @ L6.2 @ High
Codec ID: V_MPEGH / ISO / HEVC
Duration: 2 h 29 min
Bit rate: 5 883 kb / s
Width: 1 920 pixels
Height: 1 080 pixels
Display aspect ratio: 2.40: 1
Frame rate mode: Constant
Frame rate: 23.976 (24000/1001) FPS
Color space: YUV
Chroma subsampling: 4: 2: 0
Bit depth: 10 bit
Bits / (Pixel * Frame): 0.118
Stream size: 6.14 GiB (91%)
Language: English
Default: Yes
Forced: No
Color range: Limited
Primary color: BT.2020
Transfer characteristics: PQ
Matrix coefficients: BT.2020 non-constant
Mastering display primary color: BT.2020
Mastering display luminance: min: 0.0001 cd / m2, max: 1000 cd / m2
Maximum Content Light Level: 1000 cd / m2
Maximum Frame-Average Light Le: 1 cd / m2
Resize your images, if your going to post them in 4K.
Picture color for this has nothing to do with the encoder but the filters. Anytime HDR is stripped from the source you have to make the change so it can be viewable on normal displays.
Tonemapping must be applied to the source file or 3d lut file(aka cube filter).
NVEnc doesn't contain all HDR Settings to start with for HDR10 / HDR10+.
Did you try using the Built in HDR Function? It will tweak the Colors according to the HDR Metadata(It must contain the HDR Metadata).
stax76
14th March 2019, 16:06
Hey everybody, a few days ago I released my Open with++ shell extension for the first time 12 years later it was built, I use my launcher and this 100 times a day. I use it for instance to integrate StaxRip's media info GUI into the win file explorer. It does pretty much the same as Open++.
The macros in the options dialog don't have a default value yet, so far there aren't any default values and no documentation, I've use the following macros:
%video% = mpg avi vob mp4 d2v divx mkv avs 264 mov wmv part flv ifo h264 asf webm dgi mpeg mpv y4m avc hevc 265 h265 m2v m2ts vpy mts webm ts m4v part
%audio% = mp2 mp3 ac3 wav w64 m4a dts dtsma dtshr dtshd eac3 thd thd+ac3 ogg mka aac opus flac mpa
%subtitle% = sub sup idx ass aas srt
%image% = png jpg gif bmp
The definition for StaxRip's media info GUI is:
args: -mediainfo %items%
File Types: %audio% %video% %subtitle% %image%
mpv.net and other players:
args: %items%
File Types: %audio% %video% %subtitle% %image%
It needs some work to make it easer to use for new users. I Hope you find it usefull.
The project is located here:
https://github.com/stax76/OpenWithPlusPlus
jonrodrigos
14th March 2019, 16:20
Resize your images, if your going to post them in 4K.
Picture color for this has nothing to do with the encoder but the filters. Anytime HDR is stripped from the source you have to make the change so it can be viewable on normal displays.
Tonemapping must be applied to the source file or 3d lut file(aka cube filter).
NVEnc doesn't contain all HDR Settings to start with for HDR10 / HDR10+.
Did you try using the Built in HDR Function? It will tweak the Colors according to the HDR Metadata(It must contain the HDR Metadata).
Hello, sorry for the photos without resizing, I'm newbie in the forum.
how do I apply Tonemapping or 3d lut? I use the final 2.0 staxrip.
IbrahimKh
14th March 2019, 18:34
Hi, how do I apply auto crop black border for batch project?
stax76
14th March 2019, 19:05
If I remember right then you only have to check the crop checkbox in the filter list of the main dialog.
Natty
14th March 2019, 21:54
stax76, your latest version works without lags but revan's version lags while editing filters, dragging dropping source, clicking next etc. please take a look.
Revan654
15th March 2019, 20:56
Hello, sorry for the photos without resizing, I'm newbie in the forum.
how do I apply Tonemapping or 3d lut? I use the final 2.0 staxrip.
It should be in Misc or Color Filter section.
3d luts are files you attach to filter, Which has to be created or obtained.
tone mapping, are basic filter like any other filter, you have to play with the settings to achieve what you want. There no set default that will work for all HDR sources.
stax76
15th March 2019, 23:41
stax76, your latest version works without lags but revan's version lags while editing filters, dragging dropping source, clicking next etc. please take a look.
I tested a little bit, it was OK except for QTGMC avs not working, I do some further tests.
The tools number increased from 100 to 200 (mostly filters) which should have a impact since for every operation it checks for problems including if any of the tools report a problem.
What surprised me is how much code/comments where added.
PS C:\Users\frank\Daten\Projekte\PY> py .\count-lines.py C:\Users\frank\Daten\Projekte\VB\staxrip2
Enter the file extension: vb
71218
PS C:\Users\frank\Daten\Projekte\PY> py .\count-lines.py C:\Users\frank\Daten\Projekte\VB\staxrip17
Enter the file extension: vb
54817
Revan654
16th March 2019, 02:11
I tested a little bit, it was OK except for QTGMC avs not working, I do some further tests.
The tools number increased from 100 to 200 (mostly filters) which should have a impact since for every operation it checks for problems including if any of the tools report a problem.
What surprised me is how much code/comments where added.
PS C:\Users\frank\Daten\Projekte\PY> py .\count-lines.py C:\Users\frank\Daten\Projekte\VB\staxrip2
Enter the file extension: vb
71218
PS C:\Users\frank\Daten\Projekte\PY> py .\count-lines.py C:\Users\frank\Daten\Projekte\VB\staxrip17
Enter the file extension: vb
54817
Plus the System specs, the Resolution & Bitrate of the video all play a role on the performance. Place a SD video in the preview window it's smooth. You may experience issues once you hit 1080p+.
------
I wonder if creating a WPF file and using media element with the WinForm WPF host would improve anything.
of course it will not be a simple as plug and play.
stax76
16th March 2019, 03:03
I wasn't refering to the preview but operations in the main dialog that trigger the assistant routine. It's probably possible to speedup the preview but I don't have the required knowledge (DirectX drawing and possibly image data processing) and I'm not looking for a coding challenge at the moment. I hope you, me or somebody else will code it some day.
I wonder if creating a WPF file and using media element with the WinForm WPF host would improve anything.
One problem here is that I don't think it's frame accurate (it uses probably Media Foundation), maybe a WPF picture box if it uses DirectX instead of GDI.
stax76
16th March 2019, 09:03
@Revan654
I did some research on the slow preview drawing, there are .NET wrappers for DirectX which can draw .NET bitmaps, I've researched two and both had problems, SlimDX requires a installer and GAC assemplies. SharpDX supports NearestNeighbor and Linear for scaling which I'm not sure if it's good enough and I don't know if it would work and how fast it would be. The other other option is write something in C++ which would be a bit challenging for me though I should probably code something in C++ before I forget every thing.
jsdukeboy08
20th March 2019, 07:54
upgraded to the new 2.0.0.1 beta and got everything set up, I am having an issue when I'm encoding where at the end of the encode, when mkvmerge is about to be launched I get this error code. Not sure if it matters but the content I am encoding is HEVC with HDR.
Error Video encoding using x265 3.0 (2.0.0.1)
Video encoding using x265 3.0 failed with exit code: -1073740940 (0xC0000374)
The exit code might be a system error code: A heap has been corrupted.
Revan654
21st March 2019, 23:56
upgraded to the new 2.0.0.1 beta and got everything set up, I am having an issue when I'm encoding where at the end of the encode, when mkvmerge is about to be launched I get this error code. Not sure if it matters but the content I am encoding is HEVC with HDR.
Error Video encoding using x265 3.0 (2.0.0.1)
Video encoding using x265 3.0 failed with exit code: -1073740940 (0xC0000374)
The exit code might be a system error code: A heap has been corrupted.
It's very likely tied to python.
STATUS_HEAP_CORRUPTION: ntstatus.h
jsdukeboy08
23rd March 2019, 23:33
It's very likely tied to python.
STATUS_HEAP_CORRUPTION: ntstatus.h
Doing a little more testing I see that this only happens to encodes that contain —zones. I have uninstalled python and installed the one included with 2.0.0.1 beta. What you included, is that a command I need to run? Also I am using x265 3.0-AU+14 because the one included crashes right when you start encoding when using zones
onekmilesbehind
25th March 2019, 16:09
Doing a little more testing I see that this only happens to encodes that contain —zones.
Have you tried any of Ma's builds at http://msystem.waw.pl/x265/ by chance?
There's a discussion over in the x265 thread, starting around post 6766 (https://forum.doom9.org/showthread.php?p=1866868#post1866868), with confirmation that it was working again with the 3.0_AU+8 builds in post 6770. Evidently the new x265_copy_params function caused (or still causes?) issues with --zones.
jsdukeboy08
27th March 2019, 08:24
Have you tried any of Ma's builds at http://msystem.waw.pl/x265/ by chance?
There's a discussion over in the x265 thread, starting around post 6766 (https://forum.doom9.org/showthread.php?p=1866868#post1866868), with confirmation that it was working again with the 3.0_AU+8 builds in post 6770. Evidently the new x265_copy_params function caused (or still causes?) issues with --zones.
I've tried several different ones and I can't recall whether I've used that particular build, after my current encode that doesn't require zones I'll give it a shot
Edit: after doing some additional tests it appears that the 3.0_AU+8 works fine with zones and has no errors in staxrip upon encoding completion. The two other versions, +10 and +14, however do not work and will give the same corrupted heap error.
IbrahimKh
29th March 2019, 11:51
Hi, is it possible to encode Enhanced AC-3 with Joint Object Coding or Dolby Digital Plus with Dolby Atmos with Staxrip?
imhh11
29th March 2019, 20:25
can I insert 2 blanks (black) frames at the start of my encode?? if yes how?
thank you
edit:
i tried this script and it created the 2 blank frames but i want to insert them before my encode.
is it possible or do i need to encode both parts and then join them together with mkvtoolnix ?
https://extraimage.net/images/2019/03/29/b81bf27f1c3077f12a1e10e30c488b88.png
sneaker_ger
29th March 2019, 22:26
video=FFVideoSo....
black_frames=BlankClip(video, length=2)
black_frames++video
Something like this.
http://avisynth.nl/index.php/Splice
imhh11
30th March 2019, 01:04
Many thanks! exactly what I was looking for :)
Natty
30th March 2019, 23:34
The tools number increased from 100 to 200 (mostly filters) which should have a impact since for every operation it checks for problems including if any of the tools report a problem.
confirmed, its caused by too many files in my plugin+ folders and tools bundled in stax.
sometimes stax progress window disappears while encoding.. anyway to restore it??
Edit 1: Issue Fixed https://i.imgur.com/sS4t2YC.png
https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer
jlw_4049
2nd April 2019, 16:18
Failed to load script.
Cannot load a 32 bit DLL in 64 bit Avisynth: 'C:/Program Files (x86)/AviSynth/plugins/AddGrainC.dll'.
Taurus
2nd April 2019, 21:34
Failed to load script.
Cannot load a 32 bit DLL in 64 bit Avisynth: 'C:/Program Files (x86)/AviSynth/plugins/AddGrainC.dll'.
What are you doing?
StaxRip2.0 has the AddGrainC.dll 64bit version onboard:confused::p!
If you are using custom scripts make sure to load the desired 64bit plugins from either your StaxRip Avisynth folder or from the autoload Avisynth 64 (+)folder.
Never ever try to mix 32 with 64bit plugins
except you know what you're doing:D.
stax76
4th April 2019, 12:20
@Revan
I thought I can improve the drawing performance in the preview and was able to draw with WPF but it wasn't faster, there are ways to make it faster but it's difficult to code unless you are an expert in video processing and video rendering and probably not worth the time it would need to build and it's not only the drawing that lacks but also frame servers have much slower seek performance than players, it probably has to do with frame accuracy and overhead that cannot be avoided in frame servers.
I could still find a major bottleneck when avisynth is used however, this is where it's at:
https://github.com/Revan654/staxrip/blob/master/General/Package.vb#L2076
I don't remember if there is a good reason why I used GetFullScript here, I made some tests and it looks like it's not needed, replacing GetFullScript with GetScript is twenty times faster.
Revan654
4th April 2019, 22:04
@Revan
I thought I can improve the drawing performance in the preview and was able to draw with WPF but it wasn't faster, there are ways to make it faster but it's difficult to code unless you are an expert in video processing and video rendering and probably not worth the time it would need to build and it's not only the drawing that lacks but also frame servers have much slower seek performance than players, it probably has to do with frame accuracy and overhead that cannot be avoided in frame servers.
I could still find a major bottleneck when avisynth is used however, this is where it's at:
https://github.com/Revan654/staxrip/blob/master/General/Package.vb#L2076
I don't remember if there is a good reason why I used GetFullScript here, I made some tests and it looks like it's not needed, replacing GetFullScript with GetScript is twenty times faster.
Was WPF being brought into StaxRip or was this just a separate WPF control? It could be the WinForm host adding to the bottlenecking.
I know, I changed a few lines in preview class, Which did improve performance. I think it was that image font icon with one or more of the buttons. I'll take a look at that change, I jsut havn't had much time to do anything with StaxRip due to my other project has been eat up all my time.
stax76
4th April 2019, 23:51
It was a WPF custom control hosted in winforms, WPF has a interop method to convert a System.Drawing.Bitmap to a WPF BitmapSource which was used as source for a WPF Image. Not was it only slow but it was also leaking memory and both problems were already described by other people.
When I made this experiment I didn't know that it's not a problem to create a WPF window from a winforms window, I tried it today (because mpv.net is also a mix of winforms and WPF) and it just works according to my first test, the documentation always describes only hosting controls and there isn't a WPF window template in a winforms project.
The reason why I probably give up here is because the seeking part is already very slow regardless of which frame server or source filter is used so it don't matter too much that drawing makes it more slower. Also many people that encode have very fast systems so it's bearable for them.
Lucky for you that you have a project. :-), I'd like to build something but don't know really what, being mostly happy with all software I use.
ABurns
5th April 2019, 17:33
I've just started playing with the buttons and knobs on this, and I'm looking at this as a potential alternative to meGUI 1-click. I have a quick question about a few things that seem a little opaque.
How does this detect and deal with hard 3:2 telecine and other types of interlacing? The vast majority of my rips are DVD TV shows, and the problem with TV is that even within a single disc there can be both soft and hard telecine material, so each episode has to be scanned individually for that. Is there an auto-IVTC capability?
stax76
7th April 2019, 12:58
@ABurns
It hasn't any detection and automatic handling for this type of source I'm afraid.
@Revan654
Three things I noticed opening a The Orville episode, .eac3 is demuxed as .mka, .srt is demuxed without file extension, the processing window goes to the background instead of staying in the foreground.
Revan654
12th April 2019, 18:30
It was a WPF custom control hosted in winforms, WPF has a interop method to convert a System.Drawing.Bitmap to a WPF BitmapSource which was used as source for a WPF Image. Not was it only slow but it was also leaking memory and both problems were already described by other people.
When I made this experiment I didn't know that it's not a problem to create a WPF window from a winforms window, I tried it today (because mpv.net is also a mix of winforms and WPF) and it just works according to my first test, the documentation always describes only hosting controls and there isn't a WPF window template in a winforms project.
The reason why I probably give up here is because the seeking part is already very slow regardless of which frame server or source filter is used so it don't matter too much that drawing makes it more slower. Also many people that encode have very fast systems so it's bearable for them.
Lucky for you that you have a project. :-), I'd like to build something but don't know really what, being mostly happy with all software I use.
You could port Staxrip to WPF in C#. :) using MVVM Patterns. That would be a massive undertaking to port it over. Not everything that exist in VB works in C#.
I did a real quick mock up what codec window could be like using WPF. It uses MVVM Pattern with the whole View -> ViewModel <-> Model design.
I just threw this together in a few seconds just for an example.
https://i.imgur.com/cv0tR3Sl.png
WPF memory usage is very hard to judge(With memory leak you can force call GC.Collection & Finalizer).
Others who have built Video Encoders using WPF at idle it sits around around 100 to 200 from my experience.
Another way would be to create some sort of wrapper with would allow you to build the viewer in any coding you wish all the way up to C++.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.