VideoWrite .Avi file doesn't play in powerpoint. Any ideas?

10 ビュー (過去 30 日間)
Kyle
Kyle 2019 年 5 月 11 日
When I make .avi movies using VideoWriter the videos will not play in Office 365 PowerPoint on Mac. I have tried both 'Uncompressed AVI' and "Motion JPEG AVI'. I also tried saving as .mp4 with 'MPEG-4'. Nothing has worked.
The PowerPoint message is as follows:
"PowerPoint cannot insert a video from the selected file. Verify that the path and file format are correct, and then try again."
I believe the problem is due to how the compression is done. If I use CloudConvert (https://cloudconvert.com/avi-to-avi) to convert the movie from an avi to an avi the new avi file works!
Here are links to the two versions. The first is the one directly from Matlab. The second is the CloudConvert version.
Matlab generated avi: matlab_generated_avi
CloudConvert avi: cloud_convert_avi
Both videos will play in other video players such as VLC.
Here is the code I used to write the movie:
v = VideoWriter(save_file_string,'Motion JPEG AVI'); %I have tried replacing 'Motion JPEG AVI' with other profile types.
open(v)
writeVideo(v,roi_movie);
close(v)
Any ideas? I can just manually convert every movie I make using CloudConvert, but that is annoying. I believe there must be something I can do with Matlab.
I am using MATLAB R2016a on a MacOS Mojave. I have attached the matrix for the movie I am trying to make as well (roi_movie.mat).
Thanks in advance!
Kyle

回答 (0 件)

カテゴリ

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