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

mcjordan
8th October 2017, 12:59
Updates:

VapourSynth R39
https://github.com/vapoursynth/vapoursynth/releases

AVS Meter v2.6.6
https://www.dropbox.com/sh/oxx5cm9hkbpj5oz/AAB1_64FB4ZEJe68g38Yj6nqa/AVSMeter266.7z?dl=0

AMED
8th October 2017, 21:16
Is there a way to resize by height for templates?

I have a 16:9 source but crops to 4:3ish and i would resize the height to 720p. I have tried creating resize line like this auto x 720 = 0 x 720 but it seems to be ignored and comes out as 1280x960.

Yanak
8th October 2017, 23:49
A custom filter "auto x 720 = 0 x 720" seems to work for me , on a 1280x720 source cropped to 800x600, applying this filter gives then 960x720

maybe there is some other settings involved like DAR or PAR (those are set to auto for me ) or some other related settings in Options > Image Options ... maybe, not sure.

Yanak
9th October 2017, 17:39
Managed to get what i wanted and working, still have to finish and polish this but working good ,

-Created a template just to trigger an event commands based on the template name and executing "ExecutePowerShellScript" with this inside it :

$activeProject = [ShortcutModule]::p
#Get Input_Source & Extension
$Source = "`"$($activeProject.SourceFile)`""
$Source_Extension = [IO.Path]::GetExtension($activeProject.SourceFile)
#$Staxrip_Path = (get-item $PSScriptRoot).parent.parent.FullName
$Staxrip_Path = "H:\StaxRip-x64-1.7.0.1-test"

#Select Source Plugin by file extension
if ($Source_Extension -eq ".avi" -Or $Source_Extension -eq ".vdr" ) {
$Source_Choice = "AviSource($Source, Audio = False)"
$Load = "$Source_Choice "

} elseif ($Source_Extension -eq ".mov" -Or $Source_Extension -eq ".mp4" -Or $Source_Extension -eq ".m4v") {
$LoadPlugin = "LoadPlugin(""$Staxrip_Path\Apps\Plugins\avs\L-SMASH-Works\LSMASHSource.dll"")"
$Source_Choice = "LSMASHVideoSource($Source, format = ""YUV420P8"")"
$Load = "$LoadPlugin `n$Source_Choice"

} elseif ($Source_Extension -eq ".264" -Or $Source_Extension -eq ".h264" -Or $Source_Extension -eq ".avc" -Or $Source_Extension -eq ".265" -Or $Source_Extension -eq ".h265" -Or $Source_Extension -eq ".hevc" -Or $Source_Extension -eq ".hvc") {
$LoadPlugin = "LoadPlugin(""$Staxrip_Path\Apps\Plugins\avs\L-SMASH-Works\LSMASHSource.dll"")"
$Source_Choice = "LWLibavVideoSource($Source, format = ""YUV420P8"")"
$Load = "$LoadPlugin `n$Source_Choice"

} elseif ($Source_Extension -eq ".d2v"){
$LoadPlugin = "LoadPlugin(""$Staxrip_Path\Apps\Plugins\avs\MPEG2DecPlus\MPEG2DecPlus64.dll"")"
$Source_Choice = "MPEG2Source($Source)"
$Load = "$LoadPlugin `n$Source_Choice "

} else {
$LoadPlugin = "LoadPlugin(""$Staxrip_Path\Apps\Plugins\avs\DSS2mod\DSS2.dll"")"
$Source_Choice = "DSS2($Source)"
$Load = "$LoadPlugin `n$Source_Choice"
}

#MainMenu Select MP_Pipeline Mode
$Menu_Select = new-object "TaskDialog[string]"
$Menu_Select.MainInstruction = "Select Mp_Pipeline Mode"
$Menu_Select.AddCommandLink("Vegas DebugFrameserver Import" , "debugFrameserver")
$Menu_Select.AddCommandLink("Logo Remove by Coords" , "logo_coords")
$Menu_Select.AddCommandLink("Logo Remove by Area" , "logo_area")
$Menu_Select.AddCommandLink("VirtualDub Plugins" , "virtualdubplugins")
$selectMode = $Menu_Select.Show()
$Menu_Select.Dispose()

#Multipurpose Functions
#Browse .bmp mask
function Browse_File {
Add-Type -AssemblyName System.Windows.Forms
$FileBrowser = New-Object System.Windows.Forms.OpenFileDialog -Property @{
Multiselect = $false
Filter = 'Images (*.bmp)|*.bmp'
}
[void]$FileBrowser.ShowDialog()
if ($FileBrowser.FileNames -notlike "*\*") {exit}
#$Path = "`"$FileBrowser.FileNames`""
$Path = $FileBrowser.FileNames
return $Path
}

#Select analyze Speed
Function Select_Speed {
$Speed_select = new-object "TaskDialog[string]"
$Speed_select.MainInstruction = "Select Logo Analyzing Speed"
$Speed_select.AddCommandLink("Very Slow - Analyze 100% of the Video" , "20")
$Speed_select.AddCommandLink("Slow - Analyze 75% of the Video" , "15")
$Speed_select.AddCommandLink("Medium - Analyze 50% of the Video" , "10")
$Speed_select.AddCommandLink("Fast - Analyze 25% of the Video" , "5")
$Speed_select.AddCommandLink("Very Fast - Analyze 10% of the Video" , "2")
$Speed_select.AddCommandLink("Ultra Fast - Analyze 5% of the Video" , "1")
$selected_Speed = $Speed_select.Show()
$Speed_select.Dispose()
$Speed = $selected_Speed
return $Speed
}

#Select mode to apply
Function Select_Mode {
$mode_select = new-object "TaskDialog[string]"
$mode_select.MainInstruction = "Select Treatment Mode"
$mode_select.AddCommandLink("Inpaint for Opaque logo" , "Inpaint")
$mode_select.AddCommandLink("Deblend for Transparent logo" , "Deblend")
$mode_select.AddCommandLink("Both if both Opaque and Transparent" , "Both")
$selected_Mode = $mode_select.Show()
$mode_select.Dispose()
$Mode = $selected_Mode
return $Mode
}

# Select PP mode
Function Select_PP_Mode {
$PP_mode_select = new-object "TaskDialog[string]"
$PP_mode_select.MainInstruction = "Select Treatment Mode"
$PP_mode_select.AddCommandLink("Mode 1: Blur all the area where logo was present" , "1")
$PP_mode_select.AddCommandLink("Mode 2: Blur all the area where logo was present using TemporalSoften and SpatialSoften" , "2")
$PP_mode_select.AddCommandLink("Mode 3: Blur only the edge of logo area using TemporalSoften and SpatialSoften" , "3")
$PP_mode_select.AddCommandLink("Disabled" , "0")
$selected_PP_Mode = $PP_mode_select.Show()
$PP_mode_select.Dispose()
$PPmode = $selected_PP_Mode
return $PPmode
}

