[MPlayer-dev-eng] Better double frame rate output and framedrop
Andy Furniss
andyqos at ukfsn.org
Mon Oct 29 01:17:46 CET 2012
Vicente Sendra wrote:
> I can't reproduce this behaviour on any of my machines:
>
> My desktop is a little outdated cpu (single core p4 3Ghz), and doesn't have enough power to decode your file (drops a lot of frames, but not because of new framedrop system, it drops them to get correct a-v sync).
Sorry about the big sample - I thought at the time of posting it needed
to be HD, but that was just because the SD I tried didn't have sound.
I do get the same dropping with sd with sound.
> One of my laptops (core2 duo) play it flawlessly with :
> -cache 2000 -vo gl -framedrop -lavdopts threads=2 judder.m2ts
> or
> -cache 2000 -vo directx -framedrop -lavdopts threads=2 judder.m2ts
I only see this with -vo gl and vblank_mode=2, xv and vdpau are
unaffected as is gl without vblank_mode=2 with or without swap buffers
wait enabled. On R600 all three working cases do vsync in a different
way to the failing case.
>
> To better understand why your system drops so much frames:
>
> Check cpu usage, i think it should not be a problem as long as you use threads=4.
>
> To know the reason why each frame was dropped uncomment the lines following:
>
> "// uncomment to debug framedropper"
>
> To get more detailed information about framedropping change the lines that output video time usage by these ones¨:
>
> search for line with comment "// CPU usage", around line 1260
>
> if (sh_video) {
> if (sh_video->timer > 0.5)
> saddf(line, &pos, width, "%3.0f %3.0f %3.0f ",
> video_frame_time_usage*1000,
> vflip_frame_time_usage*1000,
> vout_frame_time*1000);
>
>
> you'll get lines like this:
>
> A: 14.2 V: 14.3 A-V: -0.164 ct: -0.192 62/ 62 34 0 39 31 0 50%
>
> 34 -> video_frame_time_usage (should be lower than frame time: 41.6ms)
> 0 -> vflip_frame_time_usage (should be close to 0)
> 39 -> vout_frame_time (should be close to frame time, but gets bigger when dropping frames, it shows the time between output frames).
>
>
> vflip_frame_time_usage must be greater than 10% of frame time to start dropping frames, 4ms in this case.
>
> If this time is normally bigger than this 10% i can change the code to get the lowest value of vflip_frame_time_usage and use the value of vflip_frame_time_usage - vflip_lowest_frame_time_usage to do the calculations.
>
> Please check the changes i suggest and give me some feedback.
>
> I changed the subject to related patch ("Better double frame rate output and framedrop"), please use this one as this problem is not related to "[PATCH] deinterlace property fix".
bash-3.2$ vblank_mode=2 mpn -vo gl -fs -lavdopts threads=4 -framedrop
/mnt/sda8/judder.m2ts
MPlayer SVN-r35266-4.2.3 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.
Playing /mnt/sda8/judder.m2ts.
libavformat version 54.35.100 (internal)
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4353) NO SUBS (yet)! PROGRAM N. 1
FPS seems to be: 23.976025
Load subtitles in /mnt/sda8/
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.69.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is undefined - no prescaling applied.
VO: [gl] 1920x1088 => 1920x1088 Planar YV12 [fs]
Mesa: User error: GL_INVALID_ENUM in
glTexParameter(pname=GL_TEXTURE_STORAGE_HINT_APPLE)
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl] 1920x1080 => 1920x1080 Planar YV12 [fs]
DROPPED NEW FRAME by SYNC
A: 11.8 V: 11.9 A-V: -0.127 ct: 0.000 8/ 8 ??% ??% ??,?% 1 0
DROPPED NEW FRAME by SYNC
Dropping frame with size not matching configured size
A: 11.8 V: 12.1 A-V: -0.219 ct: -0.013 11/ 11 ??% ??% ??,?% 2 0
DROPPED NEW FRAME by VOUT
A: 12.0 V: 12.4 A-V: -0.377 ct: -0.025 15/ 15 ??% ??% ??,?% 3 0
DROPPED NEW FRAME by VOUT
A: 12.0 V: 12.3 A-V: -0.267 ct: -0.029 16/ 16 ??% ??% ??,?% 4 0
DROPPED NEW FRAME by VOUT
A: 12.2 V: 12.4 A-V: -0.236 ct: -0.042 19/ 19 ??% ??% ??,?% 5 0
DROPPED NEW FRAME by VOUT
A: 12.2 V: 12.4 A-V: -0.250 ct: -0.046 20/ 20 0 0 0 6 0
DROPPED NEW FRAME by VOUT
A: 12.3 V: 12.6 A-V: -0.219 ct: -0.058 23/ 23 1 18 50 7 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 12.4 V: 12.7 A-V: -0.261 ct: -0.067 26/ 26 2 10 83 9 0
DROPPED NEW FRAME by VOUT
A: 12.6 V: 13.0 A-V: -0.420 ct: -0.079 30/ 30 0 6 33 10 0
DROPPED NEW FRAME by VOUT
A: 12.6 V: 12.9 A-V: -0.296 ct: -0.083 31/ 31 0 0 0 11 0
DROPPED NEW FRAME by VOUT
A: 12.7 V: 13.0 A-V: -0.278 ct: -0.096 34/ 34 0 6 33 12 0
DROPPED NEW FRAME by VOUT
A: 12.8 V: 13.1 A-V: -0.279 ct: -0.100 35/ 35 0 0 0 13 0
DROPPED NEW FRAME by VOUT
A: 12.9 V: 13.2 A-V: -0.261 ct: -0.113 38/ 38 0 6 33 14 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 13.0 V: 13.3 A-V: -0.286 ct: -0.121 41/ 41 1 14 100 16 0
DROPPED NEW FRAME by VOUT
A: 13.2 V: 13.6 A-V: -0.445 ct: -0.133 45/ 45 0 10 50 17 0
DROPPED NEW FRAME by VOUT
A: 13.2 V: 13.5 A-V: -0.325 ct: -0.138 46/ 46 0 0 0 18 0
DROPPED NEW FRAME by VOUT
A: 13.3 V: 13.7 A-V: -0.303 ct: -0.150 49/ 49 1 10 50 19 0
DROPPED NEW FRAME by VOUT
A: 13.4 V: 13.7 A-V: -0.308 ct: -0.154 50/ 50 0 0 0 20 0
DROPPED NEW FRAME by VOUT
A: 13.5 V: 13.8 A-V: -0.287 ct: -0.167 53/ 53 0 9 50 21 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 13.6 V: 14.1 A-V: -0.437 ct: -0.175 56/ 56 1 18 100 23 0
DROPPED NEW FRAME by VOUT
A: 13.8 V: 14.1 A-V: -0.345 ct: -0.188 60/ 60 0 13 50 24 0
DROPPED NEW FRAME by VOUT
A: 13.8 V: 14.2 A-V: -0.354 ct: -0.192 61/ 61 0 0 0 25 0
DROPPED NEW FRAME by VOUT
A: 13.9 V: 14.3 A-V: -0.328 ct: -0.204 64/ 64 0 13 50 26 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 14.0 V: 14.5 A-V: -0.495 ct: -0.213 67/ 67 1 5 83 28 0
DROPPED NEW FRAME by VOUT
A: 14.2 V: 14.6 A-V: -0.387 ct: -0.225 71/ 71 0 17 50 29 0
DROPPED NEW FRAME by VOUT
A: 14.2 V: 14.7 A-V: -0.484 ct: -0.229 72/ 72 0 0 0 30 0
DROPPED NEW FRAME by VOUT
A: 14.3 V: 14.8 A-V: -0.462 ct: -0.238 74/ 74 1 13 133 31 0
DROPPED NEW FRAME by VOUT
A: 14.5 V: 14.9 A-V: -0.496 ct: -0.250 78/ 78 0 9 50 32 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 14.6 V: 15.1 A-V: -0.529 ct: -0.263 82/ 82 0 5 33 34 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 14.7 V: 15.2 A-V: -0.462 ct: -0.275 86/ 86 0 17 50 36 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 14.8 V: 15.3 A-V: -0.504 ct: -0.284 89/ 89 2 9 83 38 0
DROPPED NEW FRAME by VOUT
A: 15.0 V: 15.6 A-V: -0.646 ct: -0.296 93/ 93 0 21 50 39 0
DROPPED NEW FRAME by VOUT
A: 15.0 V: 15.5 A-V: -0.538 ct: -0.300 94/ 94 0 0 0 40 0
DROPPED NEW FRAME by VOUT
A: 15.2 V: 15.7 A-V: -0.504 ct: -0.313 97/ 97 1 21 50 41 0
DROPPED NEW FRAME by VOUT
A: 15.2 V: 15.7 A-V: -0.521 ct: -0.317 98/ 98 0 0 0 42 0
DROPPED NEW FRAME by VOUT
A: 15.3 V: 15.8 A-V: -0.488 ct: -0.329 101/101 0 21 50 43 0
DROPPED NEW FRAME by VOUT
DROPPED NEW FRAME by VOUT
A: 15.4 V: 15.9 A-V: -0.530 ct: -0.338 104/104 1 13 83 45 0
More information about the MPlayer-dev-eng
mailing list