<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Mythtranscode is failing to convert my recordings to MPEG4 with MP3
audio. <br>
<br>
<pre wrap="">Recording Profiles -> Transcoders -> Medium Quality -
Resize video while transcoding, AutoDetect x 480, MPEG4, 2200 Bitrate,
Max Qual 2, Min Qual 15, Max qual diff between frames 3,
Scale bitrate for frame size, Enable High-quality encoding, Enable 4MV encoding;
MP3 audio, 32000 sampling rate, qual 7, volume 100%</pre>
<br>
# mythtranscode --verbose all --loglevel debug --starttime
20120322200000 --chanid 1071 -v --profile 28 <br>
<br>
<blockquote>2012-04-10 14:08:39.788373 I mythtranscode: 67%
Completed @ 106.57 fps.<br>
2012-04-10 14:08:58.916929 E decoding error<br>
eno: Input/output error (5)<br>
<br>
</blockquote>
Another run:<br>
<blockquote>2012-04-10 15:20:19.022234 I mythtranscode: 64%
Completed @ 106.382 fps.<br>
2012-04-10 15:20:39.028761 I mythtranscode: 65% Completed @
106.476 fps.<br>
2012-04-10 15:20:59.036421 I mythtranscode: 66% Completed @
106.36 fps.<br>
2012-04-10 15:21:19.041453 I mythtranscode: 67% Completed @
106.31 fps.<br>
2012-04-10 15:21:39.051439 I mythtranscode: 68% Completed @
106.369 fps.<br>
2012-04-10 15:21:41.508845 E decoding error<br>
eno: Input/output error (5)<br>
2012-04-10 15:21:41.794182 N Transcoding
/mythtv/recordings/1071_20120322200000.mpg done<br>
2012-04-10 15:21:41.794195 I Waiting for threads to exit.<br>
Error: Not all threads were shut down properly: <br>
Thread TFWSync is still running<br>
Thread TFWWrite is still running<br>
</blockquote>
<br>
I've tried it three times now, directly on the backend server, and
it fails at different points for the same recording. I also tried
another recording, same results.<br>
<br>
<blockquote>2012-04-10 17:38:56.742003 I mythtranscode: 94%
Completed @ 103.611 fps.<br>
2012-04-10 17:39:16.752185 I mythtranscode: 96% Completed @
103.759 fps.<br>
2012-04-10 17:39:36.756271 I mythtranscode: 97% Completed @
103.813 fps.<br>
2012-04-10 17:39:56.763152 I mythtranscode: 99% Completed @
103.709 fps.<br>
2012-04-10 17:40:06.305164 E decoding error<br>
eno: Input/output error (5)<br>
2012-04-10 17:40:06.947749 N Transcoding
/mythtv/recordings/1071_20120329200000.mpg done<br>
2012-04-10 17:40:06.947764 I Waiting for threads to exit.<br>
Error: Not all threads were shut down properly: <br>
Thread TFWWrite is still running<br>
Thread TFWSync is still running<br>
</blockquote>
<br>
Then run #2:<br>
<br>
012-04-10 18:05:55.484874 I mythtranscode: 67% Completed @ 106.217
fps.<br>
2012-04-10 18:06:15.493279 I mythtranscode: 68% Completed @ 106.242
fps.<br>
2012-04-10 18:06:35.495191 I mythtranscode: 68% Completed @ 106.132
fps.<br>
2012-04-10 18:06:53.238329 E decoding error<br>
eno: Input/output error (5)<br>
2012-04-10 18:06:53.485644 N Transcoding
/mythtv/recordings/1071_20120329200000.mpg done<br>
2012-04-10 18:06:53.485662 I Waiting for threads to exit.<br>
Error: Not all threads were shut down properly: <br>
Thread TFWWrite is still running<br>
Thread TFWSync is still running<br>
<br>
# dd if=/mythtv/recordings/1071_20120329200000.mpg of=/dev/null
bs=64K<br>
71531+1 records in<br>
71531+1 records out<br>
4687919308 bytes (4.7 GB) copied, 20.8832 s, 224 MB/s<br>
<br>
<br>
Running Gentoo, commit media-tv/mythtv-0.25_rc20120329 based on the
official ebuild from github.<br>
Recordings come from QAM recordings via HDHomeRun.<br>
<br>
<pre wrap="">Also, if I don't use the '--profile 28', it never even starts the transcode, and instead just segmentation faults:
# mythtranscode -v all --loglevel debug --starttime 20120322200000 --chanid 1071
2012-04-10 10:21:56.161868 C mythtranscode version: master [v0.25-beta-158-g9c4e7fd] <a class="moz-txt-link-abbreviated" href="http://www.mythtv.org">www.mythtv.org</a>
2012-04-10 10:21:56.161894 N Enabled verbose msgs: all
2012-04-10 10:21:56.161920 N Setting Log Level to LOG_DEBUG
2012-04-10 10:21:56.161959 I Added logging to the console
2012-04-10 10:21:56.161965 I Added database logging to table logging
2012-04-10 10:21:56.162034 N Setting up SIGHUP handler
2012-04-10 10:21:56.162209 N Using runtime prefix = /usr
2012-04-10 10:21:56.162254 N Using configuration directory = /home/mythtv/.mythtv
2012-04-10 10:21:56.162336 E (old)Settings::ReadSettings(settings.txt) - No such file settings.txt
Segmentation fault
# dmesg |tail
[1991045.073703] mythtranscode[11887]: segfault at 70 ip 00007fa0b0db6a69 sp 00007fff21944910 error 4 in libmythtv-0.25.so.0.25.0[7fa0b0756000+8f6000]
[1992322.143422] mythtranscode[12013]: segfault at 70 ip 00007f7d33767a69 sp 00007fff9706b800 error 4 in libmythtv-0.25.so.0.25.0[7f7d33107000+8f6000]
[1992350.412732] mythtranscode[12017]: segfault at 70 ip 00007fb87280ca69 sp 00007fffc2f19170 error 4 in libmythtv-0.25.so.0.25.0[7fb8721ac000+8f6000]
[1994299.586504] mythtranscode[12143]: segfault at 70 ip 00007f17e5031a69 sp 00007fffec41c6f0 error 4 in libmythtv-0.25.so.0.25.0[7f17e49d1000+8f6000]
[1994509.665568] mythtranscode[12164]: segfault at 70 ip 00007f96bd217a69 sp 00007fff8373df30 error 4 in libmythtv-0.25.so.0.25.0[7f96bcbb7000+8f6000]
No disks errors (mirrored drive set for my recordings partition), no errors in my /var/log/messages nor dmesg (other than the segfault directly above).
For the life of me, I can't get the debug symbols installed:
<meta charset="utf-8">        USE="debug" && FEATURES="splitdebug" && emerge --oneshot =media-tv/mythtv-0.25_rc20120329
And yet still, running gdb, then 'file /usr/bin/mythtranscode' still results with "Reading symbols from /usr/bin/mythtranscode...(no debugging symbols found)...done."
2012-04-10 18:47:54.769848 E SampleRate: Attempted to add a rate 32000 Hz, which is not in the list of allowed rates.
[New Thread 0x7fffdf7fe700 (LWP 20617)]
[New Thread 0x7fffdeffd700 (LWP 20618)]
[New Thread 0x7fffdc304700 (LWP 20619)]
[New Thread 0x7fffdbb03700 (LWP 20620)]
[Thread 0x7fffe75da700 (LWP 20614) exited]
2012-04-10 19:11:12.388511 E decoding error
                        eno: Input/output error (5)
[Thread 0x7fffdbb03700 (LWP 20620) exited]
[Thread 0x7fffdffff700 (LWP 20616) exited]
[Thread 0x7fffe85d2700 (LWP 20610) exited]
[Thread 0x7fffe8dd3700 (LWP 20609) exited]
Error: Not all threads were shut down properly: [Thread 0x7fffdc304700 (LWP 20619) exited]
Thread TFWWrite is still running
Thread TFWSync is still running
[Thread 0x7fffdf7fe700 (LWP 20617) exited]
[Thread 0x7fffdeffd700 (LWP 20618) exited]
[Inferior 1 (process 20608) exited normally]
Not very helpful, I know.
So, how best to start debugging these two failures? Debugging on mythbackend isn't producing anything useful, and clearly the above excerpts aren't producing much detail either.
-JK
</pre>
</body>
</html>