Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xine sound random noise [part. solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sat Feb 03, 2007 10:57 am    Post subject: xine sound random noise [part. solved] Reply with quote

Since some upgrades xine output is only ugly random noise. Other alsa applications are fine, like audacious and aplay. I also switched xine-lib back to stable and my last working version.
Code:
media-libs/xine-lib-1.1.2-r3
media-libs/xvid-1.1.0-r1
edia-libs/alsa-lib-1.0.14_rc1
media-sound/alsa-headers-1.0.14_rc1
kernel: 2.6.19-gentoo-r4

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme


Last edited by Massimo B. on Tue Feb 06, 2007 7:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sat Feb 03, 2007 2:33 pm    Post subject: Reply with quote

Same with:
Code:
media-libs/xine-lib-1.1.4

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sun Feb 04, 2007 2:54 am    Post subject: Reply with quote

To try to pinpoint the problem a little bit.
What kind of files have you tried to play? mp3, ogg other?
If you have ffmpeg installed can you try to play those files with ffplay.
What are the use flags that xine-lib has been compiled with?
What front end to xine-lib do you use?
Any idea of when it broke?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sun Feb 04, 2007 11:59 am    Post subject: Reply with quote

Thanks for trying to help.
The files with noise:
Code:
file.mpg: MPEG sequence, v1, system multiplex
file.avi: RIFF (little-endian) data, AVI, 640 x 480, 25.00 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
file.mp3: Audio file with ID3 version 23.0 tag, MP3 encoding
file.avi: RIFF (little-endian) data, AVI, 544 x 288, 25.00 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
The files that are playing fine:
Code:
file.ogg: Ogg data, Vorbis audio, mono, 44100 Hz, ~48000 bps, created by: Xiph.Org libVorbis I

Used frontend:
Code:
[I] media-video/xine-ui (0.99.5_pre20060716)

The USE-flags:
Code:
[ebuild   R   ] media-libs/xine-lib-1.1.4  USE="X aac aalib alsa dvd fbcon flac gtk libcaca mad musepack nls opengl samba sdl truetype vcd vorbis xv -a52 (-altivec) -arts -debug -directfb -dts -dxr3 -esd -gnome -imagemagick -ipv6 -mmap -mng -modplug -oss -pulseaudio -speex -theora -v4l -vidix -wavpack (-win32codecs) -xinerama (-xvmc)" 0 kB

ffmpeg is installed, but ffplay isn't available:
Code:
[I] media-video/ffmpeg (0.4.9_p20070129)

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
caio
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2005
Posts: 147
Location: Brescia (I)

PostPosted: Sun Feb 04, 2007 2:14 pm    Post subject: Reply with quote

I've the same problem, in some avi files (not all) I hear a strange noise (like the scratch that some deejays do with discs :D ), in Xine and obviously in Gxine.
I use the alsa driver compiled in the kernel, and this version of xine and alsa-libs:
Code:
media-video/xine-ui-0.99.5_pre20060716
media-libs/alsa-lib-1.0.13


The strange is that until some days ago xine worked fine with all videos I played.
With Mplayer I don't have this problem, only with xine.

I've recompiled the codecs library, xine and alsalibs, but I don't have resolved.

Some ideas?
_________________
Caio's blog
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sun Feb 04, 2007 3:26 pm    Post subject: Reply with quote

It's not a distorted sound in my case, it's really just random noise.
I think your problem is also ppc related.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sun Feb 04, 2007 9:28 pm    Post subject: Reply with quote

I am not on my ppc machine at the moment. I have a few mp3 so I will be
able to test that. You have an ~ppc xine-lib but I don't think that's the problem
I may look in Diego's blog (flameyes) if he says something about it.
xine-lib will use either libmad (mad use flag) or ffmpeg to decode mp3 which is
the sound format used I think ( MPEG-1 Layer 3 is mp3 I think).

It is strange that ffplay isn't available, then again I don't remember seeing that
snapshot of ffmpeg. We'll see.

One last question Diego [I keep mentioning him, he is a xine-lib dev and he
maintain xine-lib for gentoo] said there was issues playing file in 5:1 with
xine, are those 5:1 audio?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Sun Feb 04, 2007 9:57 pm    Post subject: Reply with quote

Nice nice, I didn't know that we have a xine dev here on gentoo.

No, these files are not 5.1 sound. But I think it's always about mp3 sound, ogg sound works. And something else curious: When I switch on muted in xine-gui, the noise doesn't mute.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Feb 05, 2007 3:15 am    Post subject: Reply with quote

At last I have a connection properly working here.
I have been frustrated by not being able to access the forum
or syncing since last week (at work that is).
I am currently listening to an mp3 without problem with
xine-ui.

After looking a little bit closer to your file, I have a feeling
that you may have a sample rate conversion problem.
Your mp3 files are in 48000 Hz while the one I am listening to
and your ogg file are in 44100 Hz.
Diego mentioned the _reverse_ problem for some cards at the
begining of the month.

This is not necessarily ppc specific but you may need to install an
alsa plugin that may have been present by default before. Look
in the linked blog entry and see if it helps you.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Mon Feb 05, 2007 8:22 pm    Post subject: Reply with quote

Here I am with an mp3 file encoded with 44khz, also having noise.
As you said, it has to be about the mp3 codec, don't know what xine is using. If you tell me, I'll try to reemerge that or experimenting with that.
And because it was functional before (I watched all stuff with xine on this mac) there should have changed something, my hardware hasn't. I also tried with the last working kernel.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Feb 06, 2007 1:03 am    Post subject: Reply with quote

It uses either ffmpeg or libmad to decode mp3. I don't know that anything
changed recently to affect them. Since you have the mad use flag I am more
inclined to think it uses libmad for mp3.
Do you have any other apps to read mp3 and test if they are also affected?
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Feb 06, 2007 1:13 am    Post subject: Reply with quote

Actually there is something that changed in libmad. You are probably using
0.15.1b-r2 can you revert to 0.15.1b and see if the problem is still there?
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Feb 06, 2007 1:17 am    Post subject: Reply with quote

Sorry forget about all that.
Can you look at this bug and see if it looks at
all a familiar situation to you.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Feb 06, 2007 11:38 am    Post subject: Reply with quote

fb, thank you very much, that's exactly my problem.
I will look into when I'm on ppc again.
Actually switching off the mad useflag would have been my next approach anyway..
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Feb 06, 2007 6:58 pm    Post subject: Reply with quote

xine-lib does take the useflag anyway, also if it's not enabled.
So disabling could help.
Is there any recommendation for using libmad instead of other decoders?
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme


Last edited by Massimo B. on Tue Feb 06, 2007 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Feb 06, 2007 7:20 pm    Post subject: Reply with quote

Works with the old libmad.
Code:
emerge =libmad-0.15.1b
So libmad is the only mp?-way for xine? Then I will have to wait that they will mask this stuff for ppc and wait for a bugfix.

Thanks for your support.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Feb 06, 2007 9:15 pm    Post subject: Reply with quote

xine should work without libmad. The use flag is mad so if you put
Code:
media-libs/xine-lib -mad
It should compile without it. Then xine
would either use ffmpeg or an internal mp3 implementation.
If it works for you with the old libmad you should mention it in the bug
report with the details of your machine and the emerge --info output.
They may figure out what is going on eventually.
What would be interesting to know is if it is a combination of libmad and
xine or just libmad. Do you have madplay on your machine? If so can
you try to play an mp3 with it with the bad libmad that would make sure
it comes from libmad or a combination.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Tue Feb 06, 2007 9:29 pm    Post subject: Reply with quote

dertobi123 said it's currently no way for masking or changing the keyword.
Let's watch the bugreport.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Tue Feb 06, 2007 11:16 pm    Post subject: Reply with quote

paoleela wrote:
dertobi123 said it's currently no way for masking or changing the keyword.
Let's watch the bugreport.

OK I just checked the ebuild. If you use -mad an internal copy of libmad will be used.
The ebuild show that when the flag "mad" is enabled xine-lib is configured to use
an external libmad. Which means an internal snapshot will be used otherwise.
comment 10 of the bug seems to say it works if you disable the external
libmad to me.
And in my previous comment I meant to say that the code should be put in the
file /etc/portage/package.use (as root) you should try it.
Anyway it seems the problems is in the ppc optimizations in -r2 they may not agree
with G3 processors.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Wed Feb 07, 2007 7:30 pm    Post subject: Reply with quote

Thanks for this clarification.

I checked, madplay has the same problem with version 0.15.1b-r2. So since there is no reason to keep that version, I think there's no reason to build xine with the builtin libmad, but with the last working media-libs/libmad-0.15.1b.
_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1563
Location: Germany

PostPosted: Thu Jan 03, 2008 8:34 pm    Post subject: Reply with quote

The problem is also reproducable on a Powerbook5,8 G4.
emerge --info:
# emerge --info
Portage 2.1.3.19 (default-linux/ppc/ppc32/2007.0/desktop/G4, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 ppc)
=================================================================
System uname: 2.6.23-gentoo-r3 ppc 7447A, altivec supported
Timestamp of tree: Tue, 01 Jan 2008 21:46:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7450 -O2 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -ftracer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-mcpu=7450 -O2 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -ftracer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/lila-theme /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/genstef /usr/portage/local/layman/enlightenment /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl aim alsa altivec ansi automount bash-completion berkdb bitmap-fonts branding bzip2 cairo cdparanoia cdr cdrom cli cracklib crypt cups dbus divx4linux dri dvd dvdr dvdread emboss encode evo fam fbcon flac gdbm gecko-sdk geoip gif gimp glibc-omitfp gpm gstreamer gtk gtk2 hal hbci ibam iconv icq ieee1394 imap isdnlog jabber javascript jpeg kde kdehiddenvisibility libcaca mad midi mikmod mjpeg mmap mp3 mpeg mplayer msn mudflap musepack ncurses network nls nonfsv4 nptl nptlonly nsplugin ogg oggvorbis opengl openmp pam pcre pdf perl pic png ppc ppds pppd pthreads python qt3 qt3support qt4 quicktime quotes radeon readline reflection samba sasl scanner sdl session slang spell spl ssl subversion svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vim vorbis wifi xcomposite xine xml xorg xprint xscreensaver xv xvid yahoo zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Lila-Theme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum