Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2052 closed defect (fixed)

[REGRESSION] "." no longer works properly

Reported by: t.artem@… Owned by: reimar
Priority: important Component: core
Version: HEAD Severity: major
Keywords: Cc: diego@…, reimar, compn, cehoyos
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

In recent mplayer releases pressing "." intermittently works as expected, mplayer shows frame by frame.

The problem arises when you hit and leave this key pressed - older versions of mplayer then start playing media at its normal speed. However in this mode ("." is pressed and not released) recent mplayer releases start playing media at arbitrarily high speeds, even more audio and video streams totally lose synchronization.

Change History (18)

comment:1 by t.artem@…, 12 years ago

Cc: cehoyos@… added

comment:2 by t.artem@…, 12 years ago

Cc: Reimar.Doeffinger@… added

comment:3 by t.artem@…, 12 years ago

Cc: diego@… added

comment:4 by t.artem@…, 12 years ago

Cc: patriotact@… added

comment:5 by t.artem@…, 12 years ago

Priority: normalimportant

"." is utterly broken - even when you watch something frame by frame (by pressing and releasing the key after getting a frame) audio gets out of sync almost immediately.

comment:6 by compn, 12 years ago

could you paste mplayer output when this problem occurs? frame stepping still works for most people.

curious what audio output you use ?

comment:7 by t.artem@…, 12 years ago

AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 2.39:1 - prescaling to correct movie aspect.
VO: [xv] 1280x536 => 1280x536 Planar YV12

It happens on every video I have here:

