update ffmpeg to 4.1, add sketcher plugin, crikey tweaks, titler colorpicker, keyfram...
[goodguy/cinelerra.git] / cinelerra-5.1 / db / utils / framekey.C
1 #include<stdio.h>
2 #include<stdarg.h>
3 #include<time.h>
4
5 #include "tdb.h"
6 #include "s.C"
7
8 int main(int ac, char **av)
9 {
10   int ret;  setbuf(stdout,0);
11   theDb db;
12   db.open(av[1]);
13   //db.access(av[1], 34543, 0);
14   if( !db.opened() || db.error() ) exit(1);
15
16   unsigned int id = atoi(av[2]);
17   if( (ret=db.video_frame.FindId(id)) ) {
18 printf("id(%d) not found, ret = %d\n", id, ret);
19     return 1;
20   }
21   printf("%6d %f %f %f %f %f\n", db.video_frame.id(),
22     db.video_frame.Frame_mean(), db.video_frame.Frame_std_dev(),
23     db.video_frame.Frame_cx(), db.video_frame.Frame_cy(),
24     db.video_frame.Frame_moment());
25
26   db.close();
27   return 0;
28 }
29