-
Notifications
You must be signed in to change notification settings - Fork 0
/
loadAndPartitionMovies.m
56 lines (47 loc) · 1.88 KB
/
loadAndPartitionMovies.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
% loadAndPartitionMovies
%
% takes a file from somewhere on source disk, then makes the appropriate
% directory in ftp5, copies the mp4 there using a proper name, then breaks
% out the frames somewhere useful.
%
% NOTE - This is VERY specific to CIL organization. You will need to make
% you own version based on your organization.
sta = 'Aerielle';
sourcePn = '/media/LaCie/bathyDuckDataCollects/100815/1008151014GrazeAngleTests/';
sourceFn = 'DJI_0004.MP4';
dayNm = '281_Oct.08/';
info.time = matlab2Epoch(datenum(2015,10,08,10,18,0));
c1Pn = ['/ftp/pub5/' sta '/2015/c1/'];
cxPn = ['/ftp/pub5/' sta '/2015/cx/'];
tempPn = ['/scratch/temp/holman/' sourceFn(1:end-4)];
info.station = sta;
info.camera = '1';
info.type = 'movie';
info.format = 'mp4';
afn = argusFilename(info);
eval(['!mkdir ' c1Pn dayNm]); % make c1 day directory
eval(['!mkdir ' cxPn dayNm]); % and also cx
eval(['!cp ' sourcePn sourceFn ' ' c1Pn dayNm afn])
p = pwd;
eval(['cd ' sourcePn])
eval(['!every 15 ' sourceFn ' ' tempPn])
eval(['cd ' p])
%
% Copyright (C) 2017 Coastal Imaging Research Network
% and Oregon State University
% This program is free software: you can redistribute it and/or
% modify it under the terms of the GNU General Public License as
% published by the Free Software Foundation, version 3 of the
% License.
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
% You should have received a copy of the GNU General Public License
% along with this program. If not, see
% <http://www.gnu.org/licenses/>.
% CIRN: https://coastal-imaging-research-network.github.io/
% CIL: http://cil-www.coas.oregonstate.edu
%
%key UAVProcessingToolbox
%