[MPlayer-users] A/V out-of-sync using vdpau on rev. 29185
Andre Madeira
amadeirabus at gmail.com
Fri Apr 17 06:14:48 CEST 2009
Hello mplayer-users.
I'm trying to play AVCHD h264/AC3 files with mplayer on my linux box.
I can play them fine using mplayer+CoreAvc-for-linux with 60-70%
CPU utilization. However, I'd like to add support in ffmpeg so I can edit
them using kdenlive (the coreavc-for-linux solution uses dshowserver,
which ffmpeg cannot use). Another goal is to reduce CPU utilization by
using mplayer+VDPAU.
I've tried the latest NVIDIA vdpau patches (mplayer-vdpau-3532130.tar.bz2)
from ftp://download.nvidia.com/XFree86/vdpau/, which according to the
./checkout-patch-build.sh script, checks out mplayer rev. 28348 and
applies its set of patches. The playback I get is great, no A/V out-of-sync
issues. However, there's no de-interlacing support and most (actually all)
of my h264 videos (those from my Panasonic HDC-SD1) are interlaced.
I noticed that the HEAD rev (29185 at this time) added support for de-int
and decided to try it out. Unfortunately, although the de-int support works
perfectly, I'm getting A/V out-of-sync issues regardless if vdpau:deint is
set or not. Outputs are below.
Any help is appreciated.
Thanks,
Andre
=> add't info:
Ubuntu 8.10 intrepid
Linux xxx 2.6.27-11-generic #1 SMP Wed Apr 1 20:53:41 UTC 2009 x86_64
GNU/Linux
Intel(R) Pentium(R) D CPU 3.00GHz
CPU is about 25-30% during playback on either case.
EVGA NVIDIA GeForce 9500 GT w/ NVIDIA 180.44 drivers.
--
=====================================================
Output from rev. 29185
$ ./mplayer -vo vdpau -vc ffh264vdpau -demuxer lavf
myfilename.m2ts
MPlayer SVN-r29185-4.3.2 (C) 2000-2009 MPlayer
Team
137 audio & 297 video
codecs
Playing /mnt/nasnfs/Videos/Camcorder/Links/090317_1_00003.m2ts.
libavformat file format detected.
LAVF: Program 1
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [H264] 1440x1080 0bpp 59.940 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
VDec: vo config request - 1440 x 1080 (preferred colorspace: H.264 VDPAU
acceleration)
VDec: using H.264 VDPAU acceleration as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1440x1080 => 1920x1080 H.264 VDPAU acceleration
[ASPECT] Warning: No suitable new res found!
pts value < previousV: 0.079 ct: -0.005 0/ 0 ??% ??% ??,?% 12 0
pts value < previousV: 0.030 ct: -0.010 0/ 0 ??% ??% ??,?% 17 0
pts value < previousV: 0.026 ct: -0.005 0/ 0 ??% ??% ??,?% 17 0
pts value < previousV: 0.075 ct: -0.000 0/ 0 41% 33% 2.2% 17 0
pts value < previousV: 0.119 ct: 0.005 0/ 0 35% 32% 2.1% 17 0
pts value < previousV: 0.165 ct: 0.010 0/ 0 30% 29% 2.0% 17 0
pts value < previousV: 0.209 ct: 0.015 0/ 0 27% 28% 2.0% 17 0
pts value < previousV: 0.255 ct: 0.020 0/ 0 25% 27% 1.9% 17 0
pts value < previousV: 0.300 ct: 0.025 0/ 0 23% 26% 1.9% 17 0
pts value < previousV: 0.344 ct: 0.030 0/ 0 21% 26% 1.9% 17 0
pts value < previousV: 0.390 ct: 0.035 0/ 0 20% 26% 1.8% 17 0
pts value < previousV: 0.434 ct: 0.040 0/ 0 19% 26% 1.8% 17 0
pts value < previousV: 0.479 ct: 0.045 0/ 0 18% 26% 1.8% 17 0
pts value < previousV: 0.525 ct: 0.050 0/ 0 17% 26% 1.8% 17 0
pts value < previousV: 0.569 ct: 0.055 0/ 0 17% 26% 1.8% 17 0
pts value < previousV: 0.609 ct: 0.060 0/ 0 16% 26% 1.8% 17 0
pts value < previousV: 0.661 ct: 0.065 0/ 0 15% 25% 1.8% 17 0
pts value < previousV: 0.703 ct: 0.070 0/ 0 15% 25% 1.7% 17 0
pts value < previousV: 0.749 ct: 0.075 0/ 0 16% 24% 1.7% 17 0
pts value < previousV: 0.795 ct: 0.080 0/ 0 16% 24% 1.7% 17 0
pts value < previousV: 0.840 ct: 0.085 0/ 0 15% 24% 1.7% 17 0
pts value < previousV: 0.885 ct: 0.090 0/ 0 15% 24% 1.7% 17 0
....
=====================================================
Output from rev. 28348 + NVIDIA patches (irrelevant parts omitted):
$ ./mplayer -vo vdpau -vc ffh264vdpau -demuxer lavf
myfilename.m2ts
MPlayer dev-SVN-r28348-4.3.2 (C) 2000-2009 MPlayer
Team
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (Family: 15, Model: 6, Stepping:
2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2:
1
Compiled for x86 CPU with extensions: MMX MMX2 SSE
SSE2
parse error at line
309
Playing /mnt/nasnfs/Videos/Camcorder/Links/090317_1_00003.m2ts.
libavformat file format detected.
LAVF: Program 1
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [H264] 1440x1080 0bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VDPAU accelerated codec.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1440 x 1080 (preferred colorspace: H.264 HIGH
VDPAU acceleration)
VDec: using H.264 HIGH VDPAU acceleration as output csp (no 2)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1440x1080 => 1920x1080 H.264 HIGH VDPAU acceleration
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
pts value <= previous: 0.257 ct: -0.003 0/ 0 ??% ??% ??,?% 8 0
pts value <= previous: 0.222 ct: -0.013 0/ 0 ??% ??% ??,?% 14 0
pts value <= previous: 0.175 ct: -0.023 0/ 0 ??% ??% ??,?% 19 0
pts value <= previous: 0.129 ct: -0.033 0/ 0 ??% ??% ??,?% 23 0
pts value <= previous: 0.087 ct: -0.042 0/ 0 77% 36% 3.2% 28 0
pts value <= previous: 0.038 ct: -0.049 0/ 0 67% 35% 2.8% 31 0
pts value <= previous: 0.028 ct: -0.054 0/ 0 61% 39% 2.6% 33 0
pts value <= previous: 0.046 ct: -0.057 0/ 0 57% 45% 2.5% 34 0
pts value <= previous: 0.009 ct: -0.058 0/ 0 51% 45% 2.3% 34 0
pts value <= previous: -0.007 ct: -0.060 0/ 0 47% 44% 2.2% 34 0
pts value <= previous: -0.005 ct: -0.062 0/ 0 44% 42% 2.1% 34 0
pts value <= previous: -0.004 ct: -0.063 0/ 0 41% 40% 2.2% 34 0
pts value <= previous: -0.003 ct: -0.064 0/ 0 38% 39% 2.1% 34 0
pts value <= previous: -0.002 ct: -0.065 0/ 0 36% 38% 2.2% 34 0
pts value <= previous: 0.001 ct: -0.065 0/ 0 35% 37% 2.2% 34 0
....
More information about the MPlayer-users
mailing list