# Show process y/n ?
Function Show_Process {
$Show_Process_Y_N = new-object "TaskDialog[string]"
$Show_Process_Y_N.MainInstruction = "Show Delogoing Steps and Process ?"
$Show_Process_Y_N.AddCommandLink("Show Result Only" , "false")
$Show_Process_Y_N.AddCommandLink("Show Steps and Process" , "true")
$selected_Y_N = $Show_Process_Y_N.Show()
$Show_Process_Y_N.Dispose()
$Show = $selected_Y_N
Return $Show
}

#Input logo coords function
function logo_coords_input {
$logo_coords_input_box = [InputBox]::Show("Enter the logo coordinates ex: 760,1030,-28,-8")
if ([string]::IsNullOrEmpty($logo_coords_input_box)) {exit}
# + need add check to see if numeric value only
$loc = "$logo_coords_input_box"
Return $Loc
}

#Select logo area function
function logo_area {
$area = new-object "TaskDialog[string]"
$area.MainInstruction = "Select where is the Logo Area to Treat"
$area.AddCommandLink("Top Left" , "TL")
$area.AddCommandLink("Top Center" , "TC")
$area.AddCommandLink("Top Right" , "TR")
$area.AddCommandLink("Middle Left" , "ML")
$area.AddCommandLink("Center of The Screen" , "MC")
$area.AddCommandLink("Middle Right" , "MR")
$area.AddCommandLink("Bottom Left" , "BL")
$area.AddCommandLink("Bottom Center" , "BC")
$area.AddCommandLink("Bottom Right" , "BR")
$SelectedArea = $area.Show()
$area.Dispose()
$Loc = "$SelectedArea"
Return $Loc
}

if ($selectMode -eq "debugFrameserver") {
$x86_filter_paremeters = ""

} elseif ($selectMode -eq "logo_coords") {
$Mask = Browse_File
$loc = logo_coords_input
$Speed = Select_Speed
$Mode = Select_Mode
$PPMode = Select_PP_Mode
$Show = Show_Process
$x86_filter_paremeters = "InpaintFunc(mask=""$Mask"", loc=""$Loc"", Speed=$Speed, Mode=""$Mode"", ppmode=$PPmode, pp=50, Radius= 5.0, sharpness=75.0, preblur=8.0, postblur=4.0, reset=true, show=$Show)"

} elseif ($selectMode -eq "logo_area") {
$Mask = Browse_File
$Loc = logo_area
$Speed = Select_Speed
$Mode = Select_Mode
$PPMode = Select_PP_Mode
$Show = Show_Process
$x86_filter_paremeters = "InpaintFunc(mask=""$Mask"", loc=""$Loc"", Speed=$Speed, Mode=""$Mode"", ppmode=$PPmode, pp=50, Radius= 5.0, sharpness=75.0, preblur=8.0, postblur=4.0, reset=true, show=$Show)"

} elseif ($selectMode -eq "virtualdubplugins") {
$x86_filter_paremeters = ""

} else {exit}

# Source filter result full # `t tabulation
$Mp_Pipeline_Source_Filter_Result = "
SetFilterMtMode(""MP_Pipeline"",MT_SPECIAL_MT)
MP_Pipeline(""""""
### platform: win64
$Load
### ###
### platform: win32
$x86_filter_paremeters
### ###
"""""")
"

#Process
$Replace_Source_Filter = [ShortcutModule]::g.DefaultCommands
$Replace_Source_Filter.SetFilter("Mp_Pipeline_test", "Source", $Mp_Pipeline_Source_Filter_Result)
$preview = [ShortcutModule]::g
$preview.MainForm.ShowPreview()

Still have to do and include all my x86 vdub filters and some additional parameters but it works, as long as i have the template selected all is automated and needs just a few clicks after i load a source, then at the end the script replaces the source filter with Mp_Pipeline one containing all the settings i need inside.

Probably not the best looking code but granted i started to touch powershell for the first time only few weeks ago.... :p

Now only will need to find a good way to get $Staxrip_Path variable used for plugins paths or maybe there is already some existing variables for the plugins directly that can be used and it will be clean for me.

Thanks a lot Stax for all the help provided, answering silly questions from a noob like me here or in git , if could not have done such thing only a few weeks ago :)

stax76
9th October 2017, 23:43
C:\Users\x\Downloads\eac3to331>eac3to "F:"
1) 00801.mpls, 01151.m2ts, 1:32:30
- Chapters, 28 chapters
- h264/AVC (left eye), 1080p24 /1.001 (16:9)
- h264/MVC (right eye), 1080p24 /1.001 (16:9)
- DTS Master Audio, English, multi-channel, 48kHz
- AC3, English, multi-channel, 48kHz
- AC3, Spanish, multi-channel, 48kHz
- AC3, French, multi-channel, 48kHz
- AC3, Portuguese, multi-channel, 48kHz
- AC3, Bulgarian, multi-channel, 48kHz
- AC3, Hungarian, multi-channel, 48kHz
- AC3, Polish, multi-channel, 48kHz

I also need to know how it is processed further, a regular BD would look like so:


------------------ Process playlist file using eac3to ------------------

D:\Projekte\VS\VB\StaxRip\bin\Apps\eac3to\eac3to.exe "E:\BDMV\PLAYLIST" 2) -progressnumbers

M2TS, 1 video track, 1 audio track, 0:16:18, 24p /1.001
1: h264/AVC, 1080p24 /1.001 (16:9)
2: AC3, English, 2.0 channels, 224kbps, 48kHz, dialnorm: -27dB

--------------------- Demux M2TS using eac3to 3.31 ---------------------

D:\Projekte\VS\VB\StaxRip\bin\Apps\eac3to\eac3to.exe "E:\BDMV\PLAYLIST" 2) 1: "D:\Temp\StaxRip\aaa.mkv" 2: "D:\Temp\StaxRip\aaa.ac3" -progressnumbers




@Merlin93

The new build has a new chapter navigation feature that might help.


@Yanak

You can get the startup folder with:

[System.Windows.Forms.Application]::StartupPath

in the new build following will work too:

[Application]::StartupPath

new build:

https://github.com/stax76/staxrip/blob/master/changelog.md

Magik Mark
10th October 2017, 05:26
Stax,

