showbox-oss / ffmprb

ffmprb is your audio/video montage friend, based on https://ffmpeg.org
6 stars 4 forks source link

Audio ducking fails if silence present in the end of input #13

Closed fedot closed 8 years ago

fedot commented 8 years ago

ffmpeg silence detection can be reported with no start or end. For cases where silence structure have only start time audio ducking will fail on:

transition_out_start = silent.end_at + Process.duck_audio_transition_out_start

with:

Exception: NoMethodError
Message: undefined method `+' for nil:NilClass
Backtrace:
        ~/.rvm/gems/ruby-2.2.1/gems/ffmprb-0.9.4/lib/ffmprb/process.rb:71:in `block (3 levels) in duck_audio'
costa commented 8 years ago

@fedot the new version is out, thx!