search for: output_resized

Displaying 4 results from an estimated 4 matches for "output_resized".

2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...+ framesync = -1; + } + else if (framesync > framesync_thresh) + { + fprintf (stderr, "\nDuplicating frame at %.1f: sync off by %.3f frames\n", + 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...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...ync); + frameadjust = -1; + } + else if (framesync > framesync_thresh) { + fprintf (stderr, "\nDuplicating frame at %.1f: sync off by %.2f frames\n", + v_pts_out, framesync); + frameadjust = 1; + } + else + frameadjust = 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...
2004 Nov 20
0
ffmpeg2theora start and end time support
...;channels); } else{ this->audio_resample_ctx=NULL; } } else{ this->audio_index = -1; } } if (this->video_index >= 0 || this->audio_index >=0){ AVFrame *frame=NULL; AVFrame *frame_tmp=NULL; AVFrame *output=NULL; AVFrame *output_tmp=NULL; AVFrame *output_resized=NULL; AVFrame *output_buffered=NULL; AVPacket pkt; int len; int len1; int got_picture; int first = 1; int e_o_s=0; int ret; uint8_t *ptr; int16_t *audio_buf= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE); int16_t *resampled= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE); if(...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...7 @@ info.sample_rate = this->sample_rate; info.vorbis_quality = this->audio_quality; info.vorbis_bitrate = this->audio_bitrate; - theoraframes_init (); + theoraframes_init (&info); /* main decoding loop */ do{ @@ -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...