[MPlayer-users] mplayer not maintaining sample rate of source material when encoding to pcm

Michael J. Carter mcarter at pobox.com
Wed Aug 3 05:27:09 CEST 2011


I'm trying to extract the 24/96 audio mix from a new DVD. mplayer is
correcting the sample rate of the source, but for some reason is
down-sampling to 16-bits when encoding to pcm:

Opening audio decoder: [dvdpcm] Uncompressed DVD/VOB LPCM audio decoder
AUDIO: 96000 Hz, 2 ch, s24be, 4608.0 kbit/100.00% (ratio: 576000->576000)
Selected audio codec: [dvdpcm] afm: dvdpcm (Uncompressed DVD/VOB LPCM)
==========================================================================
[AO PCM] File: /home/mcarter/Desktop/dvd/Dirty_Jeans_And_Mudslide_Hymns_02_01.wav
(WAVE)
PCM: Samplerate: 96000Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo
null -ao pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 96000Hz 2ch s16le (2 bytes per sample)

In my case, mplayer is being called from the 'devidify' utility. The
system call from that python script looks like:

command = 'mplayer -quiet -dvd-device %s dvd://%s -chapter %s-%s -vc
null -vo null -ao pcm:file="%s"' % (prefs.device, title, chapter,
chapter, targetfile)

Is there a default that I need to override to maintain 24-bit resolution???



Running on Fedora 15 using the mplayer package from rpmfusion:

[root at simcoe ~]# rpm -qi mplayer
Name        : mplayer
Version     : 1.0
Release     : 0.124.20110412svn.fc15
Architecture: i686
Install Date: Sat 16 Jul 2011 08:26:22 AM MDT
Group       : Applications/Multimedia
Size        : 3354248
License     : GPLv3+
Signature   : RSA/SHA256, Thu 30 Jun 2011 02:16:17 PM MDT, Key ID
adc570de00a4d52b
Source RPM  : mplayer-1.0-0.124.20110412svn.fc15.src.rpm
Build Date  : Wed 29 Jun 2011 06:16:19 PM MDT
Build Host  : hephaestus.wilsonet.com
Relocations : (not relocatable)
Packager    : <http://nonfree.rpmfusion.org/>
Vendor      : RPM Fusion
URL         : http://www.mplayerhq.hu/
Summary     : Movie player playing most video formats and DVDs
Description :
MPlayer is a movie player that plays most MPEG, VOB, AVI, OGG/OGM,
VIVO, ASF/WMA/WMV, QT/MOV/MP4, FLI, RM, NuppelVideo, yuv4mpeg, FILM,
RoQ, and PVA files. You can also use it to watch VCDs, SVCDs, DVDs,
3ivx, RealMedia, and DivX movies.
It supports a wide range of output drivers including X11, XVideo, DGA,
OpenGL, SVGAlib, fbdev, AAlib, DirectFB etc. There are also nice
antialiased shaded subtitles and OSD.
Non-default rpmbuild options:
--with samba:   Enable Samba (smb://) support
--with xmms:    Enable XMMS input plugin support
--without amr:  Disable AMR support
--with faac:    Enable FAAC support
--with libmad:  Enable libmad support
--with openal:  Enable OpenAL support
--with jack:    Enable JACK support
--with arts:    Enable aRts support
--with esound:  Enable EsounD support
--with dga:     Enable DGA support
--with directfb:Enable DirectFB support
--with svgalib: Enable SVGAlib support
--with nemesi:  Enable libnemesi RTSP support


-- 
Michael J. Carter
mcarter at pobox.com


More information about the MPlayer-users mailing list