Displaying 2 results from an estimated 2 matches for "framesync_thresh".
2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...1216/DK variables that help us keep track of A/V sync */
+ double v_pts_out = 0.0;
+ double v_pts_in = 0.0;
+ double a_pts_out = 0.0;
+ double v_pts_delta = 0.0;
+ double v_pts_delta_new = 0.0;
+ double a_pts_delta = 0.0;
+ double framesync = 0.0;
+ const double v_pts_smoothness = 8;
+ const double framesync_thresh = 0.6;
+ int j;
+
for (i = 0; i < this->context->nb_streams; i++){
AVCodecContext *enc = &this->context->streams[i]->codec;
switch (enc->codec_type){
@@ -520,14 +532,46 @@
len -= len1;
}
first=0;
+
+ /* 20041216/DK Check and correct A/V sync...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...s_in = 0.0;
+ double a_pts_out = 0.0;
+ double v_pts_delta = 1e99;
+ double v_pts_delta_new = 0.0;
+ double a_pts_delta = 0.0;
+ double framesync = 0.0;
+ double was_framesync = 0.0;
+ int frameadjust = 0;
+ const double v_pts_smoothness = 8;
+ double max_good_framesync_change = 0.5;
+ const double framesync_thresh = 0.6;
+ int j;
+
for (i = 0; i < this->context->nb_streams; i++){
AVCodecContext *enc = &this->context->streams[i]->codec;
switch (enc->codec_type){
@@ -414,16 +436,18 @@
info.ti.dropframes_p = 0;
info.ti.quick_p = 1;
info.ti.keyframe_auto_p = 1;
- in...