how to play movie backwards

10 次查看(过去 30 天)
Lin Xiang
Lin Xiang 2015-3-2
I know step function can play movie forward. Does anyone know how to play movie backwards?

回答(2 个)

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

Hayat Ullah Kakakhel
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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by