Displaying 4 results from an estimated 4 matches for "output_width".
2004 Nov 20
0
ffmpeg2theora start and end time support
...nt)(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 */
ReSampleContext *audio_resample_ctx;
ogg_uint32_t aspect_numerator;
ogg_uint32_t aspect_denominator;
double frame_aspect;
int video_quality;
/* cropping */
int frame_topBand;
int f...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...file-style:"cc-mode"; -*- */
/*
* ffmpeg2theora.c -- Convert ffmpeg supported a/v files to Ogg Theora
* Copyright (C) 2003-2004 <j@v2v.cc>
@@ -54,6 +55,9 @@
int disable_audio;
float audio_quality;
int audio_bitrate;
+ int smoothness;
+ int keyint;
+ int noautosync;
int output_width;
int output_height;
double fps;
@@ -123,6 +127,9 @@
this->video_bitrate=0;
this->audio_quality=0.297;// audio quality 3
this->audio_bitrate=0;
+ this->smoothness=0;
+ this->keyint=64;
+ this->noautosync=0;
this->force_input_fps=0;
this->aspect_numerator...
2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...,
+ v_pts_out, framesync);
+ framesync = 1;
+ }
+ else
+ framesync = 0.0;
+
//now output_resized
- if(theoraframes_add_video(&info, output_resized->data[0],
- this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){
- //this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){
- ret = -1;
- fprintf (stderr,"No theora frames available\n");
- break;
+ for (j = 0; j < 1 + framesync ; j++)
+ {
+ v_pts_out += (1/fps);
+ if(theoraframes_add_video(&info, output_r...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...{
@@ -491,7 +491,7 @@
}
first=0;
//now output_resized
- if(theoraframes_add_video(output_resized->data[0],
+ if(theoraframes_add_video(&info, output_resized->data[0],
this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){
//this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){
ret = -1;
@@ -529,7 +529,7 @@
resampled=audio_buf;
}
}
- if (theoraframes_add_audio(resampled,
+ if (theoraframes_add_audio(&info, resampled,
samples_out *(this->channels),samples_out...