フィルターのクリア

How can i change the speed of the video???

143 ビュー (過去 30 日間)
keshav poojari
keshav poojari 2019 年 1 月 1 日
コメント済み: Rik 2021 年 8 月 6 日
I used R2013a version.
Can i change the speed of the Video??

採用された回答

Walter Roberson
Walter Roberson 2019 年 1 月 1 日
Use VideoReader read() to read the frames. Use VideoWriter to write them out with a different frame rate.
Note that this would not be considered to be good enough for professional rate conversion between NTSC and PAL.
You should consider grabbing a program such as VLC which is pretty good for manipulating video, and is free.

その他の回答 (1 件)

Van Thuan Hoang
Van Thuan Hoang 2021 年 8 月 6 日
Hi,
You may play with this command: myVideo.FrameRate = 0.75;
For examples, to slowdown one video:
% MATLAB program to convert video into slow motion
clc;clear;close all;
% load the video.
obj = VideoReader('C:/Users/Gfg/Desktop/Sample1280.avi');
% Write in new variable
obj2= VideoWriter('xyz.avi');
% decrease framerate
obj2.FrameRate = 10;
open(obj2);
% for reading frames one by one
while hasFrame(obj)
k = readFrame(obj);
% write the frames in obj2.
obj2.writeVideo(k);
end
close(obj2);
Regards,
  1 件のコメント
Rik
Rik 2021 年 8 月 6 日
This time I edited your answer for you. Next time, please use the tools explained on this page to make your post more readable.

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by