--- ./movieinfo.c.orig	Fri Jun  9 03:00:35 2006
+++ ./movieinfo.c	Tue Jul 10 20:42:40 2007
@@ -127,20 +127,25 @@
 
 static void usage(char *prog_name)
 {
-  printf("Usage: %s [OPTIONS]... MOVIE_FILES...\n", prog_name);
-  printf("\t-t -terse  Print output in a format that is easily parsable by scripts.\n");
-  printf("\t-h -help   Output this help text.\n");
+  printf("Usage: %s <file>\n", prog_name);
 }
 
 
+#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
+
 int main (int argc, char** argv)
 {
     AVFormatContext *fmt_ctx = NULL;
     AVFormatParameters params;
     AVStream *st;
     char *filename;
-    int err = 0, terse = 0;
+    int err = 0;
 
+    int i = 0;
+    long duration = 0;
+    long step = 0;
+    long time = 1;
+    
     // parse args
     /* set program name */
     prog_name = argv[0];
@@ -152,22 +157,6 @@
         exit(0);
     }
 
-    /* Parse named arguments */
-    while (argc > 0 && argv[0][0] == '-') {
-        if (strcmp(argv[0], "-terse") == 0) {
-            terse = 1;
-        } else if (strcmp(argv[0], "-help") == 0) {
-            usage(prog_name);
-            exit(0);
-        } else {
-            fprintf(stderr,"%s: unrecognized option: %s (try -help)\n",
-                    prog_name, argv[0]);
-            exit(1);
-        }
-        argc--;
-        argv++;
-    }
-
     // init ffmpeg libs
     av_register_all();
 
@@ -188,21 +177,21 @@
         st = get_video_stream(fmt_ctx);
 
         if (st) {
-            if (terse) {
-                fprintf(stdout, "%d ",    get_width(st));
-                fprintf(stdout, "%d ",    get_height(st));
-                fprintf(stdout, "%0.2f ", get_framerate(st));
-                fprintf(stdout, "%0.2f ", get_duration(fmt_ctx));
-                fprintf(stdout, "%ld ",   get_framecount(fmt_ctx, st));
-                fprintf(stdout, "%d\n",   has_audio(fmt_ctx));
-            } else {
-                fprintf(stdout, "width:       %d\n",    get_width(st));
-                fprintf(stdout, "height:      %d\n",    get_height(st));
-                fprintf(stdout, "frame rate:  %0.2f\n", get_framerate(st));
-                fprintf(stdout, "duration:    %0.2f\n", get_duration(fmt_ctx));
-                fprintf(stdout, "frame count: %ld\n",   get_framecount(fmt_ctx, st));
-                fprintf(stdout, "has audio:   %d\n\n",  has_audio(fmt_ctx));
-            }
+	
+	    duration = round(get_duration(fmt_ctx)) - 1;
+	    step = duration / 6;
+	    
+	    for (i=0; i<6; i++) {
+                fprintf(stdout, "%d ", time);
+		if ( time + step > duration ) { 
+		    time = duration - 1;
+		} else {
+    		    time = time + step;
+		}
+	    }
+	    
+
+//            fprintf(stdout, "%0.2f ", get_duration(fmt_ctx));
         } else {
             fprintf(stderr, "Can't find a video stream in this file\n");
             err = -1;

