You are not logged in.

#1 2010-04-14 20:30:40

dresb
Guest

[SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

Since I updated to x264-20100410-1, ffmpeg-22837-2 and mplayer-31029-1 the audio of random mkv files is having issues. While it seems to be in sync with the video it sounds as if it was slowed down.

The problem was solved after downgrading back to the previous versions with:

pacman -U /var/cache/pacman/pkg/x264-20100312-1-i686.pkg.tar.xz
/var/cache/pacman/pkg/ffmpeg-22511-1-i686.pkg.tar.xz
/var/cache/pacman/pkg/mplayer-30886-1-i686.pkg.tar.xz

I can't pinpoint the precise culprit using the binary packages and have no time right now to recompile them and track the problem individually, sorry.

Last edited by dresb (2011-02-07 16:30:03)

#2 2010-04-14 20:33:00

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

is the 3rd time i've seen this issue. i'll wait couples of days more and update them again to new revisions.


for debugging purpose, can you tell me what vo are you using? or some usefull logs passing -v to mplayer?

Last edited by wonder (2010-04-14 20:44:50)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-04-14 20:54:33

dresb
Guest

Re: [SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

I reinstalled the new versions and tried again but the problem seems to be independent of the -vo (or -ao) drv. I even tried null as -vo but the sound is still distorted. The video plays fine.

The logs of the current (problematic) versions:

MPlayer SVN-r31029-4.4.3 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 10
CPU: Genuine Intel(R) CPU           T2080  @ 1.73GHz (Family: 6, Model: 14, Stepping: 12)
extended cpuid-level: 8
extended cache-info: 67125312
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/andres/.mplayer/codecs.conf'
Reading /home/andres/.mplayer/codecs.conf: Can't open '/home/andres/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 150 audio & 337 video codecs
Configuration: --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts --disable-liblzo --disable-speex --disable-openal --disable-fribidi --disable-libdv --disable-musepack --disable-esd --disable-mga --enable-xvmc --enable-liba52-internal --language=all --confdir=/etc/mplayer --extra-cflags=-fno-strict-aliasing
CommandLine: '-v' 'South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/andres/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/andres/.mplayer/input.conf'
Can't open input config file /home/andres/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 91 binds
Setting up LIRC support...
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.
get_path('South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv.conf') -> '/home/andres/.mplayer/South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv.conf'

Playing South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv.
get_path('sub/') -> '/home/andres/.mplayer/sub/'
[file] File size is 41061991 bytes
STREAM: [file] South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: Matroska file format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] /---- [ parsing chapters ] ---------
[mkv] Chapter 0 from 00:00:00.097 to 00:00:00.000, 00:00:00.097
[mkv] \---- [ parsing chapters ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 1305.942s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 40
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] |  + Language: und
[mkv] |  + Video track
[mkv] |   + Pixel width: 624
[mkv] |   + Pixel height: 352
[mkv] |   + Display width: 624
[mkv] |   + Display height: 352
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AAC
[mkv] |  + CodecPrivate, length 7
[mkv] |  + Default duration: 42.667ms ( = 23.438 fps)
[mkv] |  + Language: und
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 24000.000000
[mkv] |   + Channels: 2
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.772727
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  624x352  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:624x352  fps:23.976  ftime:=0.0417
get_path('sub/') -> '/home/andres/.mplayer/sub/'
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x800 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2048x2048
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec "aac" init OK!
AUDIO: 24000 Hz, 2 ch, s16le, 128.0 kbit/16.67% (ratio: 16000->96000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 24000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 24000Hz/2ch/s16le
[dummy] Was reinitialized: 24000Hz/2ch/s16le
Trying every known audio driver...
ao2: 24000 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: requested format: 24000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.22
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@streamminister.de>
AO: Comment: under developement
Building audio filter chain for 24000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 24000Hz/2ch/s16le
[libaf] Adding filter lavcresample 
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
[libaf] Reallocating memory in module lavcresample, old len = 0, new len = 36869
Increasing filtered audio buffer size from 0 to 36800
[h264 @ 0x8a214e0]no picture
[ffmpeg] aspect_ratio: 1.772727
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO Config (624x352->624x352,flags=0,'MPlayer',0x32315659)
VO: [xv] 624x352 => 624x352 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x434d5658 (XVMC) planar
using Xvideo port 96 for hw scaling
*** [vo] Exporting mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
Unicode font: 5025 glyphs.
Unicode font: 5025 glyphs.
Increasing filtered audio buffer size from 36800 to 36864 1.7% 4 0 
[h264 @ 0x8a214e0]no picture
A:  82.0 V:  93.5 A-V:-11.550 ct: -2.541   0/  0  6%  1%  1.8% 0 0

The previous versions:

MPlayer SVN-r30886-4.4.3 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 10
CPU: Genuine Intel(R) CPU           T2080  @ 1.73GHz (Family: 6, Model: 14, Stepping: 12)
extended cpuid-level: 8
extended cache-info: 67125312
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/andres/.mplayer/codecs.conf'
Reading /home/andres/.mplayer/codecs.conf: Can't open '/home/andres/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 150 audio & 335 video codecs
Configuration: --prefix=/usr --enable-runtime-cpudetection --disable-gui --disable-arts --disable-liblzo --disable-speex --disable-openal --disable-fribidi --disable-libdv --disable-musepack --disable-esd --disable-mga --enable-xvmc --enable-liba52-internal --language=all --confdir=/etc/mplayer --extra-cflags=-fno-strict-aliasing
CommandLine: '-v' 'South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/andres/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/andres/.mplayer/input.conf'
Can't open input config file /home/andres/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 90 binds
Setting up LIRC support...
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.
get_path('South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv.conf') -> '/home/andres/.mplayer/South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv.conf'

Playing South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv.
get_path('sub/') -> '/home/andres/.mplayer/sub/'
[file] File size is 41061991 bytes
STREAM: [file] South.Park.S14E04.You.Have.0.Friends.HDTV.XviD-FQM-muxed.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: Matroska file format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] /---- [ parsing chapters ] ---------
[mkv] Chapter 0 from 00:00:00.097 to 00:00:00.000, 00:00:00.097
[mkv] \---- [ parsing chapters ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 1305.942s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 40
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] |  + Language: und
[mkv] |  + Video track
[mkv] |   + Pixel width: 624
[mkv] |   + Pixel height: 352
[mkv] |   + Display width: 624
[mkv] |   + Display height: 352
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AAC
[mkv] |  + CodecPrivate, length 7
[mkv] |  + Default duration: 42.667ms ( = 23.438 fps)
[mkv] |  + Language: und
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 24000.000000
[mkv] |   + Channels: 2
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.772727
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  624x352  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:624x352  fps:23.976  ftime:=0.0417
get_path('sub/') -> '/home/andres/.mplayer/sub/'
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x800 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2048x2048
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 6144 bytes for input buffer.
dec_audio: Allocating 65536 + 65536 = 131072 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 48000Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Trying every known audio driver...
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
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: requested format: 48000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.22
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@streamminister.de>
AO: Comment: under developement
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...
Increasing filtered audio buffer size from 0 to 34816
[h264 @ 0x8a89bc0]no picture
[ffmpeg] aspect_ratio: 1.772727
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO Config (624x352->624x352,flags=0,'MPlayer',0x32315659)
VO: [xv] 624x352 => 624x352 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x434d5658 (XVMC) planar
using Xvideo port 96 for hw scaling
*** [vo] Exporting mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
Unicode font: 5025 glyphs.
Unicode font: 5025 glyphs.
[h264 @ 0x8a89bc0]no picture1 ct:  0.041   0/  0 15%  3%  1.8% 4 0

EDIT: I've just seen your edit smile

Last edited by dresb (2010-04-14 21:03:59)

#4 2010-04-14 21:00:05

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

dresb wrote:

I reinstalled the new versions and tried again but the problem seems to be independent of the -vo (or -ao) drv. I even tried null as -vo but the sound is still distorted. The video plays fine.

please post some mplayer logs passing -v as argument.


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-04-14 21:03:31

dresb
Guest

Re: [SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

I've just seen your edit

Last edited by dresb (2010-04-14 21:04:17)

#6 2010-04-14 21:32:15

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

i see that in the previous version is using other audio codec and i've search in the svn history and i found:

r30918 | diego | 2010-03-17 14:39:21 +0200 (Wed, 17 Mar 2010) | 4 lines

Prefer FFmpeg AAC decoder over libfaad.
This is a tentative change to give the decoder more testing;
it can always be reverted in short order if it turns out suboptimal.

1) basically save the /etc/mplayer/codecs.conf from the older version and use that. see if is working. NOT RECOMMENDED
2) without messing with codecs.conf

add in mplayer.conf

ac=faad,

which will force FAAD decoding if it detects AAC audio in a file, while falling back to appropriate decoder for all others. Make sure you add the comma at the end.

Last edited by wonder (2010-04-15 23:17:16)


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2010-04-14 21:45:44

dresb
Guest

Re: [SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

basically save the /etc/mplayer/codecs.conf from the older version and use that. see if is working

I did exactly this and it worked. Thanks a lot smile

#8 2010-04-15 23:25:19

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] .mkv audio issues after updating x264, ffmpeg and mplayer

dresb wrote:

basically save the /etc/mplayer/codecs.conf from the older version and use that. see if is working

I did exactly this and it worked. Thanks a lot smile

this issue is now fixed in mplayer-31040-1


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB