Closed rmoff closed 6 years ago
Hey @rmoff , I'm glad it's being useful for you! 😁
hmmmm I guess that's because in the first scenario it's not picking a default value for the case when you don't specify the end of the quantization range.
For instance, if you try --range 2,100000
, it should work as you expect.
To solve that, the code could do something similar to what we do in speed
:
But then for quantize, instead, do something like:
func (t *quantizeTransformation) Transform(c *cast.Cast) (err error) {
// for each t.range, if no upper bound specified, make it `math.MaxFloat64`
err = editor.Quantize(c, t.ranges)
return
}
Wdyt?
thx!
Update: here's your cast piped to asciinema-edit quantize --range 2,100000
: cast
First off, thanks for a great tool! Perfect for what I need!
I'm trying to cut some long (~20 second) pauses from my cast (here)
I tried this:
But this didn't affect the length at all (147.826334 still the last frame).
If I specify additional ranges, it shortens it to ~130, but still with long pauses (over the 2 seconds max that I'm expecting)
I ended up using
speed
withstart
andend
to isolate a particularly long pause to speed that up:Am I using the parameters wrong?
Thanks!