View Single Post
Old 26th December 2013, 08:26   #2  |  Link
sarmano
Registered User
 
Join Date: Oct 2006
Posts: 26
cretindesalpes

Many thx!
Very usefull tool and perfect solution!

I'm using avs4x264mod to read stream directly thru DGDecodeNV.dll or like this.
trimx264opt and avs4x264mod working together without problem with involved AviSynth routine.

How is it possible to get working trimx264opt and another decode.dll?

setpaths.bat
Code:
set trimx264opt=trimx264opt.exe
set avs2pipemod=avs2pipemod.exe
set x264=avs4x264mod.exe
encoding.bat
*- (--qpfile "qp.log", each frame sign)
Code:
C:\WINDOWS\system32\cmd.exe /c start /low /b encode-part.bat input.avs 8000 16000 "" "qp.log" "" 8 --x264-binary "x264.exe" 
--crf 18 --profile high422 --preset placebo --vbv-bufsize 40000 --vbv-maxrate 32500 --vbv-init 0.9 --slices 4 -I 24 -i 2 --ref 4 --mixed-refs 
--deblock -3:-3 --direct auto --bframes 3 --b-pyramid strict --weightb --weightp 2 --b-bias 0 --b-adapt 2 --me tesa --subme 11 --merange 16 
--scenecut 40 --8x8dct --partitions i4x4,i8x8,p8x8,b8x8 --aq-mode 3 --aq-strength 0.6 --trellis 2 --psy-rd 0.6:0.15 --level 4.1 --ratetol 1.00 
--cplxblur 20 --qblur 0.50 --nr 0 --rc-lookahead 24 --sync-lookahead 0 --qcomp 0.6 --qpmin 0 --qpmax 69 --qpstep 4 --ipratio 1.35 --chroma-qp-offset -2 
--deadzone-inter 6 --deadzone-intra 6 --aud --nal-hrd vbr --threads 6 --mvrange 511 --no-dct-decimate --no-fast-pskip --sar 1:1 --no-chroma-me 
--constrained-intra --chromaloc 0 --colorprim bt709 --transfer bt709 --colormatrix bt709 --non-deterministic --cqmfile "Movie.[AVC].Matrix.cfg" 
--log-file "encode.log" --output "C:\Temp\[crf]..movie.264" --no-mbtree --open-gop --input-range tv --range tv --fps 24000/1001 --index movie.index
I think makesimple option would be usefull too
Example: avisynth composed 2500 frames uniformly distributed of the video(25fps) pieces by 50 frames.
Code:
selectTotal1=framecount()/100
selectTotal2=selectTotal1*2
selectrangeevery(selectTotal2,50)
* - Maybe this help a little


Quote:
I’m pretty sure this kind of segmented encoding can break the VBV constraints on segment boundaries
Indeed...

Last edited by sarmano; 27th December 2013 at 03:28.
sarmano is offline   Reply With Quote