Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by geysersam

6 hours ago

Just tried it and got this, is it correct?

> Write an ffmpeg command that implements the "bounce" effect: play from 0:00 to 0:03, then backwards from 0:03 to 0:00, then repeat 5 times.

  ffmpeg -i input.mp4 \
  -filter_complex "
  [0:v]trim=0:3,setpts=PTS-STARTPTS[f];
  [f]reverse[r];
  [f][r]concat=n=2:v=1:a=0[b];
  [b]loop=loop=4:size=150:start=0
  " \
  output.mp4

0 comments

geysersam

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities