seq_id = 1861;
frame_id = 1536501;
for i=[24:35 60:72]
    if i==28 | i==30 | i==66 | i==68 | i==71
        continue;
    end
    if i==24
        fname = sprintf('Copy_of_start_end_frames_scene%d-camera3.csv', i);     
    else
        fname = sprintf('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