not able to play video using parallel processing ,
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello
parfor i = 1:2
if i == 1
Function_I
else
Function_II
end
end
disp('completed');
function [outputArg1] = Function_I(inputArg1)
%UNTITLED4 Summary of this function goes here
% Detailed explanation goes here
inputArg1=1;
breakcond=0;
save breakcond breakcond;
videoFReader = vision.VideoFileReader('viplanedeparture.mp4');
vidObj = VideoReader('viplanedeparture.mp4');
figure;
videoPlayer = vision.VideoPlayer;
while ~isDone(videoFReader)
videoFrame = step(videoFReader);
% imshow(videoFrame);
step(videoPlayer, videoFrame);
pause(0.1);
end
release(videoPlayer);
release(videoFReader);
outputArg1=1;
breakcond=1;
save breakcond breakcond;
end
Video Player requires Java and a display to run. This functionality is not supported
under the -nojvm or -nodisplay startup option.
Error in matlabshared.scopes.UnifiedSystemScope/launchScope (line 137)
hFramework = uiscopes.new(hScopeCfg);
Error in matlabshared.scopes.UnifiedSystemScope (line 23)
launchScope(obj);
Error in vision.VideoPlayer
Error in Function_I (line 10)
videoPlayer = vision.VideoPlayer;
Error in tetspar1 (line 2)
parfor i = 1:2
1 commentaire
Raymond Norris
le 10 Mar 2021
I'm unclear what your question/comment is. Your code requires Java, so why are you passing the -nojvm switch to MATLAB?
Réponses (0)
Voir également
Catégories
En savoir plus sur Code Generation, GPU, and Third-Party Support dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!