Can you help us create a script that would convert BT2020 to BT709

Thanks

mcjordan
10th October 2017, 08:40
Thank you for new build, Frank! With mkvtoolnix v16.0 r1582 problem of muxing is gone.

Yanak
10th October 2017, 12:44
You can get the startup folder with:
[System.Windows.Forms.Application]::StartupPath
in the new build following will work too:
[Application]::StartupPath


Perfect, working nicely and now I finished to add the missing stuff, will just need to polish the code one of those days maybe but it works perfectly, very happy about this, plus will allow me to add a x86 filter easily in the future too, well just a bit of editing but will be nice.

Thanks again for all the help and this fantastic program :)

mparade
10th October 2017, 17:05
@stax76

In case of SSIF folder included:

C:\Users\x\Downloads\eac3to331>eac3to.exe "E:\BDMV\PLAYLIST" 1) -progressnumbers
analyze: 1%
analyze: 2%
analyze: 3%
analyze: 4%
analyze: 5%
analyze: 6%
analyze: 7%
analyze: 8%
analyze: 9%
analyze: 10%
analyze: 11%
analyze: 12%
analyze: 13%
analyze: 14%
analyze: 15%
analyze: 16%
analyze: 17%
analyze: 18%
analyze: 19%
analyze: 20%
analyze: 21%
analyze: 22%
analyze: 23%
analyze: 24%
analyze: 25%
analyze: 26%
analyze: 27%
analyze: 28%
analyze: 29%
analyze: 30%
analyze: 31%
analyze: 32%
analyze: 33%
analyze: 34%
analyze: 35%
analyze: 36%
analyze: 37%
analyze: 38%
analyze: 39%
analyze: 40%
analyze: 41%
analyze: 42%
analyze: 43%
analyze: 44%
analyze: 45%
analyze: 46%
analyze: 47%
analyze: 48%
analyze: 49%
analyze: 50%
analyze: 51%
analyze: 52%
analyze: 53%
analyze: 54%
analyze: 55%
analyze: 56%
analyze: 57%
analyze: 58%
analyze: 59%
analyze: 60%
analyze: 61%
analyze: 62%
analyze: 63%
analyze: 64%
analyze: 65%
analyze: 66%
analyze: 67%
analyze: 68%
analyze: 69%
analyze: 70%
analyze: 71%
analyze: 72%
analyze: 73%
analyze: 74%
analyze: 75%
analyze: 76%
analyze: 77%
analyze: 78%
analyze: 79%
analyze: 80%
analyze: 81%
analyze: 82%
analyze: 83%
analyze: 84%
analyze: 85%
analyze: 86%
analyze: 87%
analyze: 88%
analyze: 89%
analyze: 90%
analyze: 91%
analyze: 92%
analyze: 93%
analyze: 94%
analyze: 95%
analyze: 96%
analyze: 97%
analyze: 98%
analyze: 99%
analyze: 100%
M2TS, 2 video tracks, 8 audio tracks, 8 subtitle tracks, 1:27:45, 24p /1.001
1: Chapters, 24 chapters
2: h264/AVC (right eye), 1080p24 /1.001 (16:9)
3: h264/MVC (left eye), 1080p24 /1.001 (16:9)
4: DTS Master Audio, English, 7.1 (strange setup) channels, 24 bits, 48kHz
(core: DTS-ES, 5.1 channels, 1509kbps, 48kHz)
5: AC3, Modern Greek, 5.1 channels, 448kbps, 48kHz
6: AC3, Hebrew, 5.1 channels, 448kbps, 48kHz
7: AC3, Hungarian, 5.1 channels, 448kbps, 48kHz
8: AC3, Icelandic, 5.1 channels, 448kbps, 48kHz
9: AC3, Polish, 5.1 channels, 448kbps, 48kHz
10: AC3, Portuguese, 5.1 channels, 448kbps, 48kHz
11: AC3, Romanian, 5.1 channels, 448kbps, 48kHz
12: Subtitle (PGS), English
13: Subtitle (PGS), Modern Greek
14: Subtitle (PGS), Hebrew
15: Subtitle (PGS), Hungarian
16: Subtitle (PGS), Icelandic
17: Subtitle (PGS), Polish
18: Subtitle (PGS), Portuguese
19: Subtitle (PGS), Romanian

In case of there is no SSIF folder included:

C:\Users\x\Downloads\eac3to331>eac3to.exe "E:\BDMV\PLAYLIST" 1) -progressnumbers
analyze: 1%
analyze: 2%
analyze: 3%
analyze: 4%
analyze: 5%
analyze: 6%
analyze: 7%
analyze: 8%
analyze: 9%
analyze: 10%
analyze: 11%
analyze: 12%
analyze: 13%
analyze: 14%
analyze: 15%
analyze: 16%
analyze: 17%
analyze: 18%
analyze: 19%
analyze: 20%
analyze: 21%
analyze: 22%
analyze: 23%
analyze: 24%
analyze: 25%
analyze: 26%
analyze: 27%
analyze: 28%
analyze: 29%
analyze: 30%
analyze: 31%
analyze: 32%
analyze: 33%
analyze: 34%
analyze: 35%
analyze: 36%
analyze: 37%
analyze: 38%
analyze: 39%
analyze: 40%
analyze: 41%
analyze: 42%
analyze: 43%
analyze: 44%
analyze: 45%
analyze: 46%
analyze: 47%
analyze: 48%
analyze: 49%
analyze: 50%
analyze: 51%
analyze: 52%
analyze: 53%
analyze: 54%
analyze: 55%
analyze: 56%
analyze: 57%
analyze: 58%
analyze: 59%
analyze: 60%
analyze: 61%
analyze: 62%
analyze: 63%
analyze: 64%
analyze: 65%
analyze: 66%
analyze: 67%
analyze: 68%
analyze: 69%
analyze: 70%
analyze: 71%
analyze: 72%
analyze: 73%
analyze: 74%
analyze: 75%
analyze: 76%
analyze: 77%
analyze: 78%
analyze: 79%
analyze: 80%
analyze: 81%
analyze: 82%
analyze: 83%
analyze: 84%
analyze: 85%
analyze: 86%
analyze: 87%
analyze: 88%
analyze: 89%
analyze: 90%
analyze: 91%
analyze: 92%
analyze: 93%
analyze: 94%
analyze: 95%
analyze: 96%
analyze: 97%
analyze: 98%
analyze: 99%
analyze: 100%
M2TS, 2 video tracks, 4 audio tracks, 3 subtitle tracks, 1:48:32, 24p /1.001
1: Chapters, 22 chapters
2: h264/AVC (left eye), 1080p24 /1.001 (16:9)
3: h264/MVC (right eye), 1080p24 /1.001 (16:9)
4: DTS Master Audio, English, 7.1 channels, 24 bits, 48kHz
(core: DTS, 5.1 channels, 1509kbps, 48kHz)
5: AC3, Hungarian, 5.1 channels, 384kbps, 48kHz, dialnorm: -27dB
6: AC3, French, 5.1 channels, 640kbps, 48kHz
7: AC3, Spanish, 5.1 channels, 640kbps, 48kHz
8: Subtitle (PGS), Hungarian
9: Subtitle (PGS), Hungarian
10: Subtitle (PGS), Spanish

