bmp-infopipe works perfectly for me, except for this point : when I run 'cat /tmp/xmms-info' there's a wrong value in the bitrate, frequency and channels fields. Example : $ cat /tmp/xmms-info XMMS protocol version: 2467 InfoPipe Plugin version: 1.3 Status: Playing Tunes in playlist: 5 Currently playing: 5 uSecPosition: 249001 Position: 4:09 uSecTime: -1 Time: 0:00 Current bitrate: -1207998827 Samping Frequency: -1216932552 Channels: -1216811868 Title: ANDREW CHIBALE - March, 2005 (frisky R a d i o - feelin' frisky?) File: http://205.188.234.34:8008 Everything but these 3 fields seems good (maybe the uSecTime field is wrong too ?) Reproducible: Always Steps to Reproduce: 1. emerge beep-media-player-0.9.7-r3 and bmp-infopipe-1.3 2. launch bmp and activate the infopipe plugin 3. listen to some cool music and run 'cat /tmp/xmms-info' Actual Results: /tmp/xmms-info shows some wrong values Expected Results: it should show the real values, hehe Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 20 2005, 23:02:13)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.4_p6, 1.9.4, 1.6.3, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon -pipe -fomit-frame-pointer -fprefetch-loop-arrays -momit-leaf-frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon -pipe -fomit-frame-pointer -fprefetch-loop-arrays -momit-leaf-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="fr_FR@euro" LC_ALL="fr_FR@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X aac aalib acpi alsa apm arts avi bash-completion berkdb bitmap-fonts cdr crypt cups curl divx4linux dvd dvdread emboss encode fam fbcon flac font-server foomaticdb fortran ftp gdbm gif gnome gpm gtk gtk2 imagemagick imlib jack java javascript jpeg jpeg2k junit kde kdeenablefinal libcaca libg++ libwww live mmx mmx2 motif mp3 mpeg ncurses network nls nptl nvidia offensive ogg oggvorbis openal opengl oss pam pcre pdflib perl png posix ppds python qt quicktime readline real recode rtc sdl sftplogging skey speex spell ssl svga symlink tcltk tcpd test tga theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vim with-x xchattext xml2 xmms xprint xv xvid zlib linguas_fr linguas_en" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
I do not see the same values here when listening to an arbitrary internet stream: chainsaw@amalthea ~ $ cat /tmp/xmms-info XMMS protocol version: 2467 InfoPipe Plugin version: 1.3 Status: Playing Tunes in playlist: 2 Currently playing: 1 uSecPosition: 16904 Position: 0:16 uSecTime: -1 Time: 0:00 Current bitrate: 0 Samping Frequency: 0 Channels: 0 Title: YOU CONTROL THIS STREAM Check www.xfm.nl (XFM -- highstream --) File: http://breedband.xfm.nl:8050 Could you try toning down your CFLAGS a bit? These values are normally all reported as 0. uSecTime is supposed to be -1 for streams, their length is undefined. I'll post my emerge info for good measure: Portage 2.0.51.22-r1 (default-linux/ppc/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.12-rc5 ppc) ================================================================= System uname: 2.6.12-rc5 ppc 7447A, altivec supported Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig cvs digest distlocks fixpackages sandbox sfperms sign strict" GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="ppc 16bit S3TC X X509 a52 aac aalib aim alsa altivec ao aotuv asm audiofile bash bash-completion beepmp berkdb bitmap-fonts bmp bonobo bzip2 bzlib cairo cdda cddb cdio cdparanoia cdr crypt css cups dbus dpms dts dv dvd eds elf encode erandom ethereal evo evo2 exif fam fame fb fbcon ffmpeg fftw firefox flac flash font-server fpx ftp gb gcj gif glitz glut gnome gnutls gstreamer gtk gtk2 gtkhtml h323 hal howl icq id3 ieee1394 imap imlib imlib2 inifile ipv6 irc jabber jbig jce jikes jpeg kde kdgraphics lame libcaca libsamplerate libwww live lzo lzw mad matroska md5sum mjpeg mmap mng monkey mono moznomail mozsvg mp3 mpeg mpeg4 mplayer msn native ncurses nls nptl nptlonly ntlm ode ogg oggvorbis openal opengl oscar pam pcmcia pcre pdflib perl physfs pic png pnp posix ppds python readline rtc sdl serial shorten silc slp smime sndfile spell ssl stencil-buffer subtitles svg svgz symlink sysfs sysvipc szip tga theora tiff timidity transcode truetype truetype-fonts type1-fonts unicode ups uptimed usb utf8 vcd vidix vorbis wifi wma123 wmf xanim xine xml2 xprint xscreensaver xv xvid yv12 zeroconf zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
This is a bug in current BMP, seems to be fixed in cvs, here's a patch against current stable BMP: --- beep/mainwin.c.orig Fri May 13 17:18:27 2005 +++ beep/mainwin.c Fri May 13 17:19:56 2005 @@ -441,13 +441,13 @@ gint * n_channels) { if (bitrate) - playback_info.bitrate = *bitrate; - + *bitrate = playback_info.bitrate; + if (frequency) - playback_info.frequency = *frequency; - + *frequency = playback_info.frequency; + if (n_channels) - playback_info.n_channels = *n_channels; + *n_channels = playback_info.n_channels; } static void
Created attachment 60092 [details] fix bogus output
This in the tree as beep-media-player -r6. Thanks for the patch Frank. (This breaks BMP/XMMS detection in the just released xchat-xsys, but I'll have to live with that).
(In reply to comment #4) > This in the tree as beep-media-player -r6. > Thanks for the patch Frank. (This breaks BMP/XMMS detection in the just released > xchat-xsys, but I'll have to live with that). How does it break that detection?
BMP has reported 0 channels for as long as I can remember. If channels was a non-zero value, this meant XMMS detected, otherwise it's BMP that's playing. The 2.0.2 release has no problems with it, and I've withheld the 2.0.1 release before it hit the mirrors. Should be fine.
Indeed, glad it's fixed finally :)