<p>i want to create reverse video with audio and remov from large clip.for that first split video in segment then reverse splits video then concatenate all reverse video as single video file but it take too much time to execute all command.
</p>

<p>i want to single command to do split,reverse and concatenate video. </p>

<p>first split video:</p>

<p>String[] cmd = {"-ss", spos, "-t", epos, "-i", videoPath, "-preset", "ultrafast", "-c:v", "libx264", "-crf", "22", "-map", "0", "-segment_time", "6", "-g", "9", "-sc_threshold", "0", "-force_key_frames", "expr:gte(t,n_forced*6)", "-f", "segment","file%3d.mp4"};</p>

<p>then, reverse splited video:</p>

<p>String[] cmd = {"-i", splitlistFiles[i].getAbsolutePath(), "-preset", "ultrafast", "-vf", "reverse", "-af", "areverse", file2.getAbsolutePath()}</p>

<p>finally,concatenate all reverse video as single video:</p>

<p>String[] cmd={"-i", reverselistFiles[i].getAbsolutePath(),"-filter_complex","[0:v0][0:a0","concat=n=N::v=1:a=1 [v] [a]","-preset", "ultrafast", "-map", "[v]", "-map", "[a]", file.getAbsolutePath()}</p>

<p>Please help me how can i reverse video with audio and remove audio in less time . Thanks in advance :) and sorry for bad english.</p>

<video><ffmpeg><video-editor><android>
How to split,reverse and concatenate video using single command in FFMPEG?
p.jadhav
# How to split,reverse and concatenate video using single command in FFMPEG?

(Asked by: username_0 on 2019-12-14)

i want to create reverse video with audio and remov from large clip.for that first split video in segment then reverse splits video then concatenate all reverse video as single video file but it take too much time to execute all command.

i want to single command to do split,reverse and concatenate video.

first split video:

String[] cmd = {"-ss", spos, "-t", epos, "-i", videoPath, "-preset", "ultrafast", "-c:v", "libx264", "-crf", "22", "-map", "0", "-segment\_time", "6", "-g", "9", "-sc\_threshold", "0", "-force\_key\_frames", "expr:gte(t,n\_forced\*6)", "-f", "segment","file%3d.mp4"};

then, reverse splited video:

String[] cmd = {"-i", splitlistFiles[i].getAbsolutePath(), "-preset", "ultrafast", "-vf", "reverse", "-af", "areverse", file2.getAbsolutePath()}

finally,concatenate all reverse video as single video:

String[] cmd={"-i", reverselistFiles[i].getAbsolutePath(),"-filter\_complex","[0:v0][0:a0","concat=n=N::v=1:a=1 [v] [a]","-preset", "ultrafast", "-map", "[v]", "-map", "[a]", file.getAbsolutePath()}

Please help me how can i reverse video with audio and remove audio in less time . Thanks in advance :) and sorry for bad english.

**Tags:** video, ffmpeg, video-editor, android


---

## 0 answers

