mms stream error on code.how to make it work?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i am trying to read a local mms stream and i get the present error on the scipt....
Error in ==> Untitled2 at 6
hSrc = vision.VideoFileReader(filename);
thats the code i am trying to run with no luck...
can someone give me an advise?
sendReceive = 'recieve';
url = 'mms://127.0.0.1:3044';
filename = 'hello.avi';
if strcmpi(sendReceive, 'recieve')
% Create objects
hSrc = vision.VideoFileReader(filename);
hSnk = vision.VideoFileWriter;
% Set parameters
hSnk.FileFormat = 'WMV';
hSnk.AudioInputPort = false;
hSnk.Filename = url;
% Run loop. Ctrl-C to exit
while true
data = step(hSrc);
step(hSnk, data);
end
else
% Create objects
hSrc = vision.VideoFileReader;
hSnk = vision.DeployableVideoPlayer;
% Set parameters
hSrc.Filename = url;
% Run loop. Ctrl-C to exit
while true
data = step(hSrc);
step(hSnk, data);
end
end
0 Kommentare
Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!