how to play movie backwards

5 visualizaciones (últimos 30 días)
Lin Xiang
Lin Xiang el 2 de Mzo. de 2015
Respondida: Hayat Ullah Kakakhel el 24 de Abr. de 2019
I know step function can play movie forward. Does anyone know how to play movie backwards?

Respuestas (2)

Image Analyst
Image Analyst el 2 de Mzo. de 2015
Use read() and just pass it the frame numbers in reverse order. Then display them with imshow().

Hayat Ullah Kakakhel
Hayat Ullah Kakakhel el 24 de Abr. de 2019
v = VideoReader('xylophone.mp4');
nf = floor(v.Duration*v.FrameRate);
for i =nf:-1:1
imshow(read(v, i))
pause(1/v.FrameRate)
end
Plz run this code will help you to play video in reverse direction

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by