[mythtv-users] nuvexport, mythtranscode eat my swap file,
then crash w/ bckend
Chris Germano
netslayer at hotmail.com
Sun Sep 28 14:30:57 EDT 2003
I'm having a lot of trouble with nuvexport and I'm wondering if any work has
been done on the mythtranscoder in CVS lately (past week).
Running CVS as of September ~20th and I use the divx export option on
nuvexport as I encode at 640x480 divx 2300kbps.
As of right now I have two problems:
1. Audio is not matching. I have an extreame audio/video sync issue. It
probably has to do with this:
2003-09-28 13:17:06 Audio is 114ms ahead of video at # 0
2003-09-28 13:17:06 Audio is 81ms ahead of video at # 2
2003-09-28 13:17:06 Audio is 48ms ahead of video at # 4
2003-09-28 13:17:06 Audio is 104ms ahead of video at # 6
2003-09-28 13:17:06 Audio is 70ms ahead of video at # 8
2003-09-28 13:17:06 Audio is 36ms ahead of video at # 10
2003-09-28 13:17:06 Audio is 235ms ahead of video at # 13
2003-09-28 13:17:06 Audio is 201ms ahead of video at # 15
2. It only works long enough to encode about 2 minutes of video. It then
gets noticibly slower until it just dies. I monitor my system stats and
mythtranscode is eating up all my memory. Once my swap runs out it is only a
matter of time before a whole bunch of things crash. Most of the time I will
lose VNC, SSH connection will die, once SMB and the Mythbackend crashed. ??
what do i do.. is this mythtranscode problems or what? Do you recommend
update to current CVS, should I try a backtrace?
Before I start with mythbackend running:
-------------------------
Cpu(s): 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
Mem: 515340k total, 77168k used, 438172k free, 7432k buffers
Swap: 506008k total, 36000k used, 470008k free, 38848k cached
Start of Nuvexport
--------------------------
Choose a function: 3
Where would you like to export the files to? [.]
Output filename? [The Gamble.avi] TheGamble.avi
./TheGamble.avi exists. Overwrite? [No] y
No cutlist found. Hopefully this means that you already removed the
commercials.
Audio bitrate? [64]
Video bitrate? [256]
Horizontal resolution? [320]
Vertical resolution? [240]
2003-09-28 13:17:06 Transcoding from
/home/chris/video/1388_20030825170000_20030825180000.nuv to
/home/chris/video/1388_20030825170000_20030825180000.nuv.tmp
2003-09-28 13:17:06 Created video fifo: fifodir/vidout
2003-09-28 13:17:06 Created audio fifo: fifodir/audout
2003-09-28 13:17:06 Video 640x480 at 29.97fps Audio rate: 32000
2003-09-28 13:17:06 Created fifos. Waiting for connection.
2003-09-28 13:17:06 Audio is 114ms ahead of video at # 0
2003-09-28 13:17:06 Audio is 81ms ahead of video at # 2
2003-09-28 13:17:06 Audio is 48ms ahead of video at # 4
-------------
Cpu(s): 0.3% user, 21.2% system, 45.9% nice, 32.6% idle
Mem: 515340k total, 510892k used, 4448k free, 5224k buffers
Swap: 506008k total, 154188k used, 351820k free, 27400k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
16247 root 20 19 512m 425m 22m R 30.7 84.6 0:10.34 mythtranscode
16255 root 19 19 3736 1624 308 S 24.8 0.3 0:07.61 ffmpeg
16252 root 19 19 512m 425m 22m S 6.5 84.6 0:02.33 mythtranscode
------------
Cpu(s): 0.7% user, 13.4% system, 24.8% nice, 61.1% idle
Mem: 515340k total, 510032k used, 5308k free, 4200k buffers
Swap: 506008k total, 406116k used, 99892k free, 5380k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
16247 root 19 19 652m 369m 63m S 14.7 73.5 0:13.43 mythtranscode
16255 root 19 19 4228 2116 308 S 11.1 0.4 0:09.96 ffmpeg
5 root 10 0 0 0 0 S 9.1 0.0 13:19.32 kswapd
16257 root 15 0 996 996 772 R 2.0 0.2 0:00.62 top
16252 root 19 19 652m 369m 63m R 1.0 73.5 0:02.75 mythtranscode
16152 chris 9 0 460 140 84 S 0.3 0.0 0:00.15 sshd
16251 root 19 19 652m 369m 63m R 0.3 73.5 0:00.01 mythtranscode
-------------
Swap file is completely full
-------------
Cpu(s): 0.0% user, 21.5% system, 18.0% nice, 60.5% idle
Mem: 515340k total, 510052k used, 5288k free, 4120k buffers
Swap: 506008k total, 506008k used, 0k free, 3880k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
5 root 15 0 0 0 0 R 11.6 0.0 13:20.34 kswapd
16247 root 19 19 806m 364m 1420 S 11.6 72.5 0:16.89 mythtranscode
16255 root 19 19 3968 1784 0 S 10.0 0.3 0:12.71 ffmpeg
16252 root 19 19 806m 364m 1420 R 2.9 72.5 0:03.35 mythtranscode
16257 root 16 0 464 420 240 R 2.3 0.1 0:01.16 top
-----------
Full CPU load
-----------
Cpu(s): 0.0% user, 88.9% system, 5.9% nice, 5.2% idle
Mem: 515340k total, 510452k used, 4888k free, 4124k buffers
Swap: 506008k total, 505808k used, 200k free, 3888k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
5 root 20 0 0 0 0 R 84.6 0.0 13:33.36 kswapd
16247 root 19 19 851m 411m 0 S 5.2 81.7 0:17.93 mythtranscode
16255 root 19 19 3980 480 0 S 2.3 0.1 0:13.59 ffmpeg
--------
Cpu(s): 0.0% user, 87.8% system, 1.9% nice, 10.3% idle
Mem: 515340k total, 510996k used, 4344k free, 4132k buffers
Swap: 506008k total, 505828k used, 180k free, 3696k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
5 root 17 0 0 0 0 R 84.2 0.0 13:58.00 kswapd
16257 root 16 0 464 396 240 R 2.3 0.1 0:02.19 top
16255 root 19 19 4012 1520 24 S 1.6 0.3 0:14.16 ffmpeg
16247 root 19 19 867m 426m 84 R 1.0 84.7 0:18.35 mythtranscode
16251 root 19 19 867m 426m 84 R 0.3 84.7 0:00.05 mythtranscode
16252 root 19 19 867m 426m 84 R 0.3 84.7 0:03.62 mythtranscode
----------
Cpu(s): 0.3% user, 96.8% system, 1.9% nice, 1.0% idle
Mem: 515340k total, 510640k used, 4700k free, 4148k buffers
Swap: 506008k total, 505828k used, 180k free, 3908k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
5 root 17 0 0 0 0 R 89.9 0.0 14:42.92 kswapd
16247 root 19 19 897m 456m 80 S 2.9 90.7 0:26.15 mythtranscode
16257 root 17 0 464 396 240 R 2.6 0.1 0:04.39 top
16252 root 19 19 897m 456m 80 R 2.3 90.7 0:12.86 mythtranscode
------------
Nuvexport slows down to a crawl
---------
Cpu(s): 0.0% user, 90.1% system, 0.3% nice, 9.6% idle
Mem: 515340k total, 512020k used, 3320k free, 4132k buffers
Swap: 506008k total, 505984k used, 24k free, 3944k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
16255 root 19 19 3996 880 0 S 41.0 0.2 0:23.50 ffmpeg
16252 root 20 19 904m 464m 0 R 22.3 92.2 0:16.31 mythtranscode
16247 root 19 19 905m 464m 80 S 18.1 92.3 0:35.83 mythtranscode
7007 root 19 19 1776 1776 1620 S 6.1 0.3 0:09.00 ntpd
16257 root 17 0 396 328 172 R 2.6 0.1 0:07.24 top
------------------
Notice Below: /proc/uptime: Cannot allocate memory
-----------------
Cpu(s): 0.0% user, 99.7% system, 0.0% nice, 0.3% idle
Mem: 515340k total, 512176k used, 3164k free, 4120k buffers
Swap: 506008k total, 505976k used, 32k free, 3908k cached
/proc/uptime: Cannot allocate memory
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
16247 root 19 19 908m 467m 96 R 29.5 93.0 0:48.98 mythtranscode
16252 root 19 19 908m 467m 96 S 26.3 93.0 0:21.22 mythtranscode
1 root 20 0 48 16 0 R 15.9 0.0 0:51.04 init
7007 root 19 19 1776 1776 1620 R 10.7 0.3 0:09.68 ntpd
5 root 20 0 0 0 0 R 9.4 0.0 15:33.24 kswapd
16255 root 19 19 4000 60 0 R 5.2 0.0 0:27.37 ffmpeg
----------------
!!!!!!!!! System starts to lockup
2003-09-28 13:23:45 Audio is 153ms ahead of video at # 4006bits/s
2003-09-28 13:23:51 Audio is 119ms ahead of video at # 4008bits/s
2003-09-28 13:23:54 Audio is 87ms ahead of video at # 4010kbits/s
2003-09-28 13:23:55 Audio is 53ms ahead of video at # 4012
2003-09-28 13:23:56 Audio is 143ms ahead of video at # 4014
frame= 2006 q=4.0 size= 2879kB time=66.9 bitrate= 352.4kbits/s
---- Nuvexport, mythtranscode, mythbackend all crashed!!!!
2003-09-28 13:21:30 Audio is 80ms ahead of video at # 3934
2003-09-28 13:21:33 Audio is 171ms ahead of video at # 3936
2003-09-28 13:21:34 Audio is 137ms ahead of video at # 3938bits/s
2003-09-28 13:21:36 Audio is 104ms ahead of video at # 3940bits/s
2003-09-28 13:21:36 Audio is 70ms ahead of video at # 3942
2003-09-28 13:21:36 Audio is 161ms ahead of video at # 3944bits/s
2003-09-28 13:21:39 Audio is 127ms ahead of video at # 3946bits/s
2003-09-28 13:21:41 Audio is 93ms ahead of video at # 3948kbits/s
2003-09-28 13:21:41 Audio is 61ms ahead of video at # 3950
Thanks for using nuvexport!
-----
After the crash...
-----
Cpu(s): 0.0% user, 0.0% system, 0.0% nice, 100.0% idle
Mem: 515340k total, 34620k used, 480720k free, 4756k buffers
Swap: 506008k total, 36456k used, 469552k free, 10796k cached
After nuvexport crashes, it reports this on the next attempt and I have to
clear that dir:
Possibly stale mythtranscode fifo's in fifodir.
Please remove them before running nuvexport.
_________________________________________________________________
More information about the mythtv-users
mailing list