Displaying 2 results from an estimated 2 matches for "ff2theora".
2004 Nov 20
0
ffmpeg2theora start and end time support
...uot;vorbis/codec.h"
#include "vorbis/vorbisenc.h"
#include "theorautils.h"
static double rint(double x)
{
if (x < 0.0)
return (double)(int)(x - 0.5);
else
return (double)(int)(x + 0.5);
}
theoraframes_info info;
static int using_stdin = 0;
typedef struct ff2theora{
AVFormatContext *context;
int video_index;
int audio_index;
int deinterlace;
int sample_rate;
int channels;
int disable_audio;
float audio_quality;
int output_width;
int output_height;
double fps;
ImgReSampleContext *img_resample_ctx; /* for image resampling/resizing */
ReSampleContex...
2004 Nov 20
0
ffmpeg2theora start and end time support - patch
...c
===================================================================
--- ffmpeg2theora.c (revision 8237)
+++ ffmpeg2theora.c (working copy)
@@ -76,6 +76,9 @@
int video_y;
int frame_x_offset;
int frame_y_offset;
+
+ int start_time; /* In seconds */
+ int end_time; /* In seconds */
}
*ff2theora;
@@ -128,7 +131,8 @@
this->frame_bottomBand=0;
this->frame_leftBand=0;
this->frame_rightBand=0;
-
+ this->start_time=0;
+ this->end_time=0; /* ZERO denotes no end time set */
}
return this;
}
@@ -142,7 +146,7 @@
AVCodec *acodec = NULL;
AVCodec *vco...