seq_id = 1763;
frame_id = 1513346;
for i=[50:59 36:49]% 36:59
    if i==40 | i==43 | i==46 | i==48
        continue;
    end
    fname = sprintf('start_end_frames_scene%d-camera3.csv', i);
    if i==45
        fname = sprintf('Copy_of_start_end_frames_scene%d-camera3.csv', i);     
    end
    str = sprintf('!generate-index %d %d %d < %s >& tmp', i, seq_id, frame_id, fname);
    eval(str);
    fid = fopen('tmp','r');
    str2 = fgets(fid);
    fclose(fid);
    delete('tmp');
    [str3, str4] = strread(str2,'%s %s','delimiter',',');
    [d1, d2, d3, seq_id] = strread(str3{1},'%s %s %s %d');
    [d1, d2, d3, frame_id] = strread(str4{1},'%s %s %s %d');    
end