vlc media player invoking
이전 댓글 표시
when iam invoking the vlc media player it just showing the logo of vlc nothing else is happening
댓글 수: 4
Thomas
2012년 7월 5일
How is this question related to MATLAB? Are you invoking it through MATLAB?
Kevin Claytor
2012년 7월 5일
편집: Walter Roberson
2012년 7월 6일
Are you trying to call it as a system command in the command window? ( http://www.mathworks.com/help/techdoc/ref/system.html) What options are you passing to it, and what do you expect to get back (<http://wiki.videolan.org/VLC_command-line_help>)?
suresh duppad
2012년 7월 5일
Mubin Bagwan
2013년 5월 8일
function [] = vlc (filename)
%% plays a video file using Video Lan Client % Lee White % 7.13.2011
% path to vlc - system dependent vlc_path = 'C:\Program Files\VideoLAN\VLC\vlc.exe';
% sends the string as formatted as a dos command % The ampersand '&' forces the command to run in its own command window % The double quotations marks '"' accomodate any spaces ' ' that may be in % the file paths %filename='C:\Users\Public\Videos\Sample Videos\Wildlife.wmv';
dos(['"' vlc_path '" "' filename '" &']);
end
답변 (1개)
Jeffrey Girard
2014년 12월 3일
I assume you are invoking VLC through ActiveX. You need to send it a video file in the MRL format in order to have it play correctly. See the third line of code for an example of how to load a local file.
f = figure('Position',[0 0 800 600]);
a=actxcontrol('VideoLAN.VLCPlugin.2',[0,0,800,600]);
a.playlist.add('file://localhost/C:/example.avi');
a.playlist.play();
댓글 수: 1
Tobias Piechowiak
2018년 3월 2일
Hmmm... tried this with a *.mp4 file. The embedded VLC is busy but the screen stays black... no error message though. Is there a problem with .mp4 files? Or the codec? Any other thoughts?
Cheers
카테고리
도움말 센터 및 File Exchange에서 ActiveX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!