A:2500.1 V:2494.3 A-V: 5.774 ct: 0.246 0/ 0 23% 0% 1.4% 0 0
A:2500.2 V:2494.3 A-V: 5.908 ct: 0.246 0/ 0 23% 0% 1.4% 0 0
A:2500.4 V:2494.4 A-V: 6.032 ct: 0.246 0/ 0 23% 0% 1.4% 0 0
A:2500.6 V:2494.4 A-V: 6.160 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2500.7 V:2494.5 A-V: 6.295 ct: 0.246 0/ 0 23% 0% 1.4% 0 0
A:2500.4 V:2500.4 A-V: 0.000 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2500.5 V:2500.4 A-V: 0.091 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2500.7 V:2500.5 A-V: 0.220 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2500.9 V:2500.5 A-V: 0.352 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2501.0 V:2500.5 A-V: 0.477 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2501.2 V:2500.6 A-V: 0.611 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2501.4 V:2500.6 A-V: 0.736 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2501.5 V:2500.7 A-V: 0.870 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2501.7 V:2500.7 A-V: 0.993 ct: 0.246 0/ 0 22% 0% 0.6% 0 0
A:2501.9 V:2500.8 A-V: 1.127 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2502.0 V:2500.8 A-V: 1.250 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2502.2 V:2500.8 A-V: 1.385 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2502.4 V:2500.9 A-V: 1.510 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2502.6 V:2500.9 A-V: 1.642 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2502.7 V:2501.0 A-V: 1.768 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2502.9 V:2501.0 A-V: 1.901 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2503.1 V:2501.0 A-V: 2.026 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2503.2 V:2501.1 A-V: 2.158 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2503.4 V:2501.1 A-V: 2.284 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2503.6 V:2501.2 A-V: 2.416 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2503.8 V:2501.2 A-V: 2.541 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2503.9 V:2501.3 A-V: 2.674 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2504.1 V:2501.3 A-V: 2.804 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2504.3 V:2501.3 A-V: 2.928 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2504.4 V:2501.4 A-V: 3.062 ct: 0.246 0/ 0 22% 0% 0.7% 0 0
A:2504.6 V:2501.4 A-V: 3.187 ct: 0.246 0/ 0 22% 0% 0.9% 0 0
A:2504.8 V:2501.5 A-V: 3.319 ct: 0.246 0/ 0 22% 0% 0.9% 0 0
A:2505.0 V:2501.5 A-V: 3.449 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2505.1 V:2501.5 A-V: 3.574 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2505.3 V:2501.6 A-V: 3.707 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2505.5 V:2501.6 A-V: 3.836 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2505.6 V:2501.7 A-V: 3.961 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2505.8 V:2501.7 A-V: 4.095 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2506.0 V:2501.8 A-V: 4.219 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2506.1 V:2501.8 A-V: 4.353 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2506.3 V:2501.8 A-V: 4.478 ct: 0.246 0/ 0 22% 0% 1.0% 0 0
A:2506.5 V:2501.9 A-V: 4.613 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2506.7 V:2501.9 A-V: 4.734 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2506.8 V:2502.0 A-V: 4.868 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2507.0 V:2502.0 A-V: 4.997 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2507.2 V:2502.0 A-V: 5.121 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2507.3 V:2502.1 A-V: 5.254 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2507.5 V:2502.1 A-V: 5.383 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2507.7 V:2502.2 A-V: 5.509 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2507.9 V:2502.2 A-V: 5.641 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2508.0 V:2502.3 A-V: 5.766 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2508.2 V:2502.3 A-V: 5.900 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2508.4 V:2502.3 A-V: 6.023 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2508.5 V:2502.4 A-V: 6.158 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2508.7 V:2502.4 A-V: 6.282 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2508.9 V:2502.5 A-V: 6.415 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2509.0 V:2502.5 A-V: 6.539 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2509.2 V:2502.5 A-V: 6.674 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2509.4 V:2502.6 A-V: 6.797 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2509.6 V:2502.6 A-V: 6.933 ct: 0.246 0/ 0 22% 0% 1.2% 0 0
A:2509.7 V:2502.7 A-V: 7.055 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2509.9 V:2502.7 A-V: 7.188 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2510.1 V:2502.8 A-V: 7.312 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2510.2 V:2502.8 A-V: 7.446 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2510.4 V:2502.8 A-V: 7.571 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2510.6 V:2502.9 A-V: 7.703 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2510.7 V:2502.9 A-V: 7.827 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2510.9 V:2503.0 A-V: 7.962 ct: 0.246 0/ 0 22% 0% 1.3% 0 0
A:2511.1 V:2503.0 A-V: 8.087 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2511.3 V:2503.0 A-V: 8.220 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2511.4 V:2503.1 A-V: 8.345 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2511.6 V:2503.1 A-V: 8.477 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2511.8 V:2503.2 A-V: 8.602 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2511.9 V:2503.2 A-V: 8.736 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2512.1 V:2503.3 A-V: 8.860 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2512.3 V:2503.3 A-V: 8.994 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2512.5 V:2503.3 A-V: 9.118 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2512.6 V:2503.4 A-V: 9.251 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2512.8 V:2503.4 A-V: 9.377 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2513.0 V:2503.5 A-V: 9.509 ct: 0.246 0/ 0 22% 0% 1.4% 0 0
A:2513.1 V:2503.5 A-V: 9.634 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2513.3 V:2503.5 A-V: 9.768 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2513.5 V:2503.6 A-V: 9.891 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2513.7 V:2503.6 A-V: 10.024 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2513.8 V:2503.7 A-V: 10.150 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2514.0 V:2503.7 A-V: 10.283 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2514.2 V:2503.8 A-V: 10.408 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2514.3 V:2503.8 A-V: 10.541 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2514.5 V:2503.8 A-V: 10.665 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2514.7 V:2503.9 A-V: 10.798 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2514.8 V:2503.9 A-V: 10.923 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2515.0 V:2504.0 A-V: 11.057 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2515.2 V:2504.0 A-V: 11.181 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2515.4 V:2504.0 A-V: 11.314 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2515.5 V:2504.1 A-V: 11.440 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2515.7 V:2504.1 A-V: 11.572 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2515.9 V:2504.2 A-V: 11.698 ct: 0.246 0/ 0 22% 0% 1.5% 0 0
A:2516.0 V:2504.2 A-V: 11.830 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2516.2 V:2504.3 A-V: 11.955 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2516.4 V:2504.3 A-V: 12.088 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2516.6 V:2504.3 A-V: 12.212 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2516.7 V:2504.4 A-V: 12.346 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2516.9 V:2504.4 A-V: 12.472 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2517.1 V:2504.5 A-V: 12.603 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2517.2 V:2504.5 A-V: 12.728 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2517.4 V:2504.5 A-V: 12.859 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2517.6 V:2504.6 A-V: 12.987 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2517.7 V:2504.6 A-V: 13.115 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2517.9 V:2504.7 A-V: 13.260 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2518.1 V:2504.7 A-V: 13.379 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2518.3 V:2504.8 A-V: 13.503 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2518.4 V:2504.8 A-V: 13.639 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2518.6 V:2504.8 A-V: 13.762 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2518.8 V:2504.9 A-V: 13.896 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2518.9 V:2504.9 A-V: 14.019 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2519.1 V:2505.0 A-V: 14.155 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2519.3 V:2505.0 A-V: 14.277 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2519.5 V:2505.0 A-V: 14.406 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2519.6 V:2505.1 A-V: 14.541 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2519.8 V:2505.1 A-V: 14.664 ct: 0.246 0/ 0 22% 0% 1.6% 0 0
A:2520.0 V:2505.2 A-V: 14.793 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2520.1 V:2505.2 A-V: 14.928 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2520.3 V:2505.3 A-V: 15.052 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2520.5 V:2505.3 A-V: 15.179 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2520.7 V:2505.3 A-V: 15.313 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2520.8 V:2505.4 A-V: 15.438 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2521.0 V:2505.4 A-V: 15.568 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2521.2 V:2505.5 A-V: 15.702 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2521.3 V:2505.5 A-V: 15.825 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2521.5 V:2505.5 A-V: 15.960 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2521.7 V:2505.6 A-V: 16.084 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2521.8 V:2505.6 A-V: 16.211 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2522.0 V:2505.7 A-V: 16.341 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2522.2 V:2505.7 A-V: 16.474 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2522.4 V:2505.8 A-V: 16.600 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2522.5 V:2505.8 A-V: 16.728 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2522.7 V:2505.8 A-V: 16.862 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2522.9 V:2505.9 A-V: 16.986 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2523.0 V:2505.9 A-V: 17.118 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2523.2 V:2506.0 A-V: 17.243 ct: 0.246 0/ 0 22% 0% 1.7% 0 0
A:2523.4 V:2506.0 A-V: 17.373 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2523.6 V:2506.0 A-V: 17.505 ct: 0.246 0/ 0 22% 1% 1.8% 0 0
A:2523.7 V:2506.1 A-V: 17.630 ct: 0.246 0/ 0 22% 1% 1.8% 0 0
A:2523.9 V:2506.1 A-V: 17.762 ct: 0.246 0/ 0 22% 1% 1.8% 0 0
A:2524.1 V:2506.2 A-V: 17.889 ct: 0.246 0/ 0 22% 1% 1.8% 0 0
A:2524.2 V:2506.2 A-V: 18.019 ct: 0.246 0/ 0 22% 1% 1.8% 0 0
A:2524.4 V:2506.3 A-V: 18.146 ct: 0.246 0/ 0 22% 1% 1.8% 0 0
A:2524.6 V:2506.3 A-V: 18.278 ct: 0.246 0/ 0 22% 1% 1.8% 0 0
A:2524.7 V:2506.3 A-V: 18.403 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2524.9 V:2506.4 A-V: 18.535 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2525.1 V:2506.4 A-V: 18.660 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2525.3 V:2506.5 A-V: 18.790 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2525.4 V:2506.5 A-V: 18.919 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2525.6 V:2506.6 A-V: 19.057 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2525.8 V:2506.6 A-V: 19.177 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2525.9 V:2506.6 A-V: 19.303 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2526.1 V:2506.7 A-V: 19.437 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2526.3 V:2506.7 A-V: 19.562 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2526.5 V:2506.8 A-V: 19.695 ct: 0.246 0/ 0 22% 0% 1.8% 0 0
A:2526.6 V:2506.8 A-V: 19.822 ct: 0.246 0/ 0 22% 0% 1.9% 0 0
A:2526.8 V:2506.8 A-V: 19.955 ct: 0.246 0/ 0 22% 0% 1.9% 0 0
A:2527.0 V:2506.9 A-V: 20.079 ct: 0.246 0/ 0 22% 0% 1.9% 0 0
A:2527.1 V:2506.9 A-V: 20.213 ct: 0.246 0/ 0 22% 0% 1.9% 0 0
A:2527.3 V:2507.0 A-V: 20.337 ct: 0.246 0/ 0 22% 0% 1.9% 0 0
A:2527.5 V:2507.0 A-V: 20.470 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2527.6 V:2507.1 A-V: 20.595 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2527.8 V:2507.1 A-V: 20.729 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2528.0 V:2507.1 A-V: 20.853 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2528.2 V:2507.2 A-V: 20.986 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2528.3 V:2507.2 A-V: 21.111 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2528.5 V:2507.3 A-V: 21.243 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2528.7 V:2507.3 A-V: 21.369 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2528.8 V:2507.3 A-V: 21.501 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2529.0 V:2507.4 A-V: 21.627 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2529.2 V:2507.4 A-V: 21.759 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2529.4 V:2507.5 A-V: 21.884 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2529.5 V:2507.5 A-V: 22.019 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2529.7 V:2507.6 A-V: 22.143 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2529.9 V:2507.6 A-V: 22.275 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2530.0 V:2507.6 A-V: 22.400 ct: 0.246 0/ 0 22% 1% 1.9% 0 0
A:2530.2 V:2507.7 A-V: 22.534 ct: 0.246 0/ 0 22% 1% 1.9% 0 0

