Skip to content

andrewtyw/ffmpeg-reverse-playback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Video-reverse-playing

A pretty easy demo of using FFmpeg to play video in reverse

Environment

  • Qt 5.14 MinGW 64-bit
  • ffmpeg n4.4.2-20220415

How it works?

  • I use the producer-consumer design pattern. The video decoder will decode video frames into a blocking queue. Once the queue is non-empty, the frame render will be notified and then retrieve frames from the buffer and render them on the screen.

Important classes:

  • ReverseDisplay in /reverse_v3/reversedisplay.h, rendering thread.
  • ReverseDecode in /reverse_v3/reversedecode.h, video-decoding thread.
  • Controller in /reverse_v3/utils.h, a structure that contains a blocking queue to control the rendering and decoding thread.

demo

About

A demo of using ffmpeg to play a video in reverse.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages