Update of /cvsroot/freevo/freevo/src/video/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18446/src/video/plugins
Modified Files:
mplayer.py
Log Message:
add MPLAYER_RESAMPLE_AUDIO
Index: mplayer.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/plugins/mplayer.py,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** mplayer.py 31 Dec 2004 11:57:44 -0000 1.94
--- mplayer.py 1 Jan 2005 15:06:19 -0000 1.95
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.95 2005/01/01 15:06:19 dischi
+ # add MPLAYER_RESAMPLE_AUDIO
+ #
# Revision 1.94 2004/12/31 11:57:44 dischi
# renamed SKIN_* and OSD_* variables to GUI_*
***************
*** 241,244 ****
--- 244,256 ----
command.append('-playlist')
+ if config.MPLAYER_RESAMPLE_AUDIO and self.item_info and \
+ self.item_info.audio and \
+ hasattr(self.item_info.audio[0], 'samplerate') and \
+ self.item_info.audio[0].samplerate < 40000:
+ srate = max(41000, min(self.item_info.audio[0].samplerate * 2,
48000))
+ log.info('resample audio from %s to %s',
+ self.item_info.audio[0].samplerate, srate)
+ command += [ '-srate', str(srate) ]
+
# add the file to play
command.append(url)
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog