The logic was the wrong way around.
The idea is that we set an interval that is definitely smaller than the whole file.
This commit is contained in:
@@ -239,8 +239,8 @@ class EncodeTask(ctask.GstPipelineTask):
|
|||||||
# set an interval that is smaller than the duration
|
# set an interval that is smaller than the duration
|
||||||
# FIXME: check level and make sure it emits level up to the last
|
# FIXME: check level and make sure it emits level up to the last
|
||||||
# sample, even if input is small
|
# sample, even if input is small
|
||||||
interval = 1000000000L
|
interval = self.gst.SECOND
|
||||||
if interval < duration:
|
if interval > duration:
|
||||||
interval = duration / 2
|
interval = duration / 2
|
||||||
self._level.set_property('interval', interval)
|
self._level.set_property('interval', interval)
|
||||||
# add a probe so we can track progress
|
# add a probe so we can track progress
|
||||||
|
|||||||
Reference in New Issue
Block a user