set default chunking method to ffms2, looks to work more reliably

This commit is contained in:
Zen 2020-12-11 01:28:35 +02:00
parent 6f1cb54d8f
commit 3bd2f7e144
2 changed files with 11 additions and 9 deletions

View file

@ -103,8 +103,8 @@ With your own parameters:
-cm --chunk_method Determine way in which chunks made for encoding.
By default selected best one avalable.
vs_lsmash > vs_ffms2 > hybrid
['hybrid'(default), 'select', 'vs_ffms2', 'vs_lsmash'(Recomended To Install)]
vs_ffms2 > vs_lsmash > hybrid
['hybrid'(default), 'select', 'vs_ffms2'(Recomended To Install), 'vs_lsmash']
-tr --threshold PySceneDetect threshold for scene detection Default: 35

View file

@ -50,12 +50,14 @@ def select_best_chunking_method(project: Project):
import vapoursynth
plugins = vapoursynth.get_core().get_plugins()
if 'systems.innocent.lsmas' in plugins:
log('Set Chunking Method: L-SMASH\n')
project.chunk_method = 'vs_lsmash'
elif 'com.vapoursynth.ffms2' in plugins:
if 'com.vapoursynth.ffms2' in plugins:
log('Set Chunking Method: FFMS2\n')
project.chunk_method = 'vs_ffms2'
elif 'systems.innocent.lsmas' in plugins:
log('Set Chunking Method: L-SMASH\n')
project.chunk_method = 'vs_lsmash'
except:
log('Vapoursynth not installed but vspipe reachable\n' +
'Fallback to Hybrid\n')