Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th April 2020, 12:52   #1681  |  Link
mcjordan
Registered User
 
Join Date: Nov 2010
Posts: 118
Frank, I've a strange issue with DGDecNV (r206 from 2020-04-10; legal).
When trying to encode an sample file, StaxRip 2.1.0.6 after the demux phase shows a message:
"A new guard page for the stack cannot be created." (obviously when DGIndexNV trying to start indexing)
and it closes on its own. I'm on Windows 10 LTSC (1809) and Nvidia 445.78 driver.
I can't figure out where this result comes from.
Help me if possible. I will be very grateful.

Another test with LSMASHVideoSource (LSMASHSource_20200328 - latest from HolyWu) give me this result:
"LSMASHVideoSource [Fatal]: Failed to read an input file.
(C:\Temp\Passengers - Trailer_temp\Passengers - Trailer_new_source.avs, line 2)"
There is content of.avs file:
LoadPlugin("C:\Portables\StaxReborn\Apps\Plugins\Dual\L-SMASH-Works\LSMASHSource.dll")
LSMASHVideoSource("C:\Passengers - Trailer.mkv", format = "YUV420P8")
#ConvertFromDoubleWidth(bits=10)
#AssumeFPS(25)

P.S. Tested also with StaxRip 1.7.0.6 and DGDecNV r206 - they works like a charm.

Last edited by mcjordan; 12th April 2020 at 14:57.
mcjordan is offline   Reply With Quote
Old 12th April 2020, 17:49   #1682  |  Link
stax76
Registered Lurker
 
Join Date: Jun 2002
Posts: 6,427
'A new guard page for the stack cannot be created' is according to what I found with Google probably a dotnet specific error so it's likely that staxrip is responsible for the error, please search for a log file.
stax76 is offline   Reply With Quote
Old 12th April 2020, 18:05   #1683  |  Link
mcjordan
Registered User
 
Join Date: Nov 2010
Posts: 118
I compiled the source with target .NET 4.72 and things went right.
But it's weird, because it hadn't happened to previous versions before.
(i have installed .Net 4.8). But LSMASHVideoSource error is present there again.
mcjordan is offline   Reply With Quote
Old 12th April 2020, 18:36   #1684  |  Link
stax76
Registered Lurker
 
Join Date: Jun 2002
Posts: 6,427
Please follow this instruction:

https://staxrip.readthedocs.io/support.html

Edit:

The issue templates on the issue tracker were just much improved, and also the support page in the docs a little.

https://staxrip.readthedocs.io/support.html

https://github.com/staxrip/staxrip/issues/new/choose

Last edited by stax76; 12th April 2020 at 19:23.
stax76 is offline   Reply With Quote
Old 12th April 2020, 20:30   #1685  |  Link
mcjordan
Registered User
 
Join Date: Nov 2010
Posts: 118
Stax, thank you again for help and brilliant work! All works good now.
mcjordan is offline   Reply With Quote
Old 13th April 2020, 02:03   #1686  |  Link
lordalibaski
Registered User
 
Join Date: May 2016
Posts: 54
Hi guys got a bit of a problem which is doing my head in I have tried a few things now and all I want to do is copymux the sound.

I'm using v2.1.0.6

These are the settings I am using



This is the original captured files properties

Code:
Format                         : MPEG-PS
File size                      : 2.67 GiB
Duration                       : 39 min 30 s
Overall bit rate mode          : Variable
Overall bit rate               : 9 683 kb/s

Video
ID                             : 224 (0xE0)
Format                         : MPEG Video
Format version                 : Version 2
Format profile                 : Main@Main
Format settings, BVOP          : Yes
Format settings, Matrix        : Custom
Format settings, GOP           : M=3, N=12
Format settings, picture struc : Frame
Duration                       : 39 min 30 s
Bit rate mode                  : Variable
Bit rate                       : 9 235 kb/s
Maximum bit rate               : 9 450 kb/s
Width                          : 720 pixels
Height                         : 576 pixels
Display aspect ratio           : 4:3
Frame rate                     : 25.000 FPS
Standard                       : PAL
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Interlaced
Scan order                     : Top Field First
Compression mode               : Lossy
Bits/(Pixel*Frame)             : 0.891
Time code of first frame       : 00:00:20:04
Time code source               : Group of pictures header
GOP, Open/Closed               : Closed
Stream size                    : 2.55 GiB (95%)

Audio
ID                             : 189 (0xBD)-128 (0x80)
Format                         : AC-3
Format/Info                    : Audio Coding 3
Format settings, Endianness    : Big
Muxing mode                    : DVD-Video
Duration                       : 39 min 30 s
Bit rate mode                  : Constant
Bit rate                       : 256 kb/s
Channel(s)                     : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 kHz
Frame rate                     : 31.250 FPS (1536 SPF)
Bit depth                      : 16 bits
Compression mode               : Lossy
Delay relative to video        : -224 ms
Stream size                    : 72.3 MiB (3%)
Service kind                   : Complete Main
I have tried converting it 3 times and every time I have tried I get no audio. I want it to be the same audio bitrate but every time I set it to copy/mux the end result is no aduio.

