FFMPEG Command to Reverse Video With Audio Track Using areverse & reverse Filters in Terminal

 

 

Reverse Video Without Audio

 

 

ffmpeg -i video.mp4 -vf reverse -c:v h264_nvenc -qp 16 output.mp4

 

 

Where video.mp4 is the input file name

 

vf is the video filter

 

reverse is the name of the filter

 

h264_nvenc is the name of the encoder used for this you need to have gpu inside system

 

output.mp4 is the output file name

 

 

Reverse Video With Audio

 

 

ffmpeg -i video2.mp4 -vf reverse -af areverse -c:v h264_nvenc -qp 16 output2.mp4

 

 

Where video2.mp4 is the input file name

 

vf is the video filter

 

reverse is the name of the video filter which reverses the video

 

af is the audio filter

 

areverse is the name of the audio filter which reverses the audio

 

h264_nvenc is the name of the encoder used for this you need to have gpu inside system

 

output2.mp4 is the output file name

 

 

Leave a Reply