[mythtv-users] "Error Truncating" in backend log; mythtranscode never exits but transcode is successful.

Greg Grotsky spikeygg at gmail.com
Sat Mar 28 14:50:10 UTC 2009


I've been playing around with the transcoding options in myth.  I like to
use the lossless transcode of MPEG2 streams from my HDHomeRun and PCHDTV
HD-3000 tuners.  I noticed some weird things: after doing about four
transcodes in a row all of them appeared to completed successfully but the
mythtranscode processes were still running on my backend sever (one process
for each transcode I kicked off).  I had to manually kill them to remove
them from the process list.  I have since transcoded one more item and the
same thing happened.  The log says that it completed successfully but the
process did not die naturally.  Has anyone seen this type of behavior or
know how to cure it?

Thanks,
-Greg

Here is my process list as of this morning (the transcode finished last
night).  The "STARTED" of mythtranscode lines up with the errors from the
log...
> ps -eo user,pid,lstart,command |grep myth
USER      PID       STARTED             COMMAND
spikeygg 17426 Fri Mar 27 10:48:40 2009 /usr/local/bin/mythbackend -d -l
/home/spikeygg/logs/mythbackend.log
spikeygg 17452 Fri Mar 27 10:49:01 2009 mythfrontend
spikeygg 17467 Fri Mar 27 10:49:02 2009 /usr/local/bin/mythlcdserver -v none
*spikeygg 17765 Fri Mar 27 11:06:39 2009 /usr/local/bin/mythtranscode -j
1039 -V 3 -p autodetect -l*

