Info
This question is closed. Reopen it to edit or answer.
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
How can I solve DiskLogger file error.
1 view (last 30 days)
Show older comments
The following error I'm getting in GUI:
winvideo: Error writing data to the DiskLogger file. Failed to find the open file handle.
Error using hgMovie Invalid movie: expected a structure
Error in movie (line 41) builtin('hgMovie',varargin{:});
9 Comments
Walter Roberson
on 9 Mar 2013
Please show how you are calling movie()
Rajesh
on 9 Mar 2013
Edited: Walter Roberson
on 9 Mar 2013
After Recording Video, it unable to play due to DiskLogger error, plz plz solve this proble Here I'm giving my Play Video Code uisng GUI
%%%code
if ~isfield(handles, 'format')
h = warndlg('Video setting is not ready, redo it','!! Warning !!');
pause (5);
if ishandle(h), close (h); end;
return;
end
if isempty(ls([handles.directory, '*avi']))
h = warndlg('Video not take yet, take video first!!!','!! Warning !!');
pause (5);
if ishandle(h), close (h); end;
return;
end
h = warndlg(['May be very slow!!'],'!! Warning !!');
pause (5);
if ishandle(h), close (h); end;
axes(handles.movieshow)
% mov = cell(1, loopnumber);
for k=1:handles.loopnumber
mov = VideoReader([handles.directory handles.filenameprefix num2str(k) '.avi']);
movie(mov);
clear mov
end
set(vid, 'LoggingMode')
% update handles
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
Rajesh
on 9 Mar 2013
Edited: Walter Roberson
on 9 Mar 2013
if ~isfield(handles, 'format')
h = warndlg('Video setting is not ready, redo it','!! Warning !!');
pause (5);
if ishandle(h), close (h); end;
return;
end
if isempty(ls([handles.directory, '*avi']))
h = warndlg('Video not take yet, take video first!!!','!! Warning !!');
pause (5);
if ishandle(h), close (h); end;
return;
end
h = warndlg(['May be very slow!!'],'!! Warning !!');
pause (5);
if ishandle(h), close (h); end;
axes(handles.movieshow)
% mov = cell(1, loopnumber);
for k=1:handles.loopnumber
mov = VideoReader([handles.directory handles.filenameprefix
num2str(k) '.avi']);
movie(mov);
clear mov
end
set(vid, 'LoggingMode')
% update handles
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
Walter Roberson
on 9 Mar 2013
Walter Roberson
on 9 Mar 2013
VideoReader does not return a movie!!
Rajesh
on 9 Mar 2013
finally the following error is occurred:
Error using hgMovie Invalid movie: expected a structure
Error in movie (line 41) builtin('hgMovie',varargin{:});
Error in kiituniv>PlayVideo_Callback (line 277) movie(mov);
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in kiituniv (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)kiituniv('PlayVideo_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)