Zetti
10th October 2017, 23:17
eac3to v3.32 is released.

Magik Mark
11th October 2017, 01:24
Stax

Windows 10 RS3 "Fall Update" is out. Do you see any incompatibilities?

Sxc
11th October 2017, 04:08
Hi, if I use staxrip 1.7.0.0 stable to encode a mkv with AC3 audio that has a delay to a mkv with AAC audio, the audio is wildly out of sync and the resulting output file has the audio listed as being 1 second shorter (and a slightly smaller delay value).

Source from mediainfo before encoding:

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 21 min 59 s
Bit rate mode : Constant
Bit rate : 384 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -126 ms
Stream size : 60.4 MiB (7%)
Service kind : Complete Main
Default : Yes
Forced : No

From the output mkv file, note the duration is less by a second and the delay is adjusted:

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC-2
Duration : 21 min 58 s
Bit rate : 211 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : -117 ms
Stream size : 33.2 MiB (4%)
Language : English
Default : No
Forced : No

And using handbrake to encode the same file (and the sound is in sync) the mediainfo shows:

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC-2
Duration : 21 min 59 s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : -126 ms
Title : Stereo
Default : Yes
Forced : No

I've tried using different encoders (qaac instead of the eac3to it uses for auto) and still the same result. Anyone else had this issue?

Magik Mark
12th October 2017, 23:22
Stax

Just installed RS3 so far the the only problem that I encountered is "Shutdown" doesn't work after encoding

Zetti
14th October 2017, 17:12
MKVToolNix v17.0.0 is released.

Lupissimo
14th October 2017, 23:01
Could somebody please tell me how to include HSVadjust into Staxrip 1.6( I am a newcomer to scripting).
@ Stax:
I confirm the audio delay bug with 1.7.(see above: AC3 with delay > AAC to MKV or MP4 issue)
Encoding with 1.6 is OK.

stax76
15th October 2017, 00:33
@Lupissimo
@Sxc

Please post the full log file, I tried to reproduce it but couldn't find a problem.


@Zetti

Thanks, I've updated both.


Just installed RS3 so far the the only problem that I encountered is "Shutdown" doesn't work after encoding

Is RS3 is officially released? I didn't notice news about it on my tech news site golem.de. staxrip uses shutdown.exe and I can't do much if it don't work.


@mparade

That don't contain the info I need, please upload a sample.

craigpro
15th October 2017, 02:08
hi stax76 - unfortunately I have this recurring error with stable 1.7.0.0 with any file I try to encode (I upgraded NVencc 3.2.2 to 3.2.3):



Error Video encoding using NVEnc 3.22 (1.7.0.0)

Video encoding using NVEnc 3.22 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.


------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).



StaxRip.ErrorAbortException: Video encoding using NVEnc 3.22 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.


------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).


at StaxRip.Proc.Start() in D:\Projekte\VS\VB\StaxRip\General\Proc.vb:line 338
at StaxRip.NVEnc.Encode() in D:\Projekte\VS\VB\StaxRip\Encoding\NVEnc.vb:line 82
at StaxRip.GlobalClass.ProcessVideo() in D:\Projekte\VS\VB\StaxRip\General\GlobalClass.vb:line 225
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:\Projekte\VS\VB\StaxRip\General\GlobalClass.vb:line 137




the complete log file :




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

StaxRip : 1.7.0.0
Windows : Windows 7 Home Premium
Language : English (Australia)
CPU : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
GPU : NVIDIA GeForce GTX 1060 6GB
Resolution : 1920 x 1080
DPI : 96

------------------------ MediaInfo Source File ------------------------

H:\NEW\testfile.mkv

