#include "../config.h"
-#ifdef HAVE_SIGNAL_H
-#ifdef HAVE_PTHREAD_H
-#include <pthread.h>
-#include <signal.h>
-#define DO_SIGNALS
-#endif
-#endif
-
-extern "C" {
#include "../lib/args.h"
-}
#include "v2swf.h"
#include "videoreader_avifile.hh"
return toabuf;
}
-static int shutdown_avi2swf = 0;
-static int frameno = 0;
-
#ifdef DO_SIGNALS
pthread_t main_thread;
static void sigterm(int sig)
v2swf_setparameter(&v2swf, "keyframe_interval", itoa(keyframe_interval));
if(expensive)
v2swf_setparameter(&v2swf, "motioncompensation", "1");
+ if(flip)
+ video.setparameter(&video, "flip", "1");
+ if(verbose)
+ video.setparameter(&video, "verbose", "1");
if(!verbose)
printf("\n");
video.getimage(&video, buf);
video.getsamples(&video, buf, (int)((video.rate/video.fps)*video.channels*2));
if(!verbose) {
- printf("\rSkipping frame %d", frameno);fflush(stdout);
+ printf("\rSkipping frame %d", video.frame);fflush(stdout);
}
}
free(buf);
if(!l)
break;
if(!verbose) {
- printf("\rConverting frame %d", frameno);fflush(stdout);
+ printf("\rConverting frame %d", video.frame);fflush(stdout);
}
}
if(!verbose)