Boris
Boris

Reputation: 1

Open and play video in VLC or MPC using MATLAB

I would like to ask if anybody know how it is possible to open video in VLC or MPC player in Guide application using PushButton in Matlab.

I tried this simple command "open('1.avi)", but it makes error: "Out of memory. Type HELP MEMORY for your options.".

Upvotes: 0

Views: 1194

Answers (2)

Jeffrey Girard
Jeffrey Girard

Reputation: 811

As others have answered, you can open it in another program like VLC or MPC using functions such as winopen(), macopen(), or system(). Alternatively, you could embed an instance of VLC directly into your GUI using an ActiveX controller.

Upvotes: 1

Suever
Suever

Reputation: 65460

You will need to use the system command to launch an external application such as VLC.

If you're on Windows it would be something like:

system('"C:\Program Files\VideoLAN\VLC\VLC.exe" 1.avi')

For more information and information on other operating systems, checkout the VLC command line documentation here and here

Upvotes: 1

Related Questions