General
Complete name : H:\NEW\testfile.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 2.18 GiB
Duration : 56 min 53 s
Overall bit rate mode : Variable
Overall bit rate : 5 479 kb/s
Encoded date : UTC 2017-08-21 21:21:11
Writing application : mkvmerge v8.3.0 ('Over the Horizon') 64bit
Writing library : libebml v1.3.1 + libmatroska v1.4.2

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 5 Ref Frames
Format, CABAC : Yes
Format, RefFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 56 min 53 s
Bit rate : 4 773 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.216
Stream size : 1.89 GiB (87%)
Writing library : x264 core 152 r2851 ba24899
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 56 min 53 s
Bit rate mode : Variable
Bit rate : 720 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Frame rate : 11.719 FPS (4096 SPF)
Bit depth : 24 bits
Stream size : 293 MiB (13%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : English
Default : Yes
Forced : No

Menu
00 : 00:00.000 : en:00:00:00.000
00 : 07:07.552 : en:00:07:07.552
00 : 11:30.023 : en:00:11:30.023
00 : 23:31.076 : en:00:23:31.076
00 : 29:10.207 : en:00:29:10.207
00 : 36:12.712 : en:00:36:12.712
00 : 45:33.314 : en:00:45:33.314

------------------ Demux MKV using mkvextract 15.0.0 ------------------

C:\GPU\StaxRip-x64-1.7\Apps\MKVToolNix\mkvextract.exe tracks H:\NEW\testfile.mkv 1:"H:\NEW\testfile_temp\testfile ID1 English.flac" --ui-language en

Extracting track 1 with the CodecID 'A_FLAC' to the file 'H:\NEW\testfile_temp\testfile ID1 English.flac'. Container format: raw data

Start: 11:58:46 AM
End: 11:58:58 AM
Duration: 00:00:12

General
Complete name : H:\NEW\testfile_temp\testfile ID1 English.flac
Format : FLAC
Format/Info : Free Lossless Audio Codec
File size : 293 MiB
Duration : 56 min 53 s
Overall bit rate mode : Variable
Overall bit rate : 720 kb/s

Audio
Format : FLAC
Format/Info : Free Lossless Audio Codec
Duration : 56 min 53 s
Bit rate mode : Variable
Bit rate : 720 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 293 MiB (100%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)

-------------- Demux xml chapters using mkvextract 15.0.0 --------------

C:\GPU\StaxRip-x64-1.7\Apps\MKVToolNix\mkvextract.exe chapters H:\NEW\testfile.mkv --redirect-output H:\NEW\testfile_temp\testfile_chapters.xml

File 'H:\NEW\testfile.mkv': container: Matroska
Track ID 0: video (MPEG-4p10/AVC/h.264)
Track ID 1: audio (FLAC)
Chapters: 7 entries

Start: 11:58:58 AM
End: 11:58:59 AM
Duration: 00:00:00

-------------- Demux ogg chapters using mkvextract 15.0.0 --------------

C:\GPU\StaxRip-x64-1.7\Apps\MKVToolNix\mkvextract.exe chapters H:\NEW\testfile.mkv --redirect-output H:\NEW\testfile_temp\testfile_chapters.txt --simple

File 'H:\NEW\testfile.mkv': container: Matroska
Track ID 0: video (MPEG-4p10/AVC/h.264)
Track ID 1: audio (FLAC)
Chapters: 7 entries

Start: 11:58:59 AM
End: 11:58:59 AM
Duration: 00:00:00

----------------------- Indexing using ffmsindex -----------------------

C:\GPU\StaxRip-x64-1.7\Apps\Plugins\both\ffms2\ffmsindex.exe H:\NEW\testfile.mkv H:\NEW\testfile_temp\testfile.ffindex

Writing index... done.

Start: 11:58:59 AM
End: 11:59:03 AM
Duration: 00:00:04

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

LoadPlugin("C:\GPU\StaxRip-x64-1.7\Apps\Plugins\both\ffms2\ffms2.dll")
FFVideoSource("H:\NEW\testfile.mkv", colorspace = "YV12", \
cachefile = "H:\NEW\testfile_temp\testfile.ffindex")

-------------------------- Script Properties --------------------------

Source Frame Count : 81838
Source Frame Rate : 23.976024
Source Duration : 00:56:53.3270000
Target Frame Count : 81838
Target Frame Rate : 23.976024
Target Duration : 00:56:53.3270000

----------------------- MediaInfo Audio Source 1 -----------------------

General
Complete name : H:\NEW\testfile_temp\testfile ID1 English.flac
Format : FLAC
Format/Info : Free Lossless Audio Codec
File size : 293 MiB
Duration : 56 min 53 s
Overall bit rate mode : Variable
Overall bit rate : 720 kb/s

Audio
Format : FLAC
Format/Info : Free Lossless Audio Codec
Duration : 56 min 53 s
Bit rate mode : Variable
Bit rate : 720 kb/s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 293 MiB (100%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)

---------------- Error Video encoding using NVEnc 3.22 ----------------

Video encoding using NVEnc 3.22 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.


------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).

------------------- Video encoding using NVEnc 3.22 -------------------

C:\GPU\StaxRip-x64-1.7\Apps\NVEnc\NVEncC64.exe --cqp 18:20:22 --codec h265 --preset quality --output-depth 10 --weightp --lookahead 16 --transfer auto -i H:\NEW\testfile_temp\testfile.avs -o H:\NEW\testfile_temp\testfile_out.h265

NVEncC (x64) 3.23 (r667) by rigaya, Sep 26 2017 20:51:36 (VC 1900/Win/avx2)
OS Version Windows 7 x64 (7601)
CPU Intel Core i5-2500K @ 3.30GHz (4C/4T)
GPU #0: GeForce GTX 1060 6GB (10 EU) @ 1708 MHz (387.92)
NVENC / CUDA NVENC API 8.0, CUDA 9.1, schedule mode: auto
Input Buffers CUDA, 36 frames
Input Info Avisynth 2.60(yv12)->p010 [AVX], 1280x720, 24000/1001 fps
Vpp Filters copyHtoD
Output Info H.265/HEVC main10 @ Level auto
1280x720p 1:1 23.976fps (24000/1001fps)
Encoder Preset quality
Rate Control CQP I:18 P:20 B:22
Lookahead on, 16 frames, Adaptive I, B Insert
GOP length 240 frames
B frames 0 frames
Ref frames 3 frames, LTR: off
AQ off
CU max / min auto / auto
Others mv:auto
Error cudaEventSynchronize: 4 (cudaErrorLaunchFailure).

Start: 11:59:30 AM
End: 12:01:01 PM
Duration: 00:01:30



hope this helps, any further information I can give please let me know.


Please note that the issue does ALSO occur with stable 1.6.0.0 - so it might be video driver related - I updated my Nvidia GPU drivers to v387.92 two days ago.

Thank you.

stax76
15th October 2017, 02:11
Yes I think it's related to the new driver.

https://github.com/rigaya/NVEnc/issues/15

craigpro
15th October 2017, 02:25
Yes I think it's related to the new driver.

https://github.com/rigaya/NVEnc/issues/15

mate, you are a legend. thank you. I had a look at that other bloke's error report and I'll try it without the weightp option (if possible) as a workaround.. otherwise guess I need to wait until the issue is identified as a driver issue or not.

thank you.

EDIT: tried a quick test by disabling the weightp option and it works but video size is hardly compressed at all.

suprasaiyan123
15th October 2017, 05:07
what's the correct way to encode x265 2160p HDR video?? I tried a test vid however after encoding(x265) the HDR metadata was no longer picked up and the encode was washed out, thought the metadata would automatically pass through to the encode??? using staxrip 1.7.0.0

LazyNcoder
15th October 2017, 07:52
I also need a proper way to convert HDR to SDR. I think we need a guide for HDR -> HDR, HDR -> SDR, SDR -> HDR.
I think they talked about it before on the forum but it's needed to be gathered from many posts here as we don't have any complete guide about this.

Zetti
15th October 2017, 13:20
FFmpeg v3.3.4 is released.
and
MP4Box v0.7.2-DEV-rev292 is released.

Natty
15th October 2017, 23:56
https://mkvtoolnix.download/doc/NEWS.md

mkvtoolnix 17.0.0

mparade
17th October 2017, 07:42
I have done one test encode using NVEnc and my Quadro K4200.
I have set output bitdepth to 10bit. The output became only 8bit. Does NVEnc support 10bit h264 encoding with any other Nvidia card at all (my card is from the 1st (Kepler) generation)? I haven't found anything about it in the NVEnc docs.

On top of it, all I have found some artifacts in the output as well


Please help.

Yanak
17th October 2017, 09:19
Stax released a new test version yesterday 1.7.0.4 : https://github.com/stax76/staxrip/blob/master/changelog.md

