Author |
Message |
baishen78
|
Posted: Wed Oct 04, 2006 12:03 pm |
|
Joined: Sun Aug 27, 2006 2:31 pm
Posts: 287
|
Human wrote: If you're using MythTV 0.20 with an Athlon/Sempron 64 CPU, please run these commands as root: Code: apt-get update apt-get install mpeg2dec Then switch to the Standard mpeg2 decoder option in your TV playback options. Please let me know what results you get. I saw a 20% drop in CPU usage. There are still problems with libmpeg2 and xvmc, though.
What do you mean by "switch to the Standard mpeg2 decoder option in your TV playback"? Will this break transcoded files?
_________________ KM R5E50; K8NGM2; A64-3800+; 1024MB PC3200; LG DVD-RW; Seagate 750GB; 6600 PCI-E; Onboard sound; Hauppauge PVR-150
|
|
Top |
|
 |
afrosheen
|
Posted: Wed Oct 04, 2006 12:14 pm |
|
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
|
I noticed that your mpeg2dec trick updates from the beta release to the updated release which includes their bugfix for AMD64 processors. That's probably why you saw a decrease in cpu usage. I think if you follow suit and make sure the updated packages are in place for the rest of the libmpeg2 suite you may see even more performance increases.
|
|
Top |
|
 |
Human
|
Posted: Wed Oct 04, 2006 1:20 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
afrosheen wrote: I noticed that your mpeg2dec trick updates from the beta release to the updated release which includes their bugfix for AMD64 processors.
Actually, it installed 0.4.0b-2, not 0.4.1, which is the latest version. I'll try 0.4.1, though, to see if I get more improvement.
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
 |
