I emerged Mplayer-1.0_pre5-r4 in my 2004.2 ppc64 successfully. But the sound was broken(almost just noise) when I played avi, mpeg ... files with it. The video was ok though. It's same with xine-1.0. Reproducible: Always Steps to Reproduce: 1.mplayer <video file> 2. 3. Actual Results: Broken sound Expected Results: Normal sound effect
would be nice if you could list a few applications where the sound is ok.
I emerged the latest xine-lib-r6, now the sound is ok for xine player and totem to play avi and mpeg movies. But not mplayer, the sound is still broken when I play with mplayer.
ppc64 herd, Thoughts on this?
yes, I've thought about this bug, but I have no sound card to test. Unfortunaly this *might* be a little endian/big endian problem as seen in mpg123.
The problem on which sound plays only a noise will be solved by Bug #71119.
Created attachment 43910 [details, diff] patch for mplayer-1.0_pre5-r4.ebuild
Created attachment 43911 [details, diff] patch for mplayer on ppc64 A file name is mplayer-1.0_pre5-r4-ppc64.patch .
In my environment, the following error occurs and fails to compile. --- Detected operating system: Linux Detected host architecture: UNKNOWN Checking for gcc version ... 3.4.1, ok The architecture of your CPU (UNKNOWN) is not supported by this configure script It seems nobody has ported MPlayer to your OS or CPU type yet. Error: unsupported architecture UNKNOWN Check "configure.log" if you do not understand why it failed. --- Also, when altivec is contained in the USE flag, fails to compile. --- gcc -I../libvo -I../../libvo -I/usr/X11R6/include -O2 -pipe -fno-stack-protector -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DHAVE_AV_C ONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o imgr esample.o imgresample.c imgresample.c: In function `v_resample16_altivec': imgresample.c:309: error: can't convert between vector values of different size imgresample.c:309: error: can't convert between vector values of different size imgresample.c:309: error: can't convert between vector values of different size imgresample.c:309: error: can't convert between vector values of different size imgresample.c:309: error: can't convert between vector values of different size <snip> imgresample.c:379: error: can't convert between vector values of different size imgresample.c:379: error: can't convert between vector values of different size imgresample.c:379: error: can't convert between vector values of different size imgresample.c:379: error: can't convert between vector values of different size imgresample.c:380: error: Cannot pass argument in vector register because altivec instructions are disabled, use -maltivec to enable them. make[1]: *** [imgresample.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre5-r4/work/MPlayer-1.0pre5/libavcodec' make: *** [libavcodec/libavcodec.a] Error 2 --- These patches solve these problems.
emerge info output: Portage 2.0.51-r2 (default-ppc64-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r2 ppc64) ================================================================= System uname: 2.6.9-gentoo-r2 ppc64 PPC970, altivec supported Gentoo Base System version 1.4.16 distcc 2.16 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.3-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="ppc64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="powerpc64-unknown-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distlocks sandbox" GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/" MAKEOPTS="-j5" PKGDIR="/var/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage" USE="X Xaw3d aalib alsa altivec apache2 arts berkdb bitmap-fonts cdr cjk crypt cups dga dvd dvdr emacs encode esd f77 flash foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imap imlib joystick jpeg kde libwww mad mitshm motif mozilla mpeg mule ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png ppc64 python qt quicktime readline samba sdl slang ssl tcpd tetex tiff truetype usb xml xml2 xmms xv zlib"
Created attachment 43912 [details, diff] patch for mplayer-1.0_pre5-r4.ebuild
I've verified that mplayer builds, but as I mentioned before I don't have a working soundcard :-/. As Nigoro has verified that the patch works I've added it to portage and marked mplayer ~ppc64.
Thank you. With these patched mplayer builds, and works partly in my ppc64(G5) system, using SB mp3 sound card. mpeg: ok dvd: ok avi: video is ok, sound broken(distorted badly) wmv: video is ok, no sound mp3: sound is broken
Yang, Thank you for your test report. In my environment, mp3 is also played normally. I installed in the following procedure. 1. emerge sync 2. emerge -C mplayer 3. emerge linux-headers 4. emerge mplayer And I'm using the following audio device. --- $ cat /proc/asound/cards 0 [MP3 ]: USB-Audio - Sound Blaster MP3+ Creative Labs Sound Blaster MP3+ at usb-0001:02:0b.0-2, full speed --- Would you add some information, in order to consider this problem? 1. result of "emerge info" 2. result of "emerge -ptv mplayer" 3. result of "mplayer -v -quiet hoge.mp3 &> /tmp/mplayer.log" 4. information of mp3 file (example: 44100Hz, 128 kbs, CBR, Joint Stereo) Also, what is codec of avi? Thank you.
Created attachment 43991 [details] my mplayer.log This is a result on my environment.
Did you play mp3 music by gmplayer or mplayer? In my case, mp3 files could be played normaly by mplayer, but distorted badly when opening the files in gmplayer interface. The same held for playing avi video. I use FFmpeg for avi video codec. Also I use the same sound card as you.
Created attachment 44025 [details] My emerge info
Created attachment 44334 [details, diff] patch for mplayer-1.0_pre5-r4.ebuild I'm very sorry. When altivec was contained in the USE flag, the problem which fails to compile was my misapprehension. It was because -maltivec is not contained in CFLAGS. I attach the patch that put back a portion about altivec. any developer, I am sorry to trouble you, but could you apply this patch?
Yang, In my environment, a mp3 file is normally played by both mplayer and gmplayer. I have not reproduced yet the problem generated in your environment. Would you disable ccache and try compile once again? And please try the following patch, if it is unsolvable.
Created attachment 44335 [details, diff] new patch for mplayer on ppc64 A part of patch of mpg123 was added to this new patch.
In my environment, I found the problem with which the video and sound of an avi file do not synchronize. It seems that the play speed of video is quick a little.
Thank you. I did just as you suggested; applying the new patch and, deleting the .ccache and reemerging mplayer. But the problem is just as same as before. May be something wrong with CFLAGS in my env? I'd a look at your emerge info, and guessed that could make a difference.
BTW: Do you have the problem of http://bugs.gentoo.org/show_bug.cgi?id=64359? I have been frustrated with that for a long time.
Yang, Thank you for your try. Although I re-installed Gentoo/PPC64 and tried it, I have not reproduced the problem... um... Would you add mad to USE flags and compile once again? About the problem of Bug #64359, it reappeared also in my environment. But, I don't know how to solve this problem now. I'm sorry.
Created attachment 44410 [details] present "emerge info" And, emerge -ptv mplayer output: --- [ebuild R ] media-video/mplayer-1.0_pre5-r4 (-3dfx) (-3dnow) (-3dnowex) +X +aalib +alsa +altivec +arts -bidi -cdparanoia -debug (-directfb) -divx4linux -do c -dvb +dvd -dvdread -edl +encode +esd -fbcon -ggi +gif +gtk -i8x0 -ipv6 -jack + joystick +jpeg -libcaca -lirc -live -lzo +mad -matroska -matrox (-mmx) (-mmx2) + mpeg -mythtv -nas -network +nls -nvidia +oggvorbis +opengl +oss +png -real -rtc +samba +sdl (-sse) (-svga) -tga +theora +truetype -v4l -v4l2 +xanim -xinerama +x mms +xv +xvid -xvmc 0 kB ---
my bad... emerge -ptv mplayer output again: --- [ebuild R ] media-video/mplayer-1.0_pre5-r4 (-3dfx) (-3dnow) (-3dnowex) +X +aalib +alsa +altivec +arts -bidi -cdparanoia -debug (-directfb) -divx4linux -doc -dvb +dvd -dvdread -edl +encode +esd -fbcon -ggi +gif +gtk -i8x0 -ipv6 -jack +joystick +jpeg -libcaca -lirc -live -lzo +mad -matroska -matrox (-mmx) (-mmx2) +mpeg -mythtv -nas -network +nls -nvidia +oggvorbis +opengl +oss +png -real -rtc +samba +sdl (-sse) (-svga) -tga +theora +truetype -v4l -v4l2 +xanim -xinerama +xmms +xv +xvid -xvmc 0 kB ---
My mplayer info: [ebuild R ] media-video/mplayer-1.0_pre5-r4 (-3dfx) (-3dnow) (-3dnowex) +X +aalib +alsa +altivec +arts -bidi -cdparanoia -debug (-directfb) -divx4linux -doc -dvb +dvd -dvdread -edl +encode +esd -fbcon -ggi +gif +gtk -i8x0 -ipv6 -jack -joystick +jpeg -libcaca -lirc -live -lzo +mad -matroska -matrox (-mmx) (-mmx2) -mpeg -mythtv -nas -network +nls -nvidia +oggvorbis +opengl +oss +png -real -rtc +samba +sdl (-sse) (-svga) -tga +theora +truetype -v4l -v4l2 +xanim -xinerama +xmms +xv +xvid -xvmc 0 kB I think that's exactly same with yours. But the sound is still broken. Weird!!!
Yang, I reproduced the problem which has probably occurred in your environment. Sound seems not to play normally when using OSS for the audio driver. Would you try ALSA? When you have already used ALSA, I apologize for this wrong comment. Thank you.
snip of menuconfig: (Please disable USB Audio support in USB support.) --- Device Drivers ---> Sound ---> <M> Sound card support Advanced Linux Sound Architecture ---> <M> Advanced Linux Sound Architecture <M> Sequencer support <M> OSS Mixer API <M> OSS PCM (digital audio) API [*] OSS Sequencer API <M> Emulation for 32-bit applications <M> RTC Timer support ALSA USB devices ---> <M> USB Audio/MIDI driver USB support ---> < > USB Audio support --- And, please see http://www.gentoo.org/doc/en/alsa-guide.xml about a setup of ALSA, if necessary.
Created attachment 44485 [details] my /etc/modules.d/alsa
I tried to disable the alsa support in the kernel as you suggested, but system complained with not finding alsa usb audio driver. I tried to emerge the latest alsa driver, but failed. The alsa-driver-1.0.7 does not compile. I tried both oss and alsa in gmplayer, the effect's same. Now only something wrong with the gui client, it's ok to use mplayer. I am sorry that I made so much troube to you. Thank you.
Yang, Don't worry about it! I'm thankful to your ALL comment! It seems that gmplayer is calling mplayer. So, if the play of sound is normally possible at mplayer, I think that can play it normally also by gmplayer. This problem is very weird!! Would you delete ~/.mplayer directory and try again? (Please backup, if necessary.) Thank you.
Thank you VERY MUCH! You are CERTAINLY right! Everything went ok after I deleted ~/.mplayer directory. Now I am so pleased that I have a workable and great video player.
I'm very happy to read your comment! And, thank you for trying many things until now!
closing