There is a new option for the HDR metadata and one thing related to nvenc --transfer flags , not using those myself but maybe previous posts related to HDR or nvenc issues can give it a try and find this one more helpful.

mparade
20th October 2017, 07:19
@stax76

That don't contain the info I need, please upload a sample.

No problem. Just have to find out how to cut properly a BD 3D structure. If there is is no SSIF folder it is not a problem because only an m2ts container needs to be cut. But if storing is done using the other method when AVC and MVC part is stored in separate containers, I still do not know.

If you have a HDR source and have x265 enabled prior opening the source file, the latest build will read HDR info from the source and set the according x265 options, you can use the built in MediaInfo viewer to verify if your source contains HDR info.

If you have a regular HD source you can use:

Main Menu > Tools > Scripts > Convert Bluray (BT709) to 10bit 400nits (MaxFALL) HDR

What about when using NVEncC? I have an Nvidia GTX 1080Ti and try to make some tests using the CQP method on HDR 4K and "Convert Bluray (BT709) to 10bit 400nits (MaxFALL) HDR" converted sources.
But in this case we need to feed the encoder (NVEncC) with the correct HDR metadata as well. Is it currently possible? The player is going to use such metadata when the source is HDR10:

- "SMPTE 2086 mastering display information (gamut, min + max luminance), MaxCLL and MaxFALL. Stuff like the video's color primaries, matrix, transfer etc are usually "assumed" and not transported;"

So, if they lack of such metadata, I do not really know if they will be handled properly at all by the display/player.

Thank you very much for the info.

Blackshadow
21st October 2017, 07:22
@stax76



No problem. Just have to find out how to cut properly a BD 3D structure. If there is is no SSIF folder it is not a problem because only an m2ts container needs to be cut. But if storing is done using the other method when AVC and MVC part is stored in separate containers, I still do not know.



What about when using NVEncC? I have an Nvidia GTX 1080Ti and try to make some tests using the CQP method on HDR 4K and "Convert Bluray (BT709) to 10bit 400nits (MaxFALL) HDR" converted sources.
But in this case we need to feed the encoder (NVEncC) with the correct HDR metadata as well. Is it currently possible? The player is going to use such metadata when the source is HDR10:

- "SMPTE 2086 mastering display information (gamut, min + max luminance), MaxCLL and MaxFALL. Stuff like the video's color primaries, matrix, transfer etc are usually "assumed" and not transported;"

So, if they lack of such metadata, I do not really know if they will be handled properly at all by the display/player.

Thank you very much for the info.

You can cut 3d blue ray using dvdfab latest version
It allow mvc mkv passthrough simultaneously trim the movie output is same like make mkv or you can generate small 3d blue ray from SBS clip for testing using Sony Vegas

mparade
21st October 2017, 10:33
@mparade

That don't contain the info I need, please upload a sample.

Sample1 (the original m2ts container was cut including both AVC and MVC streams, in-mux "storage") is uploaded here:

http://s1.toldacuccot.hu/letoltes?sid=465a093c13549fd723f77394f5d6ad34&file=teszt1_inmux3D.zip

Please let me know if it contains the info you need.

Thank you very much for your amazing software.

mparade
21st October 2017, 11:29
@mparade

That don't contain the info I need, please upload a sample.


2nd sample is uploaded here as an ISO file (SSIF structure):

http://s1.toldacuccot.hu/letoltes?sid=3840067148455e3b1828463e83e02e75&file=teszt2_SSIF_3D.zip

mparade
21st October 2017, 11:32
You can cut 3d blue ray using dvdfab latest version
It allow mvc mkv passthrough simultaneously trim the movie output is same like make mkv or you can generate small 3d blue ray from SBS clip for testing using Sony Vegas

Finally, I have found out that tsMuxer GUI can solve these problems, but first of all, we should wait for stax76 to know if he can use the uploaded sources.

mparade
21st October 2017, 15:10
@stax76

If the source is VC-1 and using Vapoursynth with "convert bt709 to 10bit HDR" script enabled, then I will get an error message from StaxRip...if the source is h264, then there is no error message. It should be a Vapoursynth problem because DGDecNV can handle VC-1 since several years now.

Atlantis
21st October 2017, 19:28
Any simple script for Staxrip to convert HDR to SDR?

mparade
21st October 2017, 19:29
Any simple script for Staxrip to convert HDR to SDR?

Personally, I am using madVR to convert HDR sources to SDR during the rendering process.

Atlantis
22nd October 2017, 01:51
Yes, no I want to encode it first and have it in SDR before playing.

lotnybartek
23rd October 2017, 10:39
Is it possible to encode with QSVEnc BUT resize and de-interlace with software? I'd like to use yadifmod2 for de-interlacing and Lanczos4Resize for resizing. So, in Intel Encoding Options, I should select AviSynth/VapourSynth as Decoder?

craigpro
23rd October 2017, 23:07
new nvidia drivers out - let's hope that it was a bug in the previous version which prevented NVencC from working.. might download and test tonight when I get home.

EDIT: nope, still same error message from NVencC and it exits.

foxace
24th October 2017, 12:08
Hello,
how to convert 4k HDR movies with NVencC and preserve the HDR metadata ?
thanks for help me

sausuke
27th October 2017, 12:34
can I ask what can I do to fix this? I'm frameserving from Sony Vegas 15, I've tried the one it made, it works on MEGUI but want to use StaxRip? here's the screenshot thank you

https://i.imgur.com/y7mTgBc.png

Atak_Snajpera
27th October 2017, 12:56
Use DirectShowSource instead of AviSource

sausuke
27th October 2017, 13:04
Use DirectShowSource instead of AviSource

hello I've change the script to Directshowsource and here's the error

Failed to load script.

DirectShowSource: RenderFile, the filter graph manager won't talk to me
(E:\2Encoded Files\kljsfdlkjfsdljkfsdaljksfad_temp\kljsfdlkjfsdljkfsdaljksfad_source.avs, line 1)



I think I encounter this too with your Ripbot so I don't know how to fix this. Thank you for the reply

Atak_Snajpera
27th October 2017, 13:08
Yes I've noticed that too. I think that something is wrong with Frameserver plugin. It does not work in 64 bit environment (avisynth 64bit).

sausuke
27th October 2017, 13:19
Yes I've noticed that too. I think that something is wrong with Frameserver plugin. It does not work in 64 bit environment (avisynth 64bit).

oh now I finally get it, hence the people asking the author of frame server to release 64 bit version, I see. Thank you for the answer