dir3wolf
|
Posted: Thu Oct 05, 2006 5:29 am |
|
Joined: Sat Jul 15, 2006 2:51 pm
Posts: 6
|
I followed instructions and everything was, more or less, fine. I had to reboot to get it working.
The problem I have now is that I can't schedule recordings using MythWeb. Other than that MythWeb seems to be working fine. I can stream, I can review already scheduled recordings, I can see the listings, old recordings... but when I try to schedule new recording it doesn't show in the listing. When I check Upcoming recordings I can see that something is in that spot but it is without title and it is not active. When I click Activate I get this error.
Quote: Fatal Error at /usr/share/mythtv/mythweb/includes/programs.php, line 633: Unknown schedule for this program's recordid:
If you choose to submit a bug report, please make sure to include a brief description of what you were doing, along with the following backtrace as an attachment (please don't paste the whole thing into the ticket). Backtrace:
datetime: 2006-10-05 13:27:05 (UTC) errornum: 256 error type: User Error error string: Unknown schedule for this program's recordid: filename: /usr/share/mythtv/mythweb/includes/programs.php error line: 633
==========================================================================
There is more in that error, and I can post it if somebody thinks it would help.
Scheduling works normal when I do it in the Frontend.
|
|
Top |
|
 |
thornsoft
|
Posted: Thu Oct 05, 2006 6:42 am |
|
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location:
spencerport, ny (USA)
|
dir3wolf wrote: The problem I have now is that I can't schedule recordings using MythWeb.
Search the forum - there's a fix for this.
|
|
Top |
|
 |
Human
|
Posted: Fri Oct 06, 2006 12:38 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
baishen78 wrote: What do you mean by "switch to the Standard mpeg2 decoder option in your TV playback"? Will this break transcoded files?
In the options for TV playback, select Standard as the mpeg2 decoder to use. This only applies for mpeg2 content.
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
 |
sjerome
|
Posted: Fri Oct 06, 2006 1:39 pm |
|
Joined: Tue Aug 01, 2006 1:23 pm
Posts: 40
Location:
E-Town, PA - USA
|
So, does this mean it is safe to upgrade from R5C7 to R5D1, or should I keep my R5C7 mythtv .20fixes svn, and hold out. I have updated mpeg2dec and ffmpeg. I have not been home yet today to check it, but I will as soon as I get home from work. Last night on my Homemade dragon, I was getting 47 to 50% on libffmpeg and bob 2 deint. 45 to 50% on standard with bob2. XvMC was 60 to 76%. I am hoping to see some improvement tonight using Human's suggestion. I will post when I know more.
_________________ Knoppmyth R5D1 - Mythtv .20svn-fixes
HD Frontend/Master Backend
AMD64 3200+-1GB Corsair-800GB LVM PATA/SATA
Biostar GeForce 6100 Motherboard M109
1x Air2Pc rev.2 1x PVR150MCE
Maddog DVD/RW-DL Drive
|
|
Top |
|
 |
Human
|
Posted: Fri Oct 06, 2006 2:27 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
sjerome wrote: So, does this mean it is safe to upgrade from R5C7 to R5D1, or should I keep my R5C7 mythtv .20fixes svn, and hold out. KnoppMyth does two main things for you: makes the software installation easy and makes the configuration easy. If you've already done both with R5C7, there's no need for you to upgrade right now. Quote: I have updated mpeg2dec and ffmpeg. I have not been home yet today to check it, but I will as soon as I get home from work. Last night on my Homemade dragon, I was getting 47 to 50% on libffmpeg and bob 2 deint. 45 to 50% on standard with bob2. XvMC was 60 to 76%. To standardize the results, can you try these test clips and let me know what CPU usage you have with them? http://mysettopbox.tv/phpBB2/viewtopic.php?t=12022[/quote]
There's also a kludgy script I wrote so that you can plot the usage in gnuplot:
Code: #!/bin/sh
export MYTICKS=100 export MYINTERVAL=4 # we sample once every $MYINTERVAL seconds export MYINVERSEINTERVAL=0.25
top -d $MYINVERSEINTERVAL -n $MYTICKS -b | egrep -e "mythfrontend|X" | perl -e "while(<>) { split(' '); print @_[8],"\n";}" > profile sed -i '{ N; s/\n/ /}' profile perl -e '$second=0; while(<>) { chop(); $load = $_; print "$second $load "; split " ", $load; print @_[0] + @_[1], "\n"; $second+=0.25;}' < profile > points echo "set grid set xrange [0: $(($MYTICKS/$MYINTERVAL))] set yrange [0: 100] set xtics 0,$MYINVERSEINTERVAL,$(($MYTICKS/$MYINTERVAL)) set xlabel "time" set ylabel "CPU usage" plot "points" using 1:2 with lines title 'frontend', "points" using 1:3 with lines lt -1 title 'X', "points" using 1:4 with lines lt 3 title 'frontend+X' replot" > gplot.cmds gnuplot -persist gplot.cmds
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
 |
dogsop
|
Posted: Sat Oct 21, 2006 11:27 am |
|
Joined: Sat Apr 22, 2006 6:40 am
Posts: 2
|
dir3wolf wrote: The problem I have now is that I can't schedule recordings using MythWeb. Other than that MythWeb seems to be working fine. I can stream, I can review already scheduled recordings, I can see the listings, old recordings... but when I try to schedule new recording it doesn't show in the listing. When I check Upcoming recordings I can see that something is in that spot but it is without title and it is not active. @dir3wolf Did you find a solution to this problem? I just did the upgrade and am having the same problem. It looks like the title field is blank when the new recording is inserted into the database. Quote: 114 Query REPLACE INTO record (recordid,type,chanid,starttime,startdate,endtime,enddate,search,title,subtitle,description,profile,recpriority, category,maxnewest,inactive,maxepisodes,autoexpire,startoffset,endoffset,recgroup,dupmethod,dupin,station, seriesid,programid,autocommflag,findday,findtime,findid,autotranscode,transcoder,parentid,tsdefault,autouserjob1, autouserjob2,autouserjob3,autouserjob4) VALUES ('0','1','1110', FROM_UNIXTIME('1161455400'),FROM_UNIXTIME('1161455400'),FROM_UNIXTIME('1161457200'), FROM_UNIXTIME('1161457200'),'0','','','','Default','0','0','0','0','0','1','0','0','0','6','15','','','','1','0', '13:30:00','732970.770833','1','0','0','1.00','0','0','0','0')
Thanks
|
|
Top |
|
 |
KMan
|
Posted: Sun Oct 22, 2006 6:57 am |
|
Joined: Wed Oct 04, 2006 10:12 am
Posts: 3
|
|
Top |
|
 |
dogsop
|
Posted: Sun Oct 22, 2006 7:13 am |
|
Joined: Sat Apr 22, 2006 6:40 am
Posts: 2
|
Yup, that was the problem.
Thank you, I hadn't found that thread.
|
|
Top |
|
 |
dir3wolf
|
Posted: Tue Oct 24, 2006 1:17 am |
|
Joined: Sat Jul 15, 2006 2:51 pm
Posts: 6
|
|
Top |
|
 |