720p x264 .mkv slow on appletv (with gentoo :) )
#1
after about 2 weeks of use i have to confess the decoder is not working with XBMC as well as i had hoped. the video frames are fairly smooth at 720p when there are no sudden abrupt events (car chases, fights, sporting events, etc) and the audio sync pretty well with the voice. my tv resolution only goes to 720p so thats all i can attest to.
but... when i do watch action movies or sporting events as mkv files at 720p there is an irregularity in rendering. frames accelerate periodically as if the video has to catch up with the audio. the sync is still pretty good though.

i have not played with the XBMC rendering options but i am a bit disappointed as this decoder is supposed to play 1080p!
Code:
appletv ~ # dmesg | grep crystalhd
Loading crystalhd 0.9.27

Code:
appletv ~ # dmesg | grep 70012
Broadcom 70012 Decoder 0000:02:00.0: enabling device (0000 -> 0002)
Broadcom 70012 Decoder 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Starting BCM70012 Device
CStopping BCM70012 Device
Broadcom 70012 Decoder 0000:02:00.0: setting latency timer to 64

Code:
appletv ~ # lsmod
Module                  Size  Used by
snd_seq                36860  0
snd_seq_device          5432  1 snd_seq
wl                   1942460  0
snd_pcm_oss            29704  0
snd_mixer_oss          11908  1 snd_pcm_oss
nvidia               8858588  38
snd_hda_codec_atihdmi     2852  1
hid_apple               5372  0
hid_logitech            5220  0
crystalhd              45548  0
snd_hda_codec_realtek   182676  1
snd_hda_intel          21312  3
usbhid                 15020  0
snd_hda_codec          47240  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_pcm                49076  4 snd_pcm_oss,snd_hda_intel,snd_hda_codec
i2c_i801                8148  0
snd_timer              15152  3 snd_seq,snd_pcm
i2c_core               16712  2 nvidia,i2c_i801
snd                    40552  13 snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
soundcore               4844  1 snd
snd_page_alloc          7060  2 snd_hda_intel,snd_pcm

i have this thread on the gentoo forums but i hope i can find more support here. this is the link of the progress on that thread:
http://forums.gentoo.org/viewtopic-t-810...art-0.html
Reply
#2
more info

Quote:appletv ~ # emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6v03 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6v03-i686-Genuine_Intel-R-_processor_1.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 18 Apr 2010 00:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash: 4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.4-r1
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.63-r1
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apic berkdb bluetooth branding bts bzip2 cairo cdr clflush cli cmov consolekit cracklib crypt cups cx8 cxx dbus de dri dts dvd dvdr emboss encode est exif fam firefox flac fortran fpu fxsr gdbm gif gpm gtk hal iconv ipv6 java jpeg lcms ldap libnotify lirc lm_sensors mad mca mce mikmod mmx mng modules mp3 mp4 mpeg msr mtrr mudflap ncurses nls nptl nptlonly nvidia nx ogg opengl opengl-video opengl-xvmc openmp pae pam pango pbe pcre pdf perl pge png ppds pppd pse python qt3support qt4 readline reflection sdl sep session spell spl ss sse sse2 ssl startup-notification svg sysfs tcpd tiff tm tm2 truetype tsc unicode usb vme vorbis wifi x264 x86 xcb xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="macmini" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Reply
#3
http://forum.xbmc.org/showthread.php?tid=69384
http://forum.xbmc.org/showthread.php?tid=70537
they suggest to use 1.0.3 driver maybe your is too old
Reply
#4
@h2sammo, which version of xbmc are you running. Of all the info posted, the most important is missing, xbmc.log. find it, pastebin it.
Reply
#5
thank you for responding to my post. here is the info requested.



Code:
appletv ~ # emerge -pv xbmc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-tv/xbmc-9.11-r3  USE="aac alsa sse sse2 (-altivec) -avahi -css -debug -joystick -midi -profile -pulseaudio -vdpau -xrandr" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

xbmc.log >> http://pastebin.com/7d3rCUYr

question: should i play a 720p file and then resend xbmc.log? i think all the material in there is SD.
Reply
#6
h2sammo Wrote:thank you for responding to my post. here is the info requested.



Code:
appletv ~ # emerge -pv xbmc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-tv/xbmc-9.11-r3  USE="aac alsa sse sse2 (-altivec) -avahi -css -debug -joystick -midi -profile -pulseaudio -vdpau -xrandr" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

xbmc.log >> http://pastebin.com/7d3rCUYr

question: should i play a 720p file and then resend xbmc.log? i think all the material in there is SD.

CDVDVideoCodecFFmpeg::Open

not using CrystalHD for decode.

media-tv/xbmc-9.11-r3, CrystalHD support is not in 9.11. You will need to build it from svn trunk. I recommend, r28256 as it's before the addons merge which has made svn trunk unstable for daily usage.

Also http://code.google.com/p/crystalhd-for-o...-osx-1.0.3 is recommended for crystalhd driver/lib, both osx and linux source code are present in this tag.
Reply
#7
without making too many people upset, could you describe (or point a tutorial) how i install xbmc from svn on gentoo? I have never used the svn trunk before.

also, compiling my current crystalhd driver was a pain and i was able to do it with lots of help from gentoo boards. is there a tutorial on how i can install the crystalhd drivers you linked to me?
Reply
#8
h2sammo Wrote:without making too many people upset, could you describe (or point a tutorial) how i install xbmc from svn on gentoo? I have never used the svn trunk before.

also, compiling my current crystalhd driver was a pain and i was able to do it with lots of help from gentoo boards. is there a tutorial on how i can install the crystalhd drivers you linked to me?

for crystalhd see http://wiki.xbmc.org/index.php?title=HOW...nd_library -> Install crystal HD driver and library. gentoo does not use apt-get so you will have install subversion autoconf the gentoo way.

As far as building xbmc on gentoo, might poke about here http://forum.xbmc.org/showthread.php?tid=30545
Reply
#9
Step 1, and most important step for gentoo: ditch the ebuild. Check out our source tarball for Camelot, or our svn repo. Don't use the ~ or -9999 builds. they did some crazy patching last time i looked.

If you're trying to compile w/ crystalhd, grab the revision davilla pointed you to, then build from source. To save you some searching:

./bootstrap
./configure
make -j4

TheUni
Reply
#10
thank you. i cant find the xbmc version you mentioned. i only see later versions which you advised against. is there a repository somewhere with older svn xbmc versions?
Reply
#11
h2sammo Wrote:thank you. i cant find the xbmc version you mentioned. i only see later versions which you advised against. is there a repository somewhere with older svn xbmc versions?

svn co -r 28256 blah, blah.

svn trunk contains all versions, you can specify which one you want.
Reply
#12
Code:
appletv ~ # svn co http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk -r 28256

now it says:
Quote:Checked out revision 28256.

what do i do next? are there step by step instructions somewhere? do i have to uninstall the current xbmc version i emerged through portage?

i appreciate if someone takes the time to go over these newb questions. i have never used svn before
Reply
#13
Code:
appletv ~ # svn co http://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk -r 28256

now it says:
Quote:Checked out revision 28256.

what do i do next? are there step by step instructions somewhere? do i have to uninstall the current xbmc version i emerged through portage?

i appreciate if someone takes the time to go over these newb questions. i have never used svn before
Reply
#14
i am following directions on http://wiki.xbmc.org/index.php?title=HOW...nd_library

i did the "make" step for the libs, but it croaks at "make install"

Code:
appletv libcrystalhd #  make install
mkdir -p /usr/include/libcrystalhd
cp libcrystalhd_if.h /usr/include/libcrystalhd/
cp ../../include/bc_dts_defs.h /usr/include/libcrystalhd/
cp ../../include/bc_dts_types.h /usr/include/libcrystalhd/
cp ../../firmware/fwbin/70012/bcmFilePlayFw.bin /lib/firmware/
cp: cannot create regular file `/lib/firmware/': Is a directory
make: *** [install] Error 1

any idea why?
Reply
#15
sudo mkdir /lib/firmware

gentoo must not use "/lib/firmware" dir path.


I also don't know anything about gentoo and how it works. Some gentoo person will have to help here.
Reply

Logout Mark Read Team Forum Stats Members Help
720p x264 .mkv slow on appletv (with gentoo :) )0