Yanak
27th October 2017, 13:35
Debugmode frameserver output needs to be run under x86 avisynth, x64 won't work, however i bypass this by using MP_Pipepline and run a part of the script under x86 avisynth in Staxrip ( you loose a bit of speed most of the times but not that important to me ) :

- You need MP_Pipeline that can be found here : https://forum.doom9.org/showthread.php?p=1746479#post1746479
- Unzip it and put the content from the "64" folder into the avisynth plugin64+ folder, here :
"C:\Program Files\AviSynth+\plugins64+" You don't need the content from the "86 "folder, just what is inside the "64" into avisynth plugins64+ folder.

Then we need to create a custom source for the avi's of the frameserer :

- Right click on the "AVS filters" list here :
https://s14.postimg.org/yces41575/30363420171027142028cr.jpg
- On the contextual menu select '" Profiles"
- Under [Source] category copy and add this :
Vegas Frameserver Import =
MP_Pipeline("""
### platform: win32
AVISource("%source_file%", audio=false)
### ###
""")

Like here :
https://s14.postimg.org/xa4llheo1/23738920171027142237.png

The only thing you will then need is set source to manual in the filters list when you will use an input from vegas frameserver, select your source and on the popup list select "Vegas Frameserver Import".
https://s14.postimg.org/ehsqhwak1/31399820171027143304.png

You can also make a template using directly this source and save it, just need to switch to it before loading your source file, or if you always use the workflow passing by vegas and the frameserver you can set staxrip to start directly with this template.

Then add the rest of the filters and normal process in staxrip.

Edit : yeah many asked for a x64 codec output to the author of the frameserver, but seems like he abandoned the project sadly :/

sausuke
27th October 2017, 21:23
Debugmode frameserver output needs to be run under x86 avisynth, x64 won't work, however i bypass this by using MP_Pipepline and run a part of the script under x86 avisynth in Staxrip ( you loose a bit of speed most of the times but not that important to me ) :

- You need MP_Pipeline that can be found here : https://forum.doom9.org/showthread.php?p=1746479#post1746479
- Unzip it and put the content from the "64" folder into the avisynth plugin64+ folder, here :
"C:\Program Files\AviSynth+\plugins64+" You don't need the content from the "86 "folder, just what is inside the "64" into avisynth plugins64+ folder.

Then we need to create a custom source for the avi's of the frameserer :

- Right click on the "AVS filters" list here :
https://img4.hostingpics.net/pics/30363420171027142028cr.jpg
- On the contextual menu select '" Profiles"
- Under [Source] category copy and add this :
Vegas Frameserver Import =
MP_Pipeline("""
### platform: win32
AVISource("%source_file%", audio=false)
### ###
""")

Like here :
https://img4.hostingpics.net/pics/23738920171027142237.png

The only thing you will then need is set source to manual in the filters list when you will use an input from vegas frameserver, select your source and on the popup list select "Vegas Frameserver Import".
https://img4.hostingpics.net/pics/31399820171027143304.png

You can also make a template using directly this source and save it, just need to switch to it before loading your source file, or if you always use the workflow passing by vegas and the frameserver you can set staxrip to start directly with this template.

Then add the rest of the filters and normal process in staxrip.

Edit : yeah many asked for a x64 codec output to the author of the frameserver, but seems like he abandoned the project sadly :/

wow thank you, gonna test this up :D

EDIT:

It works :O thank you again

EDIT:

I have to say I'm impressed, 60 fps in rendering (medium preset) and using Threadripper 1950x 100% on default without using any script. Can I ask how to add avisynth script? thanks for the responses

Yanak
27th October 2017, 22:41
Glad to see you get it working ^^
You can add some filters already existing in staxrip with a right click on the filters list using the "+ Add" contextual menu.

You can also edit the filters and create your own ones with your own settings the same way you added this source filter for the frameserver, then add them easily to the projects you work with or create a template having you most commonly used filters.

