When trying to a video using VideoWriter function and I am returned the following error:
Error using FilesLoad (line 119)
Unable to find file. Ensure file exists and path is valid.
The code is simply:
writerObj = VideoWriter("Controller1:50 Controller2:20.avi");

 Réponse acceptée

Walter Roberson
Walter Roberson le 19 Oct 2022
Déplacé(e) : Walter Roberson le 19 Oct 2022

0 votes

Are you using Windows? Colon is not a valid character in a windows file name except for drive indicator

1 commentaire

Adam Handley
Adam Handley le 19 Oct 2022
Déplacé(e) : Walter Roberson le 19 Oct 2022
Perfect. I can't believe I missed that.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by