The snippit below is from my backend log file:
2009-03-27 11:03:51.226 Transcoding from
/mythtv/recordings1/1121_20090322185900.mpg to
/mythtv/recordings1/1121_20090322185900.mpg.tmp
2009-03-27 11:03:51.252 Connecting to backend server: 192.168.0.10:6543 (try
1 of 5)
2009-03-27 11:03:51.259 Using protocol version 44
2009-03-27 11:03:51.261 MainServer::ANN Monitor
2009-03-27 11:03:51.264 adding: mythbox as a client (events: 0)
2009-03-27 11:03:51.266 MainServer::ANN Monitor
2009-03-27 11:03:51.270 adding: mythbox as a client (events: 1)
2009-03-27 11:03:51.418 AFD: Opened codec 0x73c3f0, id(MPEG2VIDEO)
type(Video)
2009-03-27 11:03:51.421 AFD: codec AC3 has 2 channels
2009-03-27 11:03:51.423 AFD: Opened codec 0x736b60, id(AC3) type(Audio)
2009-03-27 11:03:51.460 Honoring the cutlist while transcoding
2009-03-27 11:03:51.462 Cutlist        :
0-3100,27025-36620,64912-79117,95481-105488,115679-118601
2009-03-27 11:03:51.464 Original Length: 118601 frames
2009-03-27 11:03:51.466 New Length     : 78772 frames
2009-03-27 11:03:51.469 Transcode: Looking for autodetect profile:
Autodetect from 720p
2009-03-27 11:03:51.482 New DB connection, total: 3
2009-03-27 11:03:51.485 Connected to database 'mythconverg' at host:
localhost
2009-03-27 11:03:51.504 SampleRate: Attempted to add a rate 32000 Hz, which
is not in the list of allowed rates.
2009-03-27 11:03:51.508 Transcode: Using autodetect profile: MPEG2
2009-03-27 11:03:51.510 Switching to MPEG-2 transcoder.
2009-03-27 11:03:51.521 Opening /mythtv/recordings1/1121_20090322185900.mpg
2009-03-27 11:03:51.543 Input #0, mpegts, from
'/mythtv/recordings1/1121_20090322185900.mpg':
2009-03-27 11:03:51.545   Duration: 00:32:59.16, start: 84041.403589,
bitrate: 14283 kb/s
2009-03-27 11:03:51.547     Stream #0.0[0x31]: Video: mpeg2video, yuv420p,
1280x720 [PAR 1:1 DAR 16:9], 19000 kb/s, 59.94 tb(r)
2009-03-27 11:03:51.548     Stream #0.1[0x34](eng): Audio: ac3, 48000 Hz,
stereo, s16, 256 kb/s
2009-03-27 11:03:51.559 #0 PTS:23:20:41.813 Delta: 0.0ms queue: 24
2009-03-27 11:03:51.561 #1 PTS:23:20:41.787 Delta: 25.5333ms queue: 2
2009-03-27 11:03:52.720 Converting frame #1 from B to I
2009-03-27 11:03:52.772 Converting frame #2 from B to I
2009-03-27 11:03:52.806 Converting frame #3 from P to I
Mux rate: 19.57 Mbit/s
2009-03-27 11:03:54.564 Inserting 0 I-Frames after #5
2009-03-27 11:03:57.713 Inserting 0 I-Frames after #8
2009-03-27 11:04:01.091 Inserting 0 I-Frames after #8
2009-03-27 11:04:04.600 Inserting 0 I-Frames after #11
2009-03-27 11:04:08.500 Inserting 0 I-Frames after #14
2009-03-27 11:04:12.508 Inserting 0 I-Frames after #14
2009-03-27 11:04:16.969 Inserting 0 I-Frames after #2
2009-03-27 11:04:20.391 Inserting 0 I-Frames after #5
2009-03-27 11:04:22.716 Converting frame #3 from B to I
2009-03-27 11:04:23.079 Converting frame #4 from B to I
2009-03-27 11:04:23.145 Converting frame #5 from P to I
2009-03-27 11:04:27.323 Converting frame #12 from B to I
2009-03-27 11:04:27.350 Converting frame #13 from B to I
2009-03-27 11:04:27.379 Converting frame #14 from P to I
2009-03-27 11:04:29.045 Inserting 0 I-Frames after #14
2009-03-27 11:04:32.412 Inserting 0 I-Frames after #2
2009-03-27 11:04:36.008 Inserting 0 I-Frames after #5
2009-03-27 11:04:41.753 Inserting 0 I-Frames after #5
2009-03-27 11:04:48.647 Inserting 0 I-Frames after #8
2009-03-27 11:04:51.414 Inserting 0 I-Frames after #11
2009-03-27 11:04:55.124 Inserting 0 I-Frames after #11
2009-03-27 11:05:00.269 Inserting 0 I-Frames after #14
2009-03-27 11:05:01.775 AutoExpire: CalcParams(): Max required Free Space:
10.0 GB w/freq: 15 min
2009-03-27 11:05:04.279 Inserting 0 I-Frames after #2
2009-03-27 11:05:07.093 Converting frame #0 from B to I
2009-03-27 11:05:07.933 Converting frame #1 from B to I
2009-03-27 11:05:13.915 Converting frame #9 from B to I
2009-03-27 11:05:13.943 Converting frame #10 from B to I
2009-03-27 11:05:13.972 Converting frame #11 from P to I
2009-03-27 11:05:15.810 Inserting 0 I-Frames after #14
2009-03-27 11:05:19.092 Inserting 0 I-Frames after #14
2009-03-27 11:05:28.128 Inserting 0 I-Frames after #2
2009-03-27 11:05:31.621 Inserting 0 I-Frames after #5
2009-03-27 11:05:36.275 Inserting 0 I-Frames after #5
2009-03-27 11:05:39.248 Converting frame #9 from B to I
2009-03-27 11:05:40.237 Converting frame #10 from B to I
2009-03-27 11:05:40.265 Converting frame #11 from P to I
2009-03-27 11:05:48.160 Converting frame #12 from B to I
2009-03-27 11:05:48.280 Converting frame #13 from B to I
2009-03-27 11:05:48.308 Converting frame #14 from P to I
2009-03-27 11:05:50.934 Inserting 0 I-Frames after #14
2009-03-27 11:05:53.960 Inserting 0 I-Frames after #2
2009-03-27 11:05:56.723 Inserting 0 I-Frames after #2
2009-03-27 11:05:58.668 Converting frame #3 from B to I
2009-03-27 11:05:59.472 Converting frame #4 from B to I
2009-03-27 11:05:59.498 Converting frame #5 from P to I
2009-03-27 11:06:00.867 Converting frame #0 from B to I
2009-03-27 11:06:00.898 Converting frame #1 from B to I
2009-03-27 11:06:00.946 Inserting 1 I-Frames after #8
2009-03-27 11:06:01.022 Generating Keyframe Index
2009-03-27 11:06:01.072 Opening
/mythtv/recordings1/1121_20090322185900.mpg.tmp
2009-03-27 11:06:01.170 Input #0, mpeg, from
'/mythtv/recordings1/1121_20090322185900.mpg.tmp':
2009-03-27 11:06:01.176   Duration: 00:21:54.37, start: 0.352178, bitrate:
14637 kb/s
2009-03-27 11:06:01.178     Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p,
1280x720 [PAR 1:1 DAR 16:9], 19000 kb/s, 59.94 tb(r)
2009-03-27 11:06:01.179     Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5:1,
s16, 448 kb/s
2009-03-27 11:06:36.023 Transcode Completed
2009-03-27 11:06:38.214 Transcoding
/mythtv/recordings1/1121_20090322185900.mpg done
*2009-03-27 11:06:38.627 Error Truncating
'/mythtv/recordings1/1121_20090322185900.mpg.old' could not determine size
of the file, unlinking immediately.
2009-03-27 11:06:38.630 Error Truncating
'/mythtv/recordings1/1121_20090322185900.mpg.old' could not determine size
of the file, unlinking immediately.
2009-03-27 11:06:38.632 Error Truncating
'/mythtv/recordings1/1121_20090322185900.mpg.old' could not determine size
of the file, unlinking immediately.
*2009-03-27 11:06:40.266 transcode: Transcode Finished: The Simpsons "In the
Name of the Grandfather": Autodetect (2.2 GB)
2009-03-27 11:06:40.404 JobQueue: Transcode Finished: The Simpsons "In the
Name of the Grandfather": Autodetect (2.2 GB)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090328/ef89f1b7/attachment.htm>


More information about the mythtv-users mailing list