22 seconds of audio de-synchronization just for 7 seconds of video )) That's insane.

And like I said, I can reproduce this bug on any video I have here.

comment:8 by compn, 12 years ago

are you using pulseaudio on your system at all ?

and does -mc 10 or -mc 0 change anything?

comment:9 by t.artem@…, 12 years ago

(In reply to comment #4)

are you using pulseaudio on your system at all ?

and does -mc 10 or -mc 0 change anything?

PulseAudio is not installed here at all, just plain ALSA, Linux kernel 3.3.1.

-mc 10

A:2453.6 V:2426.4 A-V: 27.174 ct: 0.263 0/ 0 22% 0% 1.9% 0 0

-mc 0

A:2438.0 V:2423.1 A-V: 14.931 ct: 0.020 0/ 0 21% 0% 1.9% 0 0

Nothing at all, none of these options help.

Running with -v -v -v doesn't reveal anything interesting either, I see :

demux_lavf_fill_buffer()
vd_ffmpeg data ...
32768=mp_read(), pos: ..., eof:0

no errors, warning or anything of that kind.

comment:10 by reimar, 12 years ago

If with -v and ALSA you do not get this message:
alsa-pause: pause supported by hardware
That is where your problem lies. If you get that message, almost certainly the ALSA driver is broken.
Either way it shouldn't be related to MPlayer.
If you are absolutely certain that it is a regression in MPlayer (and not e.g. in ALSA) please find out the exact revision when it broken.
However there haven't been any relevant changes to the the ALSA ao since years, so it seems very unlikely.
And yes it works perfectly for me, never more than 0.1 s out of sync, both with -ao alsa and -ao pulse.

comment:11 by compn, 12 years ago

only thing that may have changed was switching to lavf demuxer for mp4 format

does using the mplayer demuxer
aka -demuxer mov or -demuxer mkv (for mp4/mkv respectively)
help any?

comment:12 by t.artem@…, 12 years ago

(In reply to comment #6)

If with -v and ALSA you do not get this message:
alsa-pause: pause supported by hardware

No, I don't see this message.

Trying preferred audio driver 'alsa', options '[none]'
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.24
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: got buffersize=32768
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@…>
AO: Comment: under development
Building audio filter chain for 44100Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[libaf] Adding filter lavcresample
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...

That is where your problem lies. If you get that message, almost certainly
the ALSA driver is broken.

I will try to file a bug report about this problem, however it seems kinda weird to me that the support from hardware is required for this feature to work properly.

Either way it shouldn't be related to MPlayer.
If you are absolutely certain that it is a regression in MPlayer (and not
e.g. in ALSA) please find out the exact revision when it broken.

I don't use this feature too often so the perceived breakage/regression could coincide with the hardware refresh I had a year ago.

However there haven't been any relevant changes to the the ALSA ao since
years, so it seems very unlikely.
And yes it works perfectly for me, never more than 0.1 s out of sync, both
with -ao alsa and -ao pulse.

Feel free to close this bug report as WONTFIX/INVALID then if you are sure about hardware pause support and its absolute necessity.

(In reply to comment #7)

only thing that may have changed was switching to lavf demuxer for mp4 format

does using the mplayer demuxer
aka -demuxer mov or -demuxer mkv (for mp4/mkv respectively)
help any?

No, it cannot/doesn't help because it happens on all sources (mkv, mov, avi, mpg, etc).

comment:13 by t.artem@…, 12 years ago

bug_file_loc: https://bugzilla.kernel.org/show_bug.cgi?id=43045

comment:14 by t.artem@…, 12 years ago

-ao oss has fixed this issue for me, however I need to stop all other applications accessing audio to avoid "[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy".

Weirdly with -v -v -v -ao oss I also see *no* messages about hardware pause support.

Trying preferred audio driver 'oss', options '[none]'
ao2: 48000 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 16/16 (4096 bytes/frag) free: 65536
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...

Maybe it's because with oss mplayer uses IOCTLs.

comment:15 by reimar, 12 years ago

oss doesn't print the message either way because
1) Only -ao alsa ever prints it
2) -ao oss does not use hardware pause support, mostly because that is not possible via OSS.

Now as -ao oss shows hardware pause support is not necessary, however with even the crappiest onboard sound generally supporting it, nobody thought it necessary to implement the same hack as for OSS (also there is a risk it might not work anyway).
I'd be curious to know what kind of audio hardware that is that has this issue.
Without access to hardware with such behaviour fixing it is also a little bit risky I guess.

comment:16 by t.artem@…, 12 years ago

(In reply to comment #10)

I'd be curious to know what kind of audio hardware that is that has this
issue.
Without access to hardware with such behaviour fixing it is also a little
bit risky I guess.

I have a very common Realtek ALC892 Audio Codec which can be found on a large number of Asus P8* motherboards.

comment:17 by reimar, 12 years ago

Resolution: fixed
Status: newclosed

Hm, I realize I have been using HDMI-out, so no idea whether the real hardware has the same issue.
Anyway I found a way to test this, so I added the workaround that OSS uses (in r34842).
However with proper pause support you'd really hear the audio matching each frame when frame-stepping, with this workaround you'll generally hear only silence.

comment:18 by t.artem@…, 12 years ago

(In reply to comment #12)

Hm, I realize I have been using HDMI-out, so no idea whether the real
hardware has the same issue.
Anyway I found a way to test this, so I added the workaround that OSS uses
(in r34842).
However with proper pause support you'd really hear the audio matching each
frame when frame-stepping, with this workaround you'll generally hear only
silence.

Takashi Iwai:

"The driver supports the pause operation already. If you are using dmix, it
doesn't because of the dmix plugin."

and then about lack of support for "hardware" pause in dmix and if it's fixable:

"Well, this isn't trivial, unfortunately, although it's not impossible. The
pause will need to rewind the already-buffered samples at the current point,
then applies them at continue. So, it needs a lot of code."

So, mplayer relies on something that's not available on most Linux systems (dmix is now universally employed, not sure about PulseAudio).

Note: See TracTickets for help on using tickets.