LinHES Forums http://forums.linhes.org/ |
|
mytharchive in R5.5 slow http://forums.linhes.org/viewtopic.php?f=17&t=18547 |
Page 1 of 1 |
Author: | footeo [ Mon Jul 14, 2008 11:30 am ] |
Post subject: | mytharchive in R5.5 slow |
In my old setup of R5F27 with an svn release of myth 0.21 mytharchive would take about a half a day or so depending on how much my system was being used to record 5 programs at 1 hr a piece at LP. Now it seems to take for ever. The ffmpeg step to transcode the recordings to LP is where it is stuck. I have had it running now all morning and it is still working on the first recording. The file size isn't changing at all so I am guessing it is stuck on the 2nd pass but, I really don't know. I am really not sure what is going on and any pointers would be helpful. Anyone else having similar results? |
Author: | footeo [ Wed Jul 16, 2008 2:47 pm ] |
Post subject: | |
after 2 days of running mytharchive failed. mythburn.log says: Code: STAT: ProcesSTAT: Processing /myth/tmp/work/5/final.mpg...
ERR: Error writing data1 PGCS ************************************************************ ERROR: Failed while running dvdauthor. Result: 1 ************************************************************ chmod: changing permissions of `/myth/tmp/newfile.mpg': Operation not permitted Terminated sing /myth/tmp/work/5/final.mpg... ERR: Error writing data1 PGCS ************************************************************ ERROR: Failed while running dvdauthor. Result: 1 ************************************************************ chmod: changing permissions of `/myth/tmp/newfile.mpg': Operation not permitted Terminated Not sure where to go from here. Go back to my old setup (R5f27 w/ svn release of myth 0.21) , fresh install R5.5, swear off TV and live in woods. Suggestions? Is anyone using similar (slow) hardware having similar results with mytharchive? |
Author: | stevenj [ Thu Jul 17, 2008 5:55 pm ] |
Post subject: | |
I'm having the same problem since upgrading to R5.5. I've burned hundreds of DVDs with previous versions and am familiar with how long it should take. My first one on R5.5 has been running for 13 hours recoding with ffmpeg on the first 2.2GB movie file. The temp file is increasing in size and is about 3/4 done. The log shows it continuing to process. I first ran it last night and when it wasn't finished this morning I just stopped it and started again. ffmpeg is using 98% CPU. The file to burn is a PVR 250 352x480 mpeg2 file that is being recoded to EP. My box is: 2.5GHz Celeron 512MB RAM Anyone have any ideas? |
Author: | tjc [ Thu Jul 17, 2008 6:43 pm ] |
Post subject: | |
Dunno, it's been working fine for me, but then I generally go straight from the DVD compatible MPEG-2 recordings to the DVD and don't re-encode. My recording profiles are configured specifically with this in mind. The one case where I did attempt to re-encode didn't go very well. It didn't take as long as indicated above, but the audio tracks weren't good. |
Author: | footeo [ Thu Jul 17, 2008 10:00 pm ] |
Post subject: | |
I believe the problem lies with the updated version of ffmpeg. Does anyone know of an easy way to get an older version? I was looking into recompiling mplayer and ffmpeg but all I see is the trunk (a.k.a. bleeding edge) version of ffmpeg. I was thinking of just getting the latest stable release from the stable repository but several dependencies on the newer version show up when running aptitude install ffmpeg. |
Author: | manicmike [ Thu Jul 17, 2008 11:23 pm ] |
Post subject: | |
footeo wrote: chmod: changing permissions of `/myth/tmp/newfile.mpg': Operation not permitted
Terminated [/code] This suggests that user mythtv is not the owner of the file. The only way permission would be denied is if one user creates newfile.mpg and another (not root) is attempting to chmod it. If it were me I would run it from the command line and put some debugging lines in the code. You will need to investigate a little more. I haven't heard of anyone else with this problem. Regarding downgrading, the easiest way to downgrade is to manually remove the package using "dpkg -P ffmpeg" then apt-get install it. No idea if this will work. Version installed is FFmpeg version SVN-r12391, version available is 3:20080706-0.1. Try it and see what errors pop up. It may be possible to fix them easily. Mike |
Author: | footeo [ Sun Jul 20, 2008 1:43 pm ] |
Post subject: | |
Ok, I fixed this problem. I just figured that maybe compiling ffmpeg on my system might fix the problems I was having. I have a P4 processor (albeit an old one) so I thought that compiling as i686 instead of i586 might help but, I couldn't tell you if that is really what the issue was. I did a search on this forum and found this post on how to compile ffmpeg and I used the wiki's directions for re-compiling mplayer to get the svn version of ffmpeg. Here is what I used for ./configure for ffmpeg: Code: ./configure --enable-libmp3lame --enable-libfaac --enable-liba52 --enable-libvorbis --enable-gpl --enable-shared --enable-libxvid --prefix=/usr --arch=i686 --cpu=i686 --enable-pthreads --enable-avfilter --enable-postproc
I wasn't able to get --enable-libtheora to work so I left it out since I don't think that I use it anyway. Now a 1 hour shows conversion takes around 40 minutes instead of the 10 hours that it was taking before plus myth2mp3 works as well. I feel much better now. ![]() |
Author: | cliffsjunk [ Thu Aug 21, 2008 3:52 pm ] |
Post subject: | R5.5 ffmpeg is 6 times slower than before? |
I am having the same problem. It used to take 4 hours to make a DVD (of 8, one half hour shows converting to LP). Now it takes 25. Has anyone tried upgrading ffmpeg via apt-get? It warns that is is going to upgrade a BUNCH of other packages and I would like to know if anyone has done this and if so if it blew up. Cliff Girlfriend system: R5.5 PVR-350 Athlon 1400 512 meg |
Author: | tjc [ Thu Aug 21, 2008 7:18 pm ] |
Post subject: | |
Somebody just posted something about updating mplayer and ffmpeg. Ah here it is. See the directions at the end of this thread... http://knoppmyth.net/phpBB2/viewtopic.php?t=18706 There are also graysky's mplayer compilation instructions for downgrading to the stable version. http://knoppmyth.net/phpBB2/viewtopic.php?t=4706 |
Author: | cliffsjunk [ Fri Aug 22, 2008 8:34 am ] |
Post subject: | |
I updated ffmpeg only (and it's associated libraries like libavformat) easily by Googling around a little and wound up using these 5 commands as root: Code: svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd ffmpeg ./configure --enable-pthreads --enable-libmp3lame --enable-libfaac --enable-liba52 --enable-libvorbis --enable-gpl --enable-shared --enable-libxvid --prefix=/usr --arch=i686 --cpu=i686 --enable-pthreads --enable-avfilter --enable-postproc --enable-libx264 --enable-libfaad --enable-x11grab make make install Note the line beginning with ./configure is one really long line. The exact same DVD that took 25 hours to create with the stock R5.5 ffmpeg, took a little over 4 hours to create. Edit: Note that you can add gsm and theora support by doing apt-get install on libtheora-dev and libgsm1-dev and adding --enable-libtheora and --enable-libgsm to the ./configure command. Edit: I have found that compiling SVN ffmpeg causes the stock nuvexport to fail. I have not attempted to use the latest nuvexport to fix this. DVD creation (mytharchive) works fine though. <<< Only the paranoid need read farther... >>> Warning: The latest version of ffmpeg (which you are using with these instructions) does not compile for libtheora or libgsm. I don't know what you may be using libtheora for, but I suspect that libgsm is used for "that telephone stuff" in mythtv. Small warning: I am running a PVR-350 on this system, and don't do transcodes, so about the only thing ffmpeg does is convert for DVD's. There is the tiniest of chances that something that I don't use is now broken. Smaller warning: The ./configure above assumes you are running a Pentium class CPU. If you are feeling paranoid (as I was) you can back up your old ffmpeg by copying this long list to a file called tarlist: Quote: /usr/include/libavfilter/avfilter.h and executing:/usr/lib/pkgconfig/libavfilter.pc /usr/include/libpostproc/postprocess.h /usr/lib/pkgconfig/libpostproc.pc /usr/include/libavdevice/avdevice.h /usr/lib/pkgconfig/libavdevice.pc /usr/include/libavformat/avformat.h /usr/include/libavformat/avio.h /usr/include/libavformat/rtsp.h /usr/include/libavformat/rtspcodes.h /usr/lib/pkgconfig/libavformat.pc /usr/include/libavcodec/avcodec.h /usr/include/libavcodec/opt.h /usr/lib/pkgconfig/libavcodec.pc /usr/include/libavutil/adler32.h /usr/include/libavutil/avstring.h /usr/include/libavutil/avutil.h /usr/include/libavutil/base64.h /usr/include/libavutil/common.h /usr/include/libavutil/crc.h /usr/include/libavutil/fifo.h /usr/include/libavutil/intfloat_readwrite.h /usr/include/libavutil/log.h /usr/include/libavutil/lzo.h /usr/include/libavutil/mathematics.h /usr/include/libavutil/md5.h /usr/include/libavutil/mem.h /usr/include/libavutil/random.h /usr/include/libavutil/rational.h /usr/include/libavutil/sha1.h /usr/lib/pkgconfig/libavutil.pc /usr/lib/vhook/fish.so /usr/lib/vhook/null.so /usr/lib/vhook/watermark.so /usr/lib/vhook/ppm.so /usr/lib/vhook/imlib2.so /usr/lib/vhook/drawtext.so /usr/bin/ffmpeg /usr/bin/ffplay /usr/bin/ffserver /usr/share/man/man1/ffmpeg.1.gz /usr/share/man/man1/ffplay.1.gz /usr/share/man/man1/ffserver.1.gz /usr/lib/libavfilter.a /usr/lib/libavfilter.so /usr/lib/libavfilter.so.0 /usr/lib/libavfilter.so.0.0.0 /usr/lib/libpostproc.a /usr/lib/libpostproc.so /usr/lib/libpostproc.so.0d /usr/lib/libpostproc.so.0d.51.11.0 /usr/lib/libpostproc.so.1d /usr/lib/libpostproc.so.1d.51.1.0 /usr/lib/libpostproc.so.51 /usr/lib/libpostproc.so.51.1.0 /usr/lib/libavdevice.a /usr/lib/libavdevice.so /usr/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52.0.0 /usr/lib/libavformat.a /usr/lib/libavformat.so /usr/lib/libavformat.so.0d /usr/lib/libavformat.so.0d.50.5.0 /usr/lib/libavformat.so.1d /usr/lib/libavformat.so.1d.51.10.0 /usr/lib/libavformat.so.51 /usr/lib/libavformat.so.51.11.0 /usr/lib/libavformat.so.52 /usr/lib/libavformat.so.52.9.0 /usr/lib/libavcodec.a /usr/lib/libavcodec.so /usr/lib/libavcodec.so.0d /usr/lib/libavcodec.so.0d.51.11.0 /usr/lib/libavcodec.so.1d /usr/lib/libavcodec.so.1d.51.38.0 /usr/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51.40.2 /usr/lib/libavcodec.so.51.51.0 /usr/lib/libavutil.a /usr/lib/libavutil.so /usr/lib/libavutil.so.0d /usr/lib/libavutil.so.0d.49.0.0 /usr/lib/libavutil.so.1d /usr/lib/libavutil.so.1d.49.3.0 /usr/lib/libavutil.so.49 /usr/lib/libavutil.so.49.4.0 /usr/lib/libavutil.so.49.6.0 Code: tar -cvz -T tarlist -f ffmpeg.r5.5.tar.gz I think that should back it all up correctly...Edit: it plays DVD's fine too (I had set up DVD playing before this) and that uses two of the libraries that you just compiled. Edit: If you want to put back your old ffmpeg, these commands should do it: Code: cd / Assuming that your backup file is in the /root directory.
tar -xvzf /root/ffmpeg.r5.5.tar.gz Edit: Changed tar commands to use z(gzip) instead of j(bzip2) as that is what the file name *.tar.gz implies. Cliff |
Author: | cliffsjunk [ Sat Aug 30, 2008 10:39 am ] |
Post subject: | |
I tested an "apt-get install ffmpeg". Short answer: don't do it this way. I also determined that recompiling ffmpeg greatly speeds up some systems, but not all. - It helped an AMD Athlon 1400 / Hauppauge PVR-350 / 720x480 -> NTSC DVD (a factor of 6 times better) - It did not help an Intel dual core Pentium D 940 / PCHDTV HD-3500 / 1920x1080 -> NTSC DVD (not even a little help) I have found that running a compiled SNV ffmpeg causes the stock nuvexport to fail. (Edit: fail differently than it used to.) <<< Benchmarks >>> Converting a 105 minute 1920x1080 ATSC recording to SP 4x3 DVD format with mytharchive takes the following times (just the time it took for the ffmpeg part) on a dual core Pentium D 3.4ghz: Code: Stock R5.5 SVN-r12391 73 minutes apt repository version: SVN-r13582 220 minutes (not a typo!) Stock R5.5 SVN-r12391 73 minutes (same test, same result) compiled source: SVN-r14895 73 minutes compiled source: SVN-r15015 73 minutes Converting eight 60 minute MPEG recordings to LP 4x3 DVD format with mytharchive takes the following times on an Athlon 1400: Code: Stock R5.5 SVN-r12391 25 hours
compiled source: SVN-r14895 4 hours You can find the compile instructions a couple posts above this. Note that you can add gsm and theora support by doing apt-get install on libtheora-dev and libgsm1-dev and adding --enable-libtheora and --enable-libgsm to the ./configure command. The ffmpeg site notes that the latest changes have sped up the code with more to come. <<< apt-get install ffmpeg >>> It was difficult, but after 3 hours of carefully documenting and backing out conflicting packages and later putting equivalent packages in, I got it done. Everything worked too. It just ran a lot slower. Compiling is easier, produces MUCH faster code, is much less susceptable to human error. Cliff |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |