not able to play video using parallel processing ,
3 views (last 30 days)
Show older comments
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 Comment
Raymond Norris
on 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?
Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!