フィルターのクリア

Error running VideoWriter in R2022b

3 ビュー (過去 30 日間)
Colin
Colin 2023 年 3 月 12 日
編集済み: Colin 2023 年 3 月 13 日
I am not able to create a basic VideoWriter object as described in the documentation, for example:
video = VideoWriter('newfile.avi');
returns "Not enough input arguments."
as does
video = VideoWriter('newfile.avi','Motion JPEG AVI');
However, adding a sample third argument:
v = VideoWriter('newfile.avi','Motion JPEG AVI','test');
returns
Error using VideoWriter: Too many input arguments.
Has anyone else experienced this or know of what the problem might be?
  8 件のコメント
Walter Roberson
Walter Roberson 2023 年 3 月 13 日
The problem is that you have a third party erase.m in your path
Colin
Colin 2023 年 3 月 13 日
This is exactly it -- I had a climate-model (WRF) set of files that included an erase.m script, and removing it from the path made VideoWriter happy. Will add this as an answer. Thank you!

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

採用された回答

Colin
Colin 2023 年 3 月 13 日
編集済み: Colin 2023 年 3 月 13 日
It turns out that I had a third-party erase.m script in my Matlab path which was interfering with the built-in erase function and making one of VideoWriter's subscripts unhappy. Searching in my filesystem for this erase.m and then calling
rmpath(location/of/third/party/erase.m)
made VideoWriter work again as expected. (h/t Walter Roberson)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by