How to use FFmpeg Command for Reverse Video?

i am use to FFmpeg library in android for reverse video. I can dump images from video but how to reverse all images and make video. See this link that from i am use to library in my gradle.. Library is compile 'com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.2.5' i can use some of command and some are not. i use command as like below

-i /storage/emulated/0/ffvid/frameCount.mp4 -an -qscale 1 /storage/emulated/0/ffimg/revi%06d.jpg

above command use for dump images from video. i can’t use command as liki $ffmpeg , $sox and $cat

i have referred many link but not success in see below some links…

So please help me and give me solution. if other library available then suggest me. thanks advance

Video Production Asked by Ravi Vaghela on November 11, 2021

1 Answers

One Answer

FFmpeg has a reverse video filter and reverse audio filter.

For video only:

ffmpeg -i /storage/emulated/0/ffvid/frameCount.mp4 -vf reverse reversed.mp4

For audio and video:

ffmpeg -i /storage/emulated/0/ffvid/frameCount.mp4 -vf reverse -af areverse reversed.mp4

This filter buffers the entire clip. For larger files, segment the file, reverse each segment and then concat the reversed segments. Remember that you have to concat the reversed segments in the reverse order!

Answered by Gyan on November 11, 2021

Add your own answers!

Related Questions

How to filter out footage into one clip

1  Asked on February 19, 2021 by sanchez


Can’t apply transition effect between clips in Premiere Pro

3  Asked on February 16, 2021 by gerlof-leuhof


Extract audio from a multichannel video file

1  Asked on February 9, 2021 by yannis


Budget Mandalorian backgrounds

1  Asked on January 30, 2021 by tomh


How to read audio waveforms in NLE

0  Asked on January 28, 2021 by 5diraptor


Fix mp3float Header missing without re-encode

1  Asked on January 27, 2021 by malat


Looking to write a DaVinci Resolve plugin

1  Asked on January 13, 2021 by martin-cowie


.mov file is not playing video in After Effects

4  Asked on January 11, 2021 by tetrikus


FFmpeg resizing webcam overlay on desktop

0  Asked on December 31, 2020


Ask a Question

Get help from others!

© 2021 All rights reserved.