<div dir="ltr"><p dir="ltr">Hey Vito,</p>
<p dir="ltr">you can load and edit video with matlab and provided you have all the necessary codecs it may also be possible to save the video back to the preferred format.<br>
>From what I remember MATLAB does not do well with compression however and you can end up with huge files. <br>
Generally to load video data you can use VideoReader object (or mmreader in MATLAB versions earlier than 2010b).<br>
The documentation is here:<br></p><p><a href="http://www.mathworks.com/help/matlab/ref/videoreaderclass.html">http://www.mathworks.com/help/matlab/ref/videoreaderclass.html</a></p><p dir="ltr">However,  there may be some functions at Matlab Central that better suit you needs, take a look, for example:<br>
<a href="http://www.mathworks.com/matlabcentral/fileexchange/8028-mmread">http://www.mathworks.com/matlabcentral/fileexchange/8028-mmread</a><br><br></p><p>I do not have much experience with saving the video later in a format and compression identical<br>
to your original file, but I think you may also find some nice functions on Matlab Central for that.<br><br></p><p>Now, concerning EEG:<br></p>
<p>If you use eegplot in a way that does not immediately remove signal (demonstration is below) and then use TMPREJ variable produced you can get to know which EEG samples you marked for removal (and later remove).<br>Call eegplot this way:<br>
eegplot(EEG.data, 'srate', EEG.srate, 'events', EEG.event,... <br>        'butlabel', 'MARK', 'command', 'disp('':)'');');</p><p>% and after marking you data:<br>
</p><p>if exist('TMPREJ', 'var')<br>    toreject = round(TMPREJ(:,1:2));<br>end<br></p><p>% now toreject contains extent of your<br>% each rejection mark in data samples<br>% with first column denoting start sample<br>
% and second column - end sample (and<br>% each row being one rejection mark<br></p><p dir="ltr">You would still need to know what is the video offset with respect to EEG recording and know the video sampling rate to translate your EEG samples to video frames.<br>
<br><br><br></p>
<div class="gmail_quote">4 lis 2013 18:28 "Vito de Feo" <<a href="mailto:vito.defeo@zmnh.uni-hamburg.de" target="_blank">vito.defeo@zmnh.uni-hamburg.de</a>> napisa³(a):<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
Hey everyone,<br>
<br>
I have some video eeg recording (eeg + video) and I wish delete some<br>
parts of my file (for example becuase I have artifacts). At the same<br>
time I would delete the same intervals from my video.<br>
I think that eeglab do not have this feature.<br>
Do you know some software or some way to do that?<br>
<br>
Thanks a lot,<br>
<br>
Vito<br>
<br>
<br>
<br>
<br>
--<br>
Pflichtangaben gemäß Gesetz über elektronische Handelsregister und Genossenschaftsregister sowie das Unternehmensregister (EHUG):<br>
<br>
Universitätsklinikum Hamburg-Eppendorf<br>
Körperschaft des öffentlichen Rechts<br>
Gerichtsstand: Hamburg<br>
<br>
Vorstandsmitglieder:<br>
Prof. Dr. Martin Zeitz (Vorsitzender)<br>
Prof. Dr. Dr. Uwe Koch-Gromus<br>
Joachim Prölß<br>
Rainer Schoppik<br>
_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote></div>
</div>