[XviD-devel] [BUG] 2pass has still overflows

Edouard Gomez ed.gomez at free.fr
Sun May 18 20:16:22 CEST 2003


Hi again,

I'm still having problems in 2Pass2 because of overflows or division by
zero.

I cannot trace that much as it happens at the 3408th frame when doing
tests on the Matrix2 Ultra trailer resized to 640x346.

[Switching to Thread 16384 (LWP 16640)]
0x4015bc00 in rc_2pass2_before () from /usr/local/lib/libxvidcore.so.4

I compiled xvid with debug options, the line causing the SIGFPE is:
$ gdb mencoder
(gdb) run -ovc xvid -vop scale=640:346 -sws 9 -xvidencopts
pass=2:bitrate=512:quality=6:max_bframes=2:bquant_ratio=150:bquant_offset=50
-oac mp3lame -af volume=5:sc -lameopts cbr:br=96:q=0:aq=0:mode=1
Matrix.Reloaded-Trailer.mov

0x4015501c in rc_2pass2_before (rc=0x8540ad8, data=0xbfffe2d0)
    at ../../src/plugins/plugin_2pass2.c:756

I Have the complete *rc dump:

(gdb) print *rc
$3 = {param = {version = 98560, bitrate = 512000,
    filename = 0x82c2cc0 "xvid-twopass.stats", keyframe_boost = 0,
    payback_method = 1, bitrate_payback_delay = 250,
    curve_compression_high = 0, curve_compression_low = 0,
    max_overflow_improvement = 60, max_overflow_degradation = 60,
    use_alt_curve = 0, alt_curve_high_dist = 500, alt_curve_low_dist =
    90,
    alt_curve_use_auto = 1, alt_curve_auto_str = 30, alt_curve_type = 1,
    alt_curve_min_rel_qual = 50, alt_curve_use_auto_bonus_bias = 1,
    alt_curve_bonus_bias = 50, kftreshold = 10, kfreduction = 20,
    min_key_interval = 300}, num_frames = 3631, num_keyframes = 380,
  target = 9595522, count = {380, 2162, 1089}, tot_length = {9186248,
    53053948, 3901804}, avg_length = {24174, 24539, 1072693248},
    min_length = {
    2467, 117, 8}, tot_scaled_length = {9186248, 53053948,
    1168162947072},
  max_length = 104459, avg_weight = 1, tot_quant = 0, curve_comp_scale =
  1,
  movie_curve = 1, alt_curve_low = 5.1806537865363094e-318,
  alt_curve_high = 0, alt_curve_low_diff = 4.5066621263462659e-311,
  alt_curve_high_diff = -5.8609549974752369e-53,
  alt_curve_curve_bias_bonus = 2.2632512513679671e+180,
  alt_curve_mid_qual = 1.0997840705358953e+248,
  alt_curve_qual_dev = 1.4267133654957676e-318,
  keyframe_locations = 0x8547400, stats = 0x40da0008, pquant_error = {0,
    0.32770297737330489, 0 <repeats 30 times>}, bquant_error = {0, 0,
    0.27726642187171935, 0 <repeats 29 times>}, quant_count = {0, 0,
    235, 67, 
   179, 0 <repeats 27 times>}, last_quant = {2, 2, 2},
  curve_comp_error = 263882110357, overflow = 69537, KFoverflow = 0,
  KFoverflow_partial = 0, KF_idx = 61, fq_error = 0}

I think we have problems with the bframes, just look at all bframe
related data...

Pete, is the code working for you 100% ?

-- 
Edouard Gomez-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://edu.bnhof.de/pipermail/xvid-devel/attachments/20030518/5109d8b8/attachment.bin


More information about the XviD-devel mailing list