Change frame rate of video file

353 ビュー (過去 30 日間)
Katrina German
Katrina German 2021 年 5 月 10 日
I have a video file but videoReader doesn't allow frame rate change. I think i have to rewrite each of the frames in a loop to change the rate but don't know how to do that. if anyone has any suggestions thanks in advance

回答 (1 件)

Stephan
Stephan 2021 年 5 月 10 日
編集済み: Stephan 2021 年 5 月 10 日
You are fully right. First read all the frames using the read command for VideoReader. Then make a VideoWriter object and use the FrameRate property to set the frame rate you need and then write the video file using writeVideo. If you read the documentation and follow the examples given there it is quite easy to do this.
  1 件のコメント
Reinhold Erwin Suchowitzky Toba
Reinhold Erwin Suchowitzky Toba 2023 年 3 月 27 日
Terrible answer

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

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by