It is also possible to create some kind of "dynamic" filters with input box , browse files and various choices, all this using various macros like i posted here some times ago when starting to experiment with this: http://forum.doom9.org/showthread.php?p=1804975#post1804975 ,
or also possible to use powershell scripting inside (http://forum.doom9.org/showthread.php?p=1821327#post1821327) staxrip to do a bit more complexes things,
or here recently when i made a script to create simple chapters while in staxrip preview mode : https://github.com/stax76/staxrip/issues/200#issuecomment-336909865

You should take a look at the documentation of staxrip : http://staxrip.readthedocs.io/index.html , this program allows a lot of customizations and i really love i for that.

Not sure what type of filter you are trying to add but if your post the script i'll try to explain how to add it into staxrip as a custom filter, keep in mind that staxrip is x64 , using x64 avisynth so avisynth plugins used must be x64, again it is possible to bypass this using MP_Pipeline most of the times but it gets more complex with a lot of x86 plugins ^^

PS: you can also load directly a .avs script as input directly into staxrip, or in the filters list use " Edit code " and directly insert parts of your script there ( and possible to save this as template then ) , but if it's things you will use regularly it's better to create custom filters for them in my opinion.

sausuke
28th October 2017, 05:41
Glad to see you get it working ^^
You can add some filters already existing in staxrip with a right click on the filters list using the "+ Add" contextual menu.

You can also edit the filters and create your own ones with your own settings the same way you added this source filter for the frameserver, then add them easily to the projects you work with or create a template having you most commonly used filters.

It is also possible to create some kind of "dynamic" filters with input box , browse files and various choices, all this using various macros like i posted here some times ago when starting to experiment with this: http://forum.doom9.org/showthread.php?p=1804975#post1804975 ,
or also possible to use powershell scripting inside (http://forum.doom9.org/showthread.php?p=1821327#post1821327) staxrip to do a bit more complexes things,
or here recently when i made a script to create simple chapters while in staxrip preview mode : https://github.com/stax76/staxrip/issues/200#issuecomment-336909865

You should take a look at the documentation of staxrip : http://staxrip.readthedocs.io/index.html , this program allows a lot of customizations and i really love i for that.

Not sure what type of filter you are trying to add but if your post the script i'll try to explain how to add it into staxrip as a custom filter, keep in mind that staxrip is x64 , using x64 avisynth so avisynth plugins used must be x64, again it is possible to bypass this using MP_Pipeline most of the times but it gets more complex with a lot of x86 plugins ^^

PS: you can also load directly a .avs script as input directly into staxrip, or in the filters list use " Edit code " and directly insert parts of your script there ( and possible to save this as template then ) , but if it's things you will use regularly it's better to create custom filters for them in my opinion.

I've tried to add on profile (ConvertToYV12(matrix="PC.709"), what do you think of this script? I added the Msharpen dunno if it's good in that order.

LoadPlugin("C:\Users\xxx\Desktop\StaxRip-x64-1.7.0.0-stable\Apps\Plugins\avs\MSharpen\msharpen.dll")
MP_Pipeline("""
### platform: win32
AVISource("C:\FrameServer Files\lksdfjlksajflkas.avi", audio=false)
### ###
""")
ConvertToYV12(matrix="PC.709")
MSharpen(threshold = 10, strength = 100, highq = true, mask = false)
Prefetch(10)

Yeah this is much easier than MEGUI, can move up and down line in the script :D

Yanak
28th October 2017, 10:36
You can also edit and directly add the convert part inside the source filter you created:
Vegas Frameserver Import =
MP_Pipeline("""
### platform: win32
AVISource("%source_file%", audio=false)
ConvertToYV12(matrix="PC.709")
### ###
""")
The rest of the filters are already part of Staxrip native filters, if you want this scheme all the time just need to create a template ( needs to be done while no video is loaded on Staxrip )
- Set directly the source filter to Vegas Frameserver
- Add MSShapren, add Prefetch filters with your own edited settings

Then go to "Project >Save as Template" . Enter a name for your template, tick the box if you want Staxrip to start with this created template and done.
The next time it will start it will have all already set and ready, or you can switch to it easily going to templates list and selecting it, simple as this.

You can also create a simple custom filter for the convertto that you can access and add easily like this :
YV12(PC.709) = ConvertToYV12(matrix="PC.709")
Just need to add this code in the profiles editor, (like for the source custom one), but here it will be under another category, i mean do not add it under the [Source], those need to be separated, but most probably add it under [Misc] category.

Or you can also create your own custom category, name it like you want, ex "My Filters":
[My Filters]
YV12(PC.709) = ConvertToYV12(matrix="PC.709")
(I place mines at the very top of the profiles edit page to have easy access ^^ )
https://s14.postimg.org/vwcyq2zy9/44707320171028113933.png

When using "+ Add" a filter you will see this new category with all the custom filters you added there :
https://s14.postimg.org/9x6k2vqtt/74345620171028112432.png

If you use a lot of convertto stuff you can create a bit more complex custom filter in Staxrip, I put it on pastebin to not break forum layout with long line of code : https://pastebin.com/gyyUNPKb
Same as before, either paste this at the end of the [Misc] category for example or add it under your created [My Filters] new category.

When selecting this custom filter ( +Add > My Filters > Convert To ) a popup will come :
https://s14.postimg.org/dgshsp19d/55069020171028110937.png
Select and click on the desired option in this list and it gets added to the list of filters in the project
;)

RieGo
29th October 2017, 10:38
quick question, i didn't find an answer to this: is it currently possible to run 2 or more jobs in parallel? or do i need to manually start 2 instances of staxrip as a workaround?
thanks
edit: it works by starting two instances of staxrip.
but i found a small bug while experimenting with multi job processing (probably even with one instance)
-if you activate to remove temporary folders after job it sometimes doesn't work. this is because the temporary folders names are very likely to be the same, if the first chars of filenames are the same.
this results in a messagebox, which stops processing jobs until you cancel the folder deletion.

sausuke
29th October 2017, 22:22
You can also edit and directly add the convert part inside the source filter you created:
Vegas Frameserver Import =
MP_Pipeline("""
### platform: win32
AVISource("%source_file%", audio=false)
ConvertToYV12(matrix="PC.709")
### ###
""")
The rest of the filters are already part of Staxrip native filters, if you want this scheme all the time just need to create a template ( needs to be done while no video is loaded on Staxrip )
- Set directly the source filter to Vegas Frameserver
- Add MSShapren, add Prefetch filters with your own edited settings

Then go to "Project >Save as Template" . Enter a name for your template, tick the box if you want Staxrip to start with this created template and done.
The next time it will start it will have all already set and ready, or you can switch to it easily going to templates list and selecting it, simple as this.

You can also create a simple custom filter for the convertto that you can access and add easily like this :
YV12(PC.709) = ConvertToYV12(matrix="PC.709")
Just need to add this code in the profiles editor, (like for the source custom one), but here it will be under another category, i mean do not add it under the [Source], those need to be separated, but most probably add it under [Misc] category.

Or you can also create your own custom category, name it like you want, ex "My Filters":

(I place mines at the very top of the profiles edit page to have easy access ^^ )
https://img4.hostingpics.net/pics/44707320171028113933.png

When using "+ Add" a filter you will see this new category with all the custom filters you added there :
https://img4.hostingpics.net/pics/74345620171028112432.png

If you use a lot of convertto stuff you can create a bit more complex custom filter in Staxrip, I put it on pastebin to not break forum layout with long line of code : https://pastebin.com/gyyUNPKb
Same as before, either paste this at the end of the [Misc] category for example or add it under your created [My Filters] new category.

When selecting this custom filter ( +Add > My Filters > Convert To ) a popup will come :
https://img4.hostingpics.net/pics/55069020171028110937.png
Select and click on the desired option in this list and it gets added to the list of filters in the project
;)

Thank you so much for this, btw I experience slow down using Stax Rip too and I posted the fix I do in avisynth+ thread (This threadripper is so complicated xD). Thanks to this I trouble shoot where the problem is but the good thing though is I learned how to use this encoder with your help :D

dev84
1st November 2017, 00:40
Hi

I just got this error, it's converting so i don't know the end result.
Any one knows what it means?

--------------- Convert THD to FLAC 1 using ffmpeg 3.3.3 ---------------

E:\...\StaxRip\Apps\ffmpeg\ffmpeg.exe -i "D:\...English.thd" -y -hide_banner -ac 6 "D:\...English.flac"

Input #0, truehd, from 'D:\...English.thd':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: truehd, 48000 Hz, 5.1(side), s32 (24 bit)
Stream mapping:
Stream #0:0 -> #0:0 (truehd (native) -> flac (native))
Press [q] to stop, [?] for help
Output #0, flac, to 'D:\...English.flac':
Metadata:
encoder : Lavf57.71.100
WAVEFORMATEXTENSIBLE_CHANNEL_MASK: 0x3f
Stream #0:0: Audio: flac, 48000 Hz, 5.1, s32 (24 bit), 128 kb/s
Metadata:
encoder : Lavc57.89.100 flac
[out_0_0 @ 0000000000ecccc0] 100 buffers queued in out_0_0, something may be wrong.


Thx
dev