Re:Show HN: Ez FFmpeg – Video editing in plain English
by Tempest1981 on Saturday December 27, 2025 @04:00AM
(#46400325)
One that older AI struggled with was the "bounce" effect: play from 0:00 to 0:03, then backwards from 0:03 to 0:00, then repeat 5 times.
[ Parent
| on HN ]
Re:Show HN: Ez FFmpeg – Video editing in plain English
by geysersam on Saturday December 27, 2025 @07:29AM
(#46401381)
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
Re:Show HN: Ez FFmpeg – Video editing in plain English
by Tempest1981 on Saturday December 27, 2025 @02:40PM
(#46404546)
Thanks, but no luck. I tested it on a 3 second video, and got a 6 second video. I.e. it bounced 1 time, not 5 times.
Maybe this should be an AI reasoning test.
Here is what eventually worked, iirc (10 bounces):
ffmpeg -i input.mkv -filter_complex "split=2[fwd][rev_in]; [rev_in]reverse[rev]; [fwd][rev]concat=n=2,split=10[p1][p2][p3][p4][p5][p6][p7][p8][p9][p10]; [p1][p2][p3][p4][p5][p6][p7][p8][p9][p10]concat=n=10[outv]" -map "[outv]" -an output.mkv