2

I have the code below I want it to automatically increment up like this:
(t, 30,33) and (t, 60,63), (t, 90,93) and so on it adds 30 units.

     ffmpeg -i in.mov -vcodec copy -af "volume=enable='between(t,30,33)':volume=0"out2.mov

1 Answer 1

2

Use

-af "volume=enable='gte(t,30)*lt(mod(t,30),3)':volume=0"
2
  • 1
    Can you explain the parameters for me? Thank you so much
    – Monso
    Commented Jun 2, 2018 at 15:43
  • lt(mod(t,30),3) selects first 3 seconds of every 30 seconds, gte(t,30) starts selection from t=30s, so that the first 3 seconds (0-3) aren't selected.
    – Gyan
    Commented Jun 2, 2018 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.