[MPlayer-users] mp3 codec
asyropoulos at aol.com
asyropoulos at aol.com
Thu Mar 25 17:14:55 CET 2010
Hello,
Today I compiled 64-bit binaries for MPlayer and mencoder on a very recent OpenSolaris box
and although the video output is correct, the audio ioutput is not always OK. In particular, when
playing an MP3 file the audio output is distorted. However when I use the -ac ffmp3 switch,
the audio output is as it should be. Here is what I get on my computer's screen:
$ ./mplayer song.mp3
MPlayer SVN-r30956-4.3.2 (C) 2000-2010 MPlayer Team
137 audio & 299 video codecs
Playing song.mp3.
Audio only file format detected.
Clip info:
Title:
Artist:
Album:
Year:
Comment:
Genre: Other
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 2.7 (02.7) of 176.0 (02:56.0) 0.5%
Exiting... (Quit)
$
$ ./mplayer -ac ffmp3 song.mp3
MPlayer SVN-r30956-4.3.2 (C) 2000-2010 MPlayer Team
137 audio & 299 video codecs
Playing song.mp3.
Audio only file format detected.
Clip info:
Title:
Artist:
Album:
Year:
Comment:
Genre: Other
==========================================================================
Forced audio codec: ffmp3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 2.7 (02.7) of 176.0 (02:56.0) 0.5%
Exiting... (Quit)
Interestingly, the same happened with AC3 audio with binaries produced from SVN-r30145.
Now, the internal a52 library is not compiled:
$ ./mplayer /extra/download/videos/tha_tsimpisw.mkv
MPlayer SVN-r30956-4.3.2 (C) 2000-2010 MPlayer Team
137 audio & 299 video codecs
Playing /extra/download/videos/tha_tsimpisw.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AC3), -aid 0, -alang gre
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 688x576 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Requested audio codec family [a52] (afm=liba52) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.27:1 - prescaling to correct movie aspect.
VO: [vdpau] 688x576 => 734x576 Planar YV12
A: 1.7 V: 1.7 A-V: -0.000 ct: -0.000 0/ 0 17% 6% 0.4% 1 0
Exiting... (Quit)
Any ideas what might be the solution to this problem?
Regards,
A.S.
PS In addition, I had to apply the following two patches in order to compile the source code:
*** libmpdemux/mp_taglists.c.orig 2010-03-25 18:09:30.024175841 +0200
--- libmpdemux/mp_taglists.c 2010-03-25 12:06:34.747145415 +0200
***************
*** 21,26 ****
--- 21,28 ----
#include "mp_taglists.h"
#include "libavformat/avformat.h"
#include "libavformat/riff.h"
+ #define CODEC_ID_BINKAUDIO_RDFT 86066
+ #define CODEC_ID_BINKAUDIO_DCT 86067
static const AVCodecTag mp_wav_tags[] = {
{ CODEC_ID_ADPCM_4XM, MKTAG('4', 'X', 'M', 'A')},
#####################################################################
*** libpostproc/postprocess_internal.h.orig 2010-03-25 18:13:51.965263050 +0
200
--- libpostproc/postprocess_internal.h 2010-03-25 18:13:13.012989736 +0200
***************
*** 127,132 ****
--- 127,133 ----
*/
uint64_t *yHistogram;
+ #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
DECLARE_ALIGNED(8, uint64_t, packedYOffset);
DECLARE_ALIGNED(8, uint64_t, packedYScale);
--
Apostols Syropoulos
Xanthi, Greece
More information about the MPlayer-users
mailing list