Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lag 1080p XBMC Videos (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 58
Location: United Kigdom

PostPosted: Sun Apr 28, 2013 5:24 pm    Post subject: Lag 1080p XBMC Videos (solved) Reply with quote

Hi

I have XBMC installed and im getting some lag issues on videos over a few GB in size.
I was wondering if anyone could help me fix the problem.
Could it be my processor its nothing special on a small ITX board
I also have 4gb olf ram installed ?

It plays 720 p files with no problem at all just not 1080p

Code:
localhost ~ # eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11



Code:
localhost ~ # cat /proc/cpuinfo 
processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 20
model      : 2
model name   : AMD C-60 APU with Radeon(tm) HD Graphics
stepping   : 0
microcode   : 0x500010d
cpu MHz      : 1000.000
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 0
cpu cores   : 2
apicid      : 0
initial apicid   : 0
fpu      : yes
fpu_exception   : yes
cpuid level   : 6
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips   : 2000.13
TLB size   : 1024 4K pages
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb

processor   : 1
vendor_id   : AuthenticAMD
cpu family   : 20
model      : 2
model name   : AMD C-60 APU with Radeon(tm) HD Graphics
stepping   : 0
microcode   : 0x500010d
cpu MHz      : 1000.000
cache size   : 512 KB
physical id   : 0
siblings   : 2
core id      : 1
cpu cores   : 2
apicid      : 1
initial apicid   : 1
fpu      : yes
fpu_exception   : yes
cpuid level   : 6
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips   : 2000.13
TLB size   : 1024 4K pages
clflush size   : 64
cache_alignment   : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate cpb


Video card
Code:


I have a "1:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 610] (rev a1)" HDMI graphics card


I am using the following version of XBMC

Code:
Calculating dependencies... done!
[ebuild   R    ] media-tv/xbmc-11.0  USE="alsa projectm pulseaudio* rsxs samba sse sse2 xrandr"


My TV is set to resolution 1920x1080 I
In XBMC its 1920x1080

Hope this helps


Last edited by gentoo2013 on Sun Apr 28, 2013 9:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31363
Location: 56N 3W

PostPosted: Sun Apr 28, 2013 6:01 pm    Post subject: Reply with quote

gentoo2013,

Please post your
Code:
emerge --info

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 58
Location: United Kigdom

PostPosted: Sun Apr 28, 2013 6:36 pm    Post subject: Reply with quote

Hi thanks for your reply .

Here is my emerge info

Code:
localhost ~ # emerge --info
Portage 2.1.11.55 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.7.10-gentoo-r1-x86_64-AMD_C-60_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.1
KiB Mem:     4029640 total,     52644 free
KiB Swap:    8388604 total,   8362356 free
Timestamp of tree: Mon, 22 Apr 2013 19:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -mtune=generic -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -mtune=generic -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amd64 apng berkdb bluray bzip2 cdr cli consolekit cpi cracklib crypt cxx dbus divx dri dvd fortran fuse g3dvl gdbm gdu gif gnome gpm gtk gudev h264 hwdb iconv ipv6 jpeg mmx modules mp3 mp4 mpeg mpeg2 mpg mudflap multilib ncurses nls nptl nvidia opengl openmp pam pcre png policykit pulseaudio python readline session sqlite sse sse2 ssl ssse3 tcpd unicode x264 xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



Hope this helps
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31363
Location: 56N 3W

PostPosted: Sun Apr 28, 2013 7:36 pm    Post subject: Reply with quote

gentoo2013,

There are lots of pointers there.
Code:
-march=athlon64 -mtune=generic
in your CFLAGS isn't right for your C-60 APU.
It does not have the 3DNow multimedia extensions that athlon64 implies. It may be able able to execute them but they are not advertised in your FLAGS in cpuinfo.

That you have USE=sse sse2 for XBMC is good, your CPU has these instruction sets and can make use of the specially optimised code blocks that these flags enabled.

You can do better. Run
Code:
cc -march=native -E -v - </dev/null 2>&1 | grep cc1
on your C60.
It will tell what gcc would set for build time options for your CPU.

On my Phenom II, I get
Code:
$ cc -march=native -E -v - </dev/null 2>&1 | grep cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.2/cc1 -E -quiet -v - -march=amdfam10 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mlzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=amdfam10


How do you build for your C60?
With distcc and another system or two doing all the heavy lifting or does it build for itself?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 58
Location: United Kigdom

PostPosted: Sun Apr 28, 2013 7:51 pm    Post subject: Reply with quote

HI thanks for your quick reply .

What cflags do I need for my system i changed this because of thread i found online.

Here is my output.

Code:
c -march=native -E -v - </dev/null 2>&1 | grep cc1
 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/cc1 -E -quiet -v - -march=btver1 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=btver1


I just built the system the normall way follwoing the handbook.
I built everything on the machine and did not do any cross compiling or anything.
It took abotu 2 days to download and compile all the source unlike my i7 which took a few hours.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31363
Location: 56N 3W

PostPosted: Sun Apr 28, 2013 8:24 pm    Post subject: Reply with quote

gentoo2013,

You can set -march=native in your CFLAGS if like. Then gcc will do what you just did and arrive at
Code:
-march=btver1 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=btver1
You can put all that in CFLAGS too.

I have a E350 which I maintain with distcc, its similar to your C60.

You can try -Os in place of -O2 too, this optimises code for size, it may reduce your cache misses, which will improve performance.

If you are thinking of using distcc so your I7 can do all the hard work you must not use -march=native ... think about it. distcc will not distribute now when it detects -march=native.

When you have made your changes, rebuild xbmc and everything it depends on. For most packages thats everything that lddtree <package> lists.
Unfortunately, xbmc is a wrapper so you need to run
Code:
lddtree /usr/lib64/xbmc/xbmc.bin
and rebuild all the packages that those libraries belong to.
A package may provide several libraries, one package rebuild will fix all of its libraries.

Code:
emerge -e xbmc
will work too but it will rebuild other packages too.

Maybe you want to look at distcc after all ... it works better with faster networking, so wired always beats wireless.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 58
Location: United Kigdom

PostPosted: Sun Apr 28, 2013 8:30 pm    Post subject: Reply with quote

Thanks for your reply
I will try this and get back to you.
It will be awhile before it finishs compiling so il post back tomoz.

Thanks for your help and hopefully i can fix this lagging issue.

:D
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 58
Location: United Kigdom

PostPosted: Sun Apr 28, 2013 9:33 pm    Post subject: Reply with quote

The problem was a few use flags had not been compiled after re emerging xbmc everything is working fine

the use flags were vpuad and h264 x264

I will still change my cflags and remerge .
Back to top
View user's profile Send private message
gentoo2013
n00b
n00b


Joined: 20 Feb 2013
Posts: 58
Location: United Kigdom

PostPosted: Mon Apr 29, 2013 7:42 am    Post subject: Reply with quote

Is there away to no if the tv is actually outputing to 1080 ? Mt tv is capable of 1080p but i never no if lm using its full output in gentoo . Is there some way to confirm
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31363
Location: 56N 3W

PostPosted: Mon Apr 29, 2013 6:32 pm    Post subject: Reply with quote

gentoo2013,

Look in /var/log/Xorg.0.log, you should see something like
Code:
[    61.804] (II) NVIDIA(0): Validated MetaModes:
[    61.804] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[    61.804] (II) NVIDIA(0): Virtual screen size determined to be 1600 x 1200
[    61.830] (--) NVIDIA(0): DPI set to (99, 98); computed from "UseEdidDpi" X config

Where I have 1600 x 1200, you should see 1920 x 1080 if all is well.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7403
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Apr 29, 2013 8:58 pm    Post subject: Reply with quote

Moved from Multimedia to Duplicate Threads in favor of Lagging video XBMC on 1080 p (solved).

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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