Skip to content

Commit

Permalink
Make showprogress=true the default
Browse files Browse the repository at this point in the history
  • Loading branch information
myrsloik committed Dec 29, 2024
1 parent 50c3644 commit dd03bc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ ninja -C build install

## VapourSynth usage

`bs.AudioSource(string source[, int track = -1, int adjustdelay = -1, int threads = 0, bint enable_drefs = False, bint use_absolute_path = False, float drc_scale = 0, int cachemode = 1, string cachepath, int cachesize = 100, bint showprogress = False])`
`bs.AudioSource(string source[, int track = -1, int adjustdelay = -1, int threads = 0, bint enable_drefs = False, bint use_absolute_path = False, float drc_scale = 0, int cachemode = 1, string cachepath, int cachesize = 100, bint showprogress = True])`

`bs.VideoSource(string source[, int track = -1, int variableformat = -1, int fpsnum = -1, int fpsden = 1, bint rff = False, int threads = 0, int seekpreroll = 20, bint enable_drefs = False, bint use_absolute_path = False, int cachemode = 1, string cachepath , int cachesize = 1000, string hwdevice, int extrahwframes = 9, string timecodes, int start_number, int viewid = 0, bint showprogress = False])`
`bs.VideoSource(string source[, int track = -1, int variableformat = -1, int fpsnum = -1, int fpsden = 1, bint rff = False, int threads = 0, int seekpreroll = 20, bint enable_drefs = False, bint use_absolute_path = False, int cachemode = 1, string cachepath , int cachesize = 1000, string hwdevice, int extrahwframes = 9, string timecodes, int start_number, int viewid = 0, bint showprogress = True])`

`bs.TrackInfo(string source[, bint enable_drefs = False, bint use_absolute_path = False])`

Expand Down
2 changes: 2 additions & 0 deletions src/vapoursynth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ static void VS_CC CreateBestVideoSource(const VSMap *In, VSMap *Out, void *, VSC
if (err)
StartNumber = -1;
bool ShowProgress = !!vsapi->mapGetInt(In, "showprogress", 0, &err);
if (err)
ShowProgress = true;
int ExtraHWFrames = vsapi->mapGetIntSaturated(In, "extrahwframes", 0, &err);
if (err)
ExtraHWFrames = 9;
Expand Down

0 comments on commit dd03bc8

Please sign in to comment.