Creating video with irregular framerate?

Hi,
I have an animation that has images appearing at irregular time stamps (e.g. Img1 at 0.4s, Img2 0.6, Img3 0.9, Img4 1.0) and I'd like to export a video file from it. Unfortunately writeVideo doesn't let me adjust the framerate with every frame.
Is there any way for me to export such a video file?
Thanks!

 採用された回答

Walter Roberson
Walter Roberson 2015 年 7 月 18 日
編集済み: Walter Roberson 2015 年 7 月 18 日

1 投票

No, the usual way is to just keep writing the same frame until the timecode for the next frame.
You could look at a tool such as HandBrake which can handle VFR (Variable Frame Rate). I did not look at it much, but such transcoders frequently include a feature to build videos from files of images.
Note: you would need to test whether your target players will play VFR video.

1 件のコメント

Lyn
Lyn 2015 年 7 月 20 日
"No, the usual way is to just keep writing the same frame until the timecode for the next frame."
Oh! that's a great suggestion, thank you!

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

その他の回答 (0 件)

質問済み:

Lyn
2015 年 7 月 18 日

コメント済み:

Lyn
2015 年 7 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by