9 int main(int ac, char **av)
11 int ret; setbuf(stdout,0);
14 //db.access(av[1], 34543, 0);
15 if( !db.opened() || db.error() ) exit(1);
17 if( !(ret=db.clip_set.FindId(atoi(av[2]))) ) {
18 printf("clip_id: %d\n", db.clip_set.id());
19 printf("title: %s\n",db.clip_set._Title());
20 printf("path: %s\n",db.clip_set._Asset_path());
21 printf("position: %f\n",db.clip_set.Position());
22 printf("framerate: %f\n",db.clip_set.Framerate());
23 printf("average_weight: %f\n",db.clip_set.Average_weight());
24 printf("frames: %u",db.clip_set.Frames());
25 printf(" (%f)\n",db.clip_set.Frames()/db.clip_set.Framerate());
26 printf("pre/suffix: %u/%u\n",db.clip_set.Prefix_size(),db.clip_set.Suffix_size());
27 time_t st = (time_t)db.clip_set.System_time();
28 printf("system time: %s",ctime(&st));
29 time_t ct = (time_t)db.clip_set.Creation_time();
30 printf("creation time: %s",ctime(&ct));