mythtranscode doesn't exit on completion
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MythTV |
Fix Released
|
Unknown
|
|||
mythtv (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: mythtv-
System is running Mythbuntu 9.10 with mythtv-
I'm running a bunch of lossless transcodes on DVB-S MPEG2 captures. The transcode completes but the process doesn't exit which uses up memory and leaves files locked.
Output in mythtvbackend.log as follows
2009-11-08 17:08:40.365 JobQueue: Transcode Starting for Go Girls: High Quality (1.9 GB)
2009-11-08 17:08:40.382 transcode: Transcode Starting: Go Girls: High Quality (1.9 GB)
2009-11-08 17:08:43.858 Using runtime prefix = /usr
2009-11-08 17:08:43.863 Using configuration directory = /home/mythtv/
2009-11-08 17:08:43.878 Empty LocalHostName.
2009-11-08 17:08:43.883 Using localhost value of mythtv
2009-11-08 17:08:43.974 New DB connection, total: 1
2009-11-08 17:08:43.995 Connected to database 'mythconverg' at host: localhost
2009-11-08 17:08:43.995 Closing DB connection named 'DBManager0'
2009-11-08 17:08:43.996 Connected to database 'mythconverg' at host: localhost
2009-11-08 17:08:43.998 Enabled verbose msgs: important
2009-11-08 17:08:43.999 New DB connection, total: 2
2009-11-08 17:08:44.000 Connected to database 'mythconverg' at host: localhost
2009-11-08 17:08:44.018 Transcoding from /myth/tv/
2009-11-08 17:08:44.078 MythContext: Connecting to backend server: 192.168.0.17:6543 (try 1 of 1)
2009-11-08 17:08:44.083 Using protocol version 50
2009-11-08 17:08:44.084 MainServer::ANN Monitor
2009-11-08 17:08:44.085 adding: mythtv as a client (events: 0)
2009-11-08 17:08:44.086 MainServer::ANN Monitor
2009-11-08 17:08:44.087 adding: mythtv as a client (events: 1)
2009-11-08 17:08:44.238 AFD: Opened codec 0x9627a20, id(MPEG2VIDEO) type(Video)
2009-11-08 17:08:44.239 AFD: codec MP2 has 2 channels
2009-11-08 17:08:44.239 AFD: Opened codec 0x962f8b0, id(MP2) type(Audio)
2009-11-08 17:08:44.252 Honoring the cutlist while transcoding
2009-11-08 17:08:44.260 Cutlist : 0-3048,
2009-11-08 17:08:44.260 Original Length: 104808 frames
2009-11-08 17:08:44.261 New Length : 66565 frames
2009-11-08 17:08:44.273 SampleRate: Attempted to add a rate 32000 Hz, which is not in the list of allowed rates.
009-11-08 17:08:44.275 Switching to MPEG-2 transcoder.
2009-11-08 17:08:44.298 Opening /myth/tv/
2009-11-08 17:08:44.309 Input #0, mpegts, from '/myth/
2009-11-08 17:08:44.309 Duration: 01:09:53.54, start: 77827.738189, bitrate: 3845 kb/s
2009-11-08 17:08:44.311 Stream #0.0[0x204]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25 tbr, 90k tbn, 50 tbc
2009-11-08 17:08:44.311 Stream #0.1[0x244]: Data: 0x0101
2009-11-08 17:08:44.312 Stream #0.2[0x28e]: Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s
2009-11-08 17:08:44.313 Stream #0.3[0x3e9]: Data: 0x0000
2009-11-08 17:08:44.313 Skipping unsupported codec 2 on stream 1
2009-11-08 17:08:44.314 Skipping unsupported codec 2 on stream 3
2009-11-08 17:08:44.318 #0 PTS:21:37:08.359 Delta: 0.0ms queue: 14
2009-11-08 17:08:44.318 #2 PTS:21:37:08.337 Delta: 21.5333ms queue: 2
2009-11-08 17:08:46.136 Converting frame #18 from P to I
Mux rate: 15.44 Mbit/s
2009-11-08 17:09:00.885 Converting frame #0 from B to I
2009-11-08 17:09:00.905 Converting frame #1 from B to I
2009-11-08 17:09:05.160 Converting frame #1 from P to I
2009-11-08 17:09:21.234 Converting frame #0 from B to I
2009-11-08 17:09:21.252 Converting frame #1 from B to I
2009-11-08 17:09:23.969 Converting frame #0 from B to I
2009-11-08 17:09:23.988 Converting frame #1 from B to I
2009-11-08 17:09:36.549 Converting frame #0 from B to I
2009-11-08 17:09:36.561 Converting frame #1 from B to I
2009-11-08 17:09:39.757 Converting frame #18 from P to I
2009-11-08 17:09:56.071 Converting frame #0 from B to I
2009-11-08 17:09:56.082 Converting frame #1 from B to I
2009-11-08 17:10:02.874 Converting frame #1 from P to I
2009-11-08 17:10:31.763 Converting frame #0 from B to I
2009-11-08 17:10:31.789 Converting frame #1 from B to I
2009-11-08 17:10:44.565 Converting frame #0 from B to I
2009-11-08 17:10:44.585 Converting frame #1 from B to I
2009-11-08 17:10:44.602 Generating Keyframe Index
2009-11-08 17:10:44.603 Opening /myth/tv/
2009-11-08 17:10:44.676 Input #0, mpeg, from '/myth/
2009-11-08 17:10:44.677 Duration: 00:44:23.48, start: 0.301533, bitrate: 3403 kb/s
2009-11-08 17:10:44.677 Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25 tbr, 90k tbn, 50 tbc
2009-11-08 17:10:44.678 Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s
2009-11-08 17:11:33.769 Transcode Completed
2009-11-08 17:11:35.330 Transcoding /myth/tv/
2009-11-08 17:11:35.385 Error Truncating '/myth/
2009-11-08 17:11:35.444 transcode: Transcode Finished: Go Girls: High Quality (1.1 GB)
2009-11-08 17:11:35.450 JobQueue: Transcode Finished: Go Girls: High Quality (1.1 GB)
Changed in mythtv (Ubuntu): | |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
Changed in mythtv: | |
status: | Unknown → New |
Changed in mythtv: | |
status: | New → Fix Released |
Changed in mythtv (Ubuntu): | |
status: | Triaged → Fix Committed |
Running lsof on the process shows it has the following files locked. mythtranscode libmythavformat -0.22.so. 0.22.0 libmythupnp- 0.22.so. 0.22.0 libmythdb- 0.22.so. 0.22.0 libraw1394. so.11.0. 1 librom1394. so.0.3. 0 libmythavutil- 0.22.so. 0.22.0 libmyth- 0.22.so. 0.22.0 libmythlivemedi a-0.22. so.0.22. 0 so.1.2. 3.3 libiec61883. so.0.1. 1 libavc1394. so.0.3. 0 libXinerama. so.1.0. 0 libXvMC. so.1.0. 0 libmythhdhomeru n-0.22. so.0.22. 0 libXext. so.6.4. 0 libXv.so. 1.0.0 libXrandr. so.2.2. 0 libXvMCW. so.1.0. 0 i686/cmov/ libdl-2. 10.1.so libvdpau. so.185. 18.36 libXau. so.6.0. 0 libmythui- 0.22.so. 0.22.0 libmythfreemheg -0.22.so. 0.22.0 libfreetype. so.6.3. 20 libpulse. so.0.12. 0 i686/cmov/ libpthread- 2.10.1. so libGLU. so.1.3. 070600 libXrender. so.1.3. 0
{{{
lsof -p 20042
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mythtrans 20042 mythtv cwd DIR 8,17 4096 2 /
mythtrans 20042 mythtv rtd DIR 8,17 4096 2 /
mythtrans 20042 mythtv txt REG 8,17 375928 25105 /usr/bin/
mythtrans 20042 mythtv mem REG 8,17 659232 25624 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 720468 30618 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 622240 30611 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 59264 26407 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 13680 26419 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 42268 30610 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 3177332 25595 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 810700 30614 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 83608 201767 /lib/libz.
mythtrans 20042 mythtv mem REG 8,17 50612 26137 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 17808 25737 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 6528 25665 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 13872 25685 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 55100 30613 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 60024 24750 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 17848 25683 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 30064 25673 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 17784 25687 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 9736 218634 /lib/tls/
mythtrans 20042 mythtv mem REG 8,17 3656 24972 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 9564 25642 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 113320 201611 /lib/ld-2.10.1.so
mythtrans 20042 mythtv mem REG 8,17 1625872 30617 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 552860 30612 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 513472 25944 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 257012 25002 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 116920 218645 /lib/tls/
mythtrans 20042 mythtv mem REG 8,17 456380 24818 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 34412 25551 /usr/lib/
mythtrans 20042 mythtv mem REG 8,17 30080 25634 /u...