This is the converted file properties

Code:
Format                         : Matroska
Format version                 : Version 4 / Version 2
File size                      : 800 MiB
Duration                       : 39 min 30 s
Overall bit rate               : 2 830 kb/s
Encoded date                   : UTC 2020-04-13 00:01:08
Writing application            : mkvmerge v45.0.0 ('Heaven in Pennies') 64-bit
Writing library                : libebml v1.3.10 + libmatroska v1.5.2

Video
ID                             : 1
Format                         : HEVC
Format/Info                    : High Efficiency Video Coding
Format profile                 : Main@L3@Main
Codec ID                       : V_MPEGH/ISO/HEVC
Duration                       : 39 min 30 s
Bit rate                       : 2 828 kb/s
Width                          : 720 pixels
Height                         : 568 pixels
Display aspect ratio           : 1.382
Original display aspect ratio  : 1.383
Frame rate mode                : Constant
Frame rate                     : 25.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Bits/(Pixel*Frame)             : 0.277
Stream size                    : 799 MiB (100%)
Writing library                : x265 3.3+10-g08d895bb6:[Windows][GCC 9.3.0][64 bit] 8bit+10bit+12bit
Encoding settings              : cpuid=1049071 / frame-threads=3 / numa-pools=12 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=720x568 / 
interlace=0 / total-frames=59256 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / 
hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=0 /
 scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 /
 selective-sao=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=14.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=2 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.01 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qpconformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0
Default                        : Yes
Forced                         : No
Why does it keep muting the audio? I've never had this problem before. If I trim a small segment out of the original file and convert it the sound is there.

Last edited by lordalibaski; 13th April 2020 at 02:05.
lordalibaski is offline   Reply With Quote
Old 13th April 2020, 03:33   #1687  |  Link
stax76
Registered Lurker
 
Join Date: Jun 2002
Posts: 6,427
@mcjordan

You're welcome.


@lordalibaski

Apparently staxrip just ignores the audio track because the mkv muxer does not recognize the mpeg (and also not vob) file extension. It should work if you rename the file extension to mpg. I'll add mpeg and vob to the list of recognized file types and I'll check why it did not try to demux the audio track or at least generate an assistant message instead of ignoring it silently.
stax76 is offline   Reply With Quote
Old 13th April 2020, 03:46   #1688  |  Link
almanteka
Registered User
 
Join Date: Sep 2018
Posts: 32
is there is any option to see the jobs window from this:



to this?



avoiding the paths and showing only the source file and/or the template name & source file? the "12 jobs remaining' was a suggestion a few posts above to know how many active jobs are online. thanks for the great job!!!

Last edited by almanteka; 13th April 2020 at 03:52.
almanteka is offline   Reply With Quote
Old 13th April 2020, 04:53   #1689  |  Link
stax76
Registered Lurker
 
Join Date: Jun 2002
Posts: 6,427
@almanteka

I've bookmarked it for later consideration but unlikely anytime soon.
stax76 is offline   Reply With Quote
Old 13th April 2020, 05:46   #1690  |  Link
almanteka
Registered User
 
Join Date: Sep 2018
Posts: 32
Quote:
Originally Posted by stax76 View Post
@almanteka

I've bookmarked it for later consideration but unlikely anytime soon.
thanks!
almanteka is offline   Reply With Quote
Old 13th April 2020, 11:19   #1691  |  Link
lifta19
Registered User
 
Join Date: Aug 2019
Posts: 16
Vapoursynth is much more stable than avisynth and fully supports 64-bit Why use avisynth? Encoding speed is always faster.
And the multithread is perfect.
The plug-in is fast indexed by LSMASHSource.dll

StaxRip Best Encoder

Last edited by lifta19; 13th April 2020 at 11:27.
lifta19 is offline   Reply With Quote
Old 13th April 2020, 13:48   #1692  |  Link
stax76
Registered Lurker
 
Join Date: Jun 2002
Posts: 6,427
staxrip supports both equally. For me the question is why use DirectShow players.
stax76 is offline   Reply With Quote
Old 13th April 2020, 15:24   #1693  |  Link
lordalibaski
Registered User
 
Join Date: May 2016
Posts: 54
Quote:
Originally Posted by stax76 View Post


@lordalibaski

Apparently staxrip just ignores the audio track because the mkv muxer does not recognize the mpeg (and also not vob) file extension. It should work if you rename the file extension to mpg. I'll add mpeg and vob to the list of recognized file types and I'll check why it did not try to demux the audio track or at least generate an assistant message instead of ignoring it silently.
Thank you stax76

It was just bugging me because it would actually work on a smaller file, If I cut a 2 mins or so segment out of the same file it would demux the audio but not on the full size file. I'm going to rename the files now mate and I will get back to you sometime later and tell you the result.

Many thanks

lordalibaski

Ps edit... @ stax76

Changing the extension worked mate thank you very much.

Last edited by lordalibaski; 13th April 2020 at 16:07.
lordalibaski is offline   Reply With Quote
Old 13th April 2020, 20:34   #1694  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 237
Quote:
Originally Posted by almanteka View Post
is there is any option to see the jobs window from this:



to this?



avoiding the paths and showing only the source file and/or the template name & source file? the "12 jobs remaining' was a suggestion a few posts above to know how many active jobs are online. thanks for the great job!!!
I would love for this to be implemented. Of course when ever stax wants to do this.

Quote:
Originally Posted by lifta19 View Post
Vapoursynth is much more stable than avisynth and fully supports 64-bit Why use avisynth? Encoding speed is always faster.
And the multithread is perfect.
The plug-in is fast indexed by LSMASHSource.dll

StaxRip Best Encoder
I have never used vapoursynth. I wouldn't even know where to begin. I use minimal avisynth commands so it probably wouldn't be extremely difficult to learn.
jlw_4049 is offline   Reply With Quote
Old 13th April 2020, 20:44   #1695  |  Link
L E G E N D
Hope !!
 
L E G E N D's Avatar
 
Join Date: Apr 2020
Posts: 1
Hi, i would like to complain about a thing that drove me mad for the past week i might need some help as well.

the whole story is that i'm trying to encode an avisynth filtered video script with NVEnc h265 in StaxRip,
i choose NVEnc to accelerate the process, because the avisynth script contains a lot of filters.

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

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

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

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

i'll leave more details down below:

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

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

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


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

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

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

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


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

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

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

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

### prefetch: 32, 16
### ###
""")
tell me if you need more details. and Thanks in advance.
__________________
i7-8550U 4C/8T @1.8 Ghz (TB 3.9 Ghz)

GeForce GTX 1050 (Mobile) 4 GB VRAM

16 GB DDR4 2400 Mhz RAM

Last edited by L E G E N D; 15th April 2020 at 23:46.
L E G E N D is offline   Reply With Quote
Old 14th April 2020, 02:13   #1696  |  Link
Lynx_TWO
Registered User
 
Join Date: Aug 2005
Posts: 37
qaac handles 6.1 audio but automatic settings default to Nero which copies the 7th ch

Title says it all: qaac handles 6.1 audio correctly but automatic settings default to Nero which copies the 7th channel, so that should be changed.

Thanks!
Lynx_TWO is offline   Reply With Quote
Old 14th April 2020, 02:15   #1697  |  Link
Lynx_TWO
Registered User
 
Join Date: Aug 2005
Posts: 37
Using loudnorm results in 96khz AAC file

When using loudness normalization (loudnorm) since it oversamples to 192khz to find true peak (still not enough btw, really need 8x or even up to 32x oversampling) the resulting AAC file is at 96khz instead of downsampling back to 48khz. Fix is to set --rate 48000 if loudnorm is used.

Thanks!

PS - it would be really sweet if someone could come up with a multi-pass solution to hit a target range accurately. Loudnorm does a decent job but is still only guessing. Perhaps writing a statistics file on each pass to adjust based on settings would help? Even having 6 passes, it would still complete before the average movie gets encoded

Algorithms to measure audio programme loudness and true-peak audio level (includes multichannel measurement algorithm)
https://www.itu.int/dms_pubrec/itu-r...0-I!!PDF-E.pdf

Loudness standards table
https://youlean.co/loudness-standard...parison-table/

Last edited by Lynx_TWO; 14th April 2020 at 02:29. Reason: ideas
Lynx_TWO is offline   Reply With Quote
Old 14th April 2020, 02:40   #1698  |  Link
almanteka
Registered User
 
Join Date: Sep 2018
Posts: 32
Quote:
Originally Posted by lifta19 View Post
Vapoursynth is much more stable than avisynth and fully supports 64-bit Why use avisynth? Encoding speed is always faster.
And the multithread is perfect.
The plug-in is fast indexed by LSMASHSource.dll

StaxRip Best Encoder
i installed Vapoursynth and the requiring packages just to test it out. it's possible to use it with mkv files converting to x265 using staxrip? what settings i need to use so staxrip use Vapoursynth? thanks in advance for any advice!
almanteka is offline   Reply With Quote
Old 14th April 2020, 02:44   #1699  |  Link
almanteka
Registered User
 
Join Date: Sep 2018
Posts: 32
@stax76
is there is any way to batch import jobs from an older version of staxrip to a newer one? i use the open project option and select the *.srip file at temp folder one at a time, but with hundreds of projects, i need to add all of them in one easy step, is that possible? thanks for your advice!!!
almanteka is offline   Reply With Quote
Old 14th April 2020, 09:18   #1700  |  Link
lifta19
Registered User
 
Join Date: Aug 2019
Posts: 16
Quote:
Originally Posted by almanteka View Post
i installed Vapoursynth and the requiring packages just to test it out. it's possible to use it with mkv files converting to x265 using staxrip? what settings i need to use so staxrip use Vapoursynth? thanks in advance for any advice!
Install:
Apps\Installers (python, VapourSynth)
Settings:
AVS Filters -> Filter Setup -> Vapoursynth

Settings are the same as avisynth

Last edited by lifta19; 14th April 2020 at 11:35.
lifta19 is offline   Reply With Quote
Reply

Tags
aac, hdr, hevc, nvenc, staxrip, x264, x265

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.