Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Choppy DVD playback on a 1.2GHz iBook G4
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
l33tmmx
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 91
Location: Pirkkala, Finland

PostPosted: Fri Mar 25, 2005 10:00 pm    Post subject: Choppy DVD playback on a 1.2GHz iBook G4 Reply with quote

Hi all Gentoo-PPC users!

I'm having trouble with the DVD playback on my 1.2GHz iBook G4. Both the sound and video playbacks are very slow/choppy. :? I'm using xine (xine-lib-1.0) via either xine-ui or kaffeine, haven't tried mplayer yet. Top shows that xine is using almost 100% of the processor capacity when playing a DVD (On my Slackware-running desktop, 2.1GHz Athlon XP, it barely uses 10%).

hdparm /dev/hdc:

IO_support = 0 (default 16-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)

emerge info:

Portage 2.0.51.19 (default-linux/ppc/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 ppc)
=================================================================
System uname: 2.6.10-gentoo-r6 ppc 7447A, altivec supported
Gentoo Base System version 1.6.10
Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 24 2005, 22:48:53)]
dev-lang/python: 2.3.5
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.9.5, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3
sys-devel/binutils: 2.15.90.0.3-r4
sys-devel/libtool: 1.5.14
virtual/os-headers: 2.4.22-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/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="-O2 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/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="-O2 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac alsa altivec berkdb bitmap-fonts cdr crypt cups curl divx4linux dv dvd emboss fam fbcon ffmpeg flac font-server fortran gdbm gif gtk gtk2 imagemagick imap imlib jpeg kde lcms mad matroska mikmod mp3 mpeg ncurses nls nodrm oggvorbis opengl pam perl png ppc python qt quicktime radeon readline sdl slang sndfile ssl tcltk theora tiff truetype truetype-fonts type1-fonts unicode xml xml2 xprint xv zlib linguas_en linguas_fi"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

Any ideas what's causing this? :?:
_________________
"Trust me, I know what I'm doing!"
- Sledge Hammer

Follow me on Twitter
Back to top
View user's profile Send private message
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Sat Mar 26, 2005 3:11 pm    Post subject: Reply with quote

yeah i'm getting the same, on a 1Ghz iBook, same thing, DVD playback is pretty choppy in Xine. I'm emerging vlc now, see if that's any different.
I'll post here if i find anything.
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Sat Mar 26, 2005 7:25 pm    Post subject: Reply with quote

I don't know how to offer any help except to say my 400MHz pismo will play a DVD without any choppiness when you get the sound right.
_________________
Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy
Back to top
View user's profile Send private message
l33tmmx
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 91
Location: Pirkkala, Finland

PostPosted: Sat Mar 26, 2005 8:12 pm    Post subject: Reply with quote

Yeah, I can now confirm that the problem is most probably sound related. I emerged vlc, and the video plays smoothly with it, but sound is still choppy. I'll continue investigating...

BTW, I'm using ALSA, with snd_powermac module.
_________________
"Trust me, I know what I'm doing!"
- Sledge Hammer

Follow me on Twitter
Back to top
View user's profile Send private message
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Sat Mar 26, 2005 8:29 pm    Post subject: Reply with quote

Well i emerged vlc. Seem to be having some problems though. I got version 0.8.1
Running the command vlc from a terminal doesn't bring up the GUI, like it does on my x86 system.
So i'm running

Code:

vlc dvd:///dev/hdc


and i get the following:

Code:

...<irrelevent output>....

libdvdnav: DVD disk reports itself with Region mask 0x00f50000. Regions: 2 4

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00043da0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00043f18
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00047d35
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x002808ff
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00282f4e
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
libdvdnav: Language 'en' not found, using '\uffff\uffff' instead
libdvdnav: Menu Languages available: \uffff\uffff
libdvdnav: Language 'en' not found, using '\uffff\uffff' instead
libdvdnav: Menu Languages available: \uffff\uffff
libdvdnav: Language 'en' not found, using '\uffff\uffff' instead
libdvdnav: Menu Languages available: \uffff\uffff
libdvdnav: Language 'en' not found, using '\uffff\uffff' instead
libdvdnav: Menu Languages available: \uffff\uffff
[00000191] main decoder error: no suitable decoder module for fourcc `mpgv'.
VLC probably does not support this sound or video format.
[00000200] main decoder error: no suitable decoder module for fourcc `mpgv'.
VLC probably does not support this sound or video format.
[00000201] a52 decoder: A/52 channels:2 samplerate:48000 bitrate:192000
ALSA lib pcm.c:1947:(snd_pcm_open_conf) Invalid type for PCM iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2 definition (id: iec958, value: cards.pcm.iec958)
[00000202] main audio output error: couldn't find a filter for the conversion
[00000202] main audio output error: couldn't set an input pipeline


Seems to be audio related, but i've no idea.
I'm using ALSA, with snd_powermac module. And i know my audio works, albeit with variable mileage.
Am i just doing something stupid?
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
Back to top
View user's profile Send private message
l33tmmx
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 91
Location: Pirkkala, Finland

PostPosted: Sat Mar 26, 2005 8:35 pm    Post subject: Reply with quote

Well THIS is strange: I changed the audio output in xine to OSS, and now it works (via Kaffeine or Xine-Ui), both video and audio plays smoothly 8) . The CPU usage is still quite heavy (60-70%), though. It seems that the ALSA compatibility in some apps isn't quite what it should... :cry:
_________________
"Trust me, I know what I'm doing!"
- Sledge Hammer

Follow me on Twitter
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Sat Mar 26, 2005 8:48 pm    Post subject: Reply with quote

l33tmmx wrote:
Well THIS is strange: I changed the audio output in xine to OSS, and now it works (via Kaffeine or Xine-Ui), both video and audio plays smoothly 8) . The CPU usage is still quite heavy (60-70%), though. It seems that the ALSA compatibility in some apps isn't quite what it should... :cry:


That's probably about right on the CPU useage. Mine gets 85-90% meaning I can't do anything else really. There is no hardware decoding help form video or sound hardware, so the processor is having to handle it all in software. That's a pretty big task, and the whole reason hardware decoding came about.
_________________
Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy
Back to top
View user's profile Send private message
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Sat Mar 26, 2005 10:22 pm    Post subject: Reply with quote

eh, vlc's weird.
thanks l33tmmx, i got xine working too.
ALSA support can't be the only problem though. Xine works perfectly on my x86 using ALSA. I'm thinking maybe the snd_powermac module
is not developed as much as some of the x86 modules. It's a mac thing afterall, and most development does happen for PCs.
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
Back to top
View user's profile Send private message
The DJ
n00b
n00b


Joined: 06 Nov 2002
Posts: 74

PostPosted: Sun Mar 27, 2005 1:25 am    Post subject: Reply with quote

You didn't set the proper USE flags for VLC. without the correct USE flags, VLC is basically a framework that doesn't do a thing.

Use the forum search. there is an extensive thread on the 0.8.1 ebuild, also covering things like what USE vars should be set.
Back to top
View user's profile Send private message
theothermatt
n00b
n00b


Joined: 10 Apr 2004
Posts: 57
Location: Leamington, UK

PostPosted: Sun Mar 27, 2005 1:50 am    Post subject: Reply with quote

yup, this is true :-)
Thanks for pointing that out, would have taken me a while before my brain kicked in.
I'll give that a go tomorrow.

thanks.
_________________
"God doesn't play dice." - Einstein
"Einstein, stop telling God what to do." - Niels Bohr
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