[mythtv-users] Mytharchive: "Failed to run mythtranscode to remove unwanted segments"

Bob Shanteau rmshant at gmail.com
Sat Oct 12 00:28:50 UTC 2013


On 10/11/2013 4:57 PM, Zig wrote:
> On 10/11/2013 6:34 PM, Bob Shanteau wrote:
>> On 10/11/2013 12:35 PM, Zig wrote:
>>> On 10/11/2013 1:39 PM, Bob Shanteau wrote:
>>>> I just submitted this bug but perhaps someone on this list has 
>>>> already encountered and solved this problem:
>>>>
>>>> ---
>>>> When trying to create an iso file from a recorded program with a 
>>>> cutlist, I get this error message in the log:
>>>>
>>>> "Failed to run mythtranscode to remove unwanted segments"
>>>>
>>>> Also, mytharchive hangs with newfile2.mpg at 0 bytes.
>>>>
>>>> I recorded the program in SDTV using an HDHomerun Prime off Comcast 
>>>> with a CableCard.
>>>>
>>>> I tried this under both MythTV 0.27 and 0.28 in a fresh install of 
>>>> MythBuntu 12.04.3 and after updating the system.
>>> This could be related to UTC time being used in 0.26 and forward. 
>>> You might need to patch mythburn.py to honor UTC time. See if this 
>>> discussion solves your problem:
>>> http://www.gossamer-threads.com/lists/mythtv/users/554071?search_string=mytharchive%20fails;#554071
>> I applied that fix, and it fixed the mythtranscode problem.
>>
>> But now Mytharchive gets hung, apparently in an endless loop, at the 
>> mythffmpeg command, with newfile2.mpg at 0 bytes.
> Check the logs at /var/lib/mytharchive/temp/logs

Running 0.28 in Mythbuntu and after patching mythburn.py, here are my 
logs while processing a short program with a cutlist:

mythburn.log:
---
Using simple_fix_rtl
mythburn.py (0.1.20130911-5) starting up...
script path:/usr/share/mythtv/mytharchive/scripts
myth share path:/usr/share/mythtv
passed job file: /var/lib/mytharchive/temp/config/mydata.xml
passed progress log file: /var/lib/mytharchive/temp/logs/progress.log
mythburn.py (0.1.20130911-5) starting up...
Found 2 CPUs
Obtaining MythTV settings from MySQL database for hostname localhost
temppath: /var/lib/mytharchive/temp/work
logpath:  /var/lib/mytharchive/temp/logs
Setting process priority to 17
Cannot change ionice level
Processing Mythburn job number 1.
Options - mediatype = 3, doburn = 1, createiso = 1, erasedvdrw = 0
           savefilename = '/var/lib/mytharchive/temp/p-r.iso'
Looking for: 
/usr/share/mythtv/mytharchive/themes/Simple_-_Autoplay/theme.xml
Loading font 0, /usr/share/mythtv/fonts/FreeSans.ttf size 19
Loading font 1, /usr/share/mythtv/fonts/FreeSans.ttf size 15
Loading font 2, /usr/share/mythtv/fonts/FreeSans.ttf size 13
wantIntro: 0, wantMainMenu: 0, wantChapterMenu: 0, wantDetailsPage: 0
Final DVD Video format will be ntsc
There are 1 file(s) to process
Pre-processing recording 1: 
'/var/lib/mythtv/recordings/1003_20131011180400.mpg'
[mpegts @ 0x1ac04c0] PES packet size mismatch
[mpegts @ 0x1ac04c0] PES packet size mismatch
Input #0, mpegts, from '/var/lib/mythtv/recordings/1003_20131011180400.mpg':
   Duration: 00:00:24.47, start: 16661.124889, bitrate: 3414 kb/s
     Stream #0:0[0x800]: Video: mpeg2video (Main), yuv420p, 704x480 [SAR 
10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     Stream #0:1[0x801](ENG): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
stereo, fltp, 192 kb/s
     Stream #0:2[0x802](ENG): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 
stereo, fltp, 192 kb/s
/var/lib/mytharchive/temp/work/1/streaminfo.xml:-
<?xml version="1.0" ?><!DOCTYPE FILEINFO><file cutduration="15" 
duration="24" 
filename="/var/lib/mythtv/recordings/1003_20131011180400.mpg" 
type="mpegts">
         <streams count="3">
                 <video aspectratio="1.33333" bitrate="0" 
codec="mpeg2video (Main)" ffmpegindex="0" fps="29.97" height="480" 
id="2048" start_time="1499.541245" streamindex="0" width="704"/>
                 <audio bitrate="192000" channels="2" codec="ac3 (AC-3 / 
0x332D4341)" ffmpegindex="1" id="2049" language="ENG" samplerate="48000" 
start_time="1499.501240" streamindex="1"/>
                 <audio bitrate="192000" channels="2" codec="ac3 (AC-3 / 
0x332D4341)" ffmpegindex="2" id="2050" language="ENG" samplerate="48000" 
start_time="1499.502418" streamindex="2"/>
         </streams>
</file>
           Family Feud
Node = chanid, Data = 1003
Node = type, Data = recording
Node = filename, Data = /var/lib/mythtv/recordings/1003_20131011180400.mpg
Node = title, Data = Family Feud
Node = recordingdate, Data = Fri  Oct  11
Node = recordingtime, Data = 11:00 AM
Node = subtitle, Data =
Node = description, Data =
Node = rating, Data = 0.0
Node = coverfile, Data =
Node = cutlist, Data =
Node = starttime, Data = 2013-10-11T11:04:00-07:00
Node = hascutlist, Data = yes
Video resolution is 704 by 480
*************************************************************
Processing recording 1: '/var/lib/mythtv/recordings/1003_20131011180400.mpg'
*************************************************************
File type is 'mpegts'
Video codec is 'mpeg2video (Main)'
File has a cut list - running mythtranscode to remove unwanted segments
Using cutlist: ' 0-49  481-9999999 '
2013-10-11 17:15:43.696089 C  mythtranscode version: master 
[v0.28-pre-338-g9b88efe] www.mythtv.org
2013-10-11 17:15:43.696125 C  Qt version: compile: 4.8.1, runtime: 4.8.1
2013-10-11 17:15:43.696134 N  Enabled verbose msgs:  general
2013-10-11 17:15:43.696152 N  Setting Log Level to LOG_INFO
2013-10-11 17:15:43.707288 I  Added logging to the console
2013-10-11 17:15:43.708309 I  Setup Interrupt handler
2013-10-11 17:15:43.708327 I  Setup Terminated handler
2013-10-11 17:15:43.708340 I  Setup Segmentation fault handler
2013-10-11 17:15:43.708353 I  Setup Aborted handler
2013-10-11 17:15:43.708366 I  Setup Bus error handler
2013-10-11 17:15:43.708379 I  Setup Floating point exception handler
2013-10-11 17:15:43.708393 I  Setup Illegal instruction handler
2013-10-11 17:15:43.708412 I  Setup Real-time signal 0 handler
2013-10-11 17:15:43.708499 N  Using runtime prefix = /usr
2013-10-11 17:15:43.708508 N  Using configuration directory = 
/home/bob/.mythtv
2013-10-11 17:15:43.708609 I  Assumed character encoding: en_US.UTF-8
2013-10-11 17:15:43.709123 N  Empty LocalHostName.
2013-10-11 17:15:43.709136 I  Using localhost value of localhost
2013-10-11 17:15:43.742230 N  Setting QT default locale to EN_US
2013-10-11 17:15:43.742332 I  Current locale EN_US
2013-10-11 17:15:43.742425 N  Reading locale defaults from 
/usr/share/mythtv//locales/en_us.xml
2013-10-11 17:15:43.747935 I  Loading en_us translation for module 
mythfrontend
2013-10-11 17:15:43.750418 N  Transcoding from 
/var/lib/mythtv/recordings/1003_20131011180400.mpg to 
/var/lib/mytharchive/temp/work/1/newfile.mpg
2013-10-11 17:15:43.750442 I  Honoring the cutlist while transcoding
2013-10-11 17:15:43.753831 I  Opening 
/var/lib/mythtv/recordings/1003_20131011180400.mpg
2013-10-11 17:15:43.768602 I  PES packet size mismatch
2013-10-11 17:15:43.768626 I  PES packet size mismatch
2013-10-11 17:15:43.768684 I  Input #0, mpegts, from 
'/var/lib/mythtv/recordings/1003_20131011180400.mpg':
2013-10-11 17:15:43.768706 I    Duration: 00:00:24.47, start: 
16661.124889, bitrate: 3414 kb/s
2013-10-11 17:15:43.768796 I      Stream #0:0[0x800]: Video: mpeg2video 
(Main), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k 
tbn, 59.94 tbc
2013-10-11 17:15:43.768838 I      Stream #0:1[0x801](ENG): Audio: ac3 
(AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
2013-10-11 17:15:43.768862 I      Stream #0:2[0x802](ENG): Audio: ac3 
(AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 192 kb/s
2013-10-11 17:15:43.772044 I  #0 PTS:04:37:41.569 Delta: 0.0ms queue: 17
2013-10-11 17:15:43.772114 I  #1 PTS:04:37:41.540 Delta: 28.5ms queue: 3
2013-10-11 17:15:43.772140 I  #2 PTS:04:37:41.553 Delta: 15.4111ms queue: 2
2013-10-11 17:15:43.809261 I  Del map found 0 at 49 (49)
2013-10-11 17:15:43.809798 I  New Client:  (#1)
2013-10-11 17:15:43.861705 I  Converting frame #0 from B to I
2013-10-11 17:15:43.887110 I  Converting frame #1 from B to I
2013-10-11 17:15:43.996680 I  Mux rate: 15.64 Mbit/s
2013-10-11 17:15:44.174013 I  Del map found 1 at 481 (481)
2013-10-11 17:15:44.214584 I  Converting frame #0 from B to I
2013-10-11 17:15:44.232586 I  Converting frame #1 from B to I
2013-10-11 17:15:44.314839 I  PES packet size mismatch
2013-10-11 17:15:44.314962 I  PES packet size mismatch
2013-10-11 17:15:44.321403 I  Generating Keyframe Index
2013-10-11 17:15:44.321438 I  Opening 
/var/lib/mytharchive/temp/work/1/newfile.mpg
2013-10-11 17:15:44.364377 I  Input #0, mpeg, from 
'/var/lib/mytharchive/temp/work/1/newfile.mpg':
2013-10-11 17:15:44.364420 I    Duration: 00:00:14.37, start: 0.325033, 
bitrate: 3337 kb/s
2013-10-11 17:15:44.364511 I      Stream #0:0[0x1e0]: Video: mpeg2video 
(Main), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k 
tbn, 59.94 tbc
2013-10-11 17:15:44.364552 I      Stream #0:1[0x80]: Audio: ac3, 48000 
Hz, stereo, fltp, 192 kb/s
2013-10-11 17:15:44.364581 I      Stream #0:2[0x81]: Audio: ac3, 48000 
Hz, stereo, fltp, 192 kb/s
2013-10-11 17:15:44.404858 N  Transcode Completed
2013-10-11 17:15:44.406575 N  Transcoding 
/var/lib/mythtv/recordings/1003_20131011180400.mpg done
File will be re-encoded using profile LP
Input #0, mpeg, from '/var/lib/mytharchive/temp/work/1/newfile.mpg':
   Duration: 00:00:14.37, start: 0.325033, bitrate: 3337 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 704x480 [SAR 
10:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
     Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
     Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
/var/lib/mytharchive/temp/work/1/streaminfo.xml:-
<?xml version="1.0" ?><!DOCTYPE FILEINFO><file cutduration="14" 
duration="14" filename="/var/lib/mytharchive/temp/work/1/newfile.mpg" 
type="mpeg">
         <streams count="3">
                 <video aspectratio="1.33333" bitrate="0" 
codec="mpeg2video (Main)" ffmpegindex="0" fps="29.97" height="480" 
id="480" start_time="2795.461016" streamindex="0" width="704"/>
                 <audio bitrate="192000" channels="2" codec="ac3" 
ffmpegindex="1" id="128" language="N/A" samplerate="48000" 
start_time="0.29253" streamindex="1"/>
                 <audio bitrate="192000" channels="2" codec="ac3" 
ffmpegindex="2" id="129" language="N/A" samplerate="48000" 
start_time="0.30431" streamindex="2"/>
         </streams>
</file>
Preferred audio languages eng and eng
Video id: 0x1e0, Audio1: [1] 0x80 (AC3, N/A), Audio2: [-1] - 0x-1 (N/A, N/A)
Aspect ratio is 4:3
Re-encoding audio and video
Using encoder profiles from 
/usr/share/mythtv/mytharchive/encoder_profiles/ffmpeg_dvd_ntsc.xml
Encoding profile (LP) found
mythffmpeg -threads 2 -v 1 -i 
"/var/lib/mytharchive/temp/work/1/newfile.mpg" -r ntsc -target ntsc-dvd 
-b:v 2344k -s 352x480 -acodec copy -copyts -aspect 4:3 
"/var/lib/mytharchive/temp/work/1/newfile2.mpg" -map 0:0 -map 0:1
---

progress.log:
---
2013-10-11 17:15:41 mythburn.py (0.1.20130911-5) starting up...
2013-10-11 17:15:41 Found 2 CPUs
2013-10-11 17:15:41 Obtaining MythTV settings from MySQL database for 
hostname localhost
2013-10-11 17:15:41 temppath: /var/lib/mytharchive/temp/work
2013-10-11 17:15:41 logpath:  /var/lib/mytharchive/temp/logs
2013-10-11 17:15:41 Setting process priority to 17
2013-10-11 17:15:41 Cannot change ionice level
2013-10-11 17:15:41 Processing Mythburn job number 1.
2013-10-11 17:15:41 Options - mediatype = 3, doburn = 1, createiso = 1, 
erasedvdrw = 0
2013-10-11 17:15:41           savefilename = 
'/var/lib/mytharchive/temp/p-r.iso'
2013-10-11 17:15:41 Looking for: 
/usr/share/mythtv/mytharchive/themes/Simple_-_Autoplay/theme.xml
2013-10-11 17:15:41 Loading font 0, /usr/share/mythtv/fonts/FreeSans.ttf 
size 19
2013-10-11 17:15:41 Loading font 1, /usr/share/mythtv/fonts/FreeSans.ttf 
size 15
2013-10-11 17:15:41 Loading font 2, /usr/share/mythtv/fonts/FreeSans.ttf 
size 13
2013-10-11 17:15:41 wantIntro: 0, wantMainMenu: 0, wantChapterMenu: 0, 
wantDetailsPage: 0
2013-10-11 17:15:41 Final DVD Video format will be ntsc
2013-10-11 17:15:41 There are 1 file(s) to process
2013-10-11 17:15:41 Pre-processing recording 1: 
'/var/lib/mythtv/recordings/1003_20131011180400.mpg'
2013-10-11 17:15:43           Family Feud
2013-10-11 17:15:43 Node = chanid, Data = 1003
2013-10-11 17:15:43 Node = type, Data = recording
2013-10-11 17:15:43 Node = filename, Data = 
/var/lib/mythtv/recordings/1003_20131011180400.mpg
2013-10-11 17:15:43 Node = title, Data = Family Feud
2013-10-11 17:15:43 Node = recordingdate, Data = Fri  Oct  11
2013-10-11 17:15:43 Node = recordingtime, Data = 11:00 AM
2013-10-11 17:15:43 Node = subtitle, Data =
2013-10-11 17:15:43 Node = description, Data =
2013-10-11 17:15:43 Node = rating, Data = 0.0
2013-10-11 17:15:43 Node = coverfile, Data =
2013-10-11 17:15:43 Node = cutlist, Data =
2013-10-11 17:15:43 Node = starttime, Data = 2013-10-11T11:04:00-07:00
2013-10-11 17:15:43 Node = hascutlist, Data = yes
2013-10-11 17:15:43 Video resolution is 704 by 480
2013-10-11 17:15:43 
*************************************************************
2013-10-11 17:15:43 Processing recording 1: 
'/var/lib/mythtv/recordings/1003_20131011180400.mpg'
2013-10-11 17:15:43 
*************************************************************
2013-10-11 17:15:43 File type is 'mpegts'
2013-10-11 17:15:43 Video codec is 'mpeg2video (Main)'
2013-10-11 17:15:43 File has a cut list - running mythtranscode to 
remove unwanted segments
2013-10-11 17:15:43 Using cutlist: ' 0-49  481-9999999 '
2013-10-11 17:15:44 File will be re-encoded using profile LP
2013-10-11 17:15:45 Preferred audio languages eng and eng
2013-10-11 17:15:45 Video id: 0x1e0, Audio1: [1] 0x80 (AC3, N/A), 
Audio2: [-1] - 0x-1 (N/A, N/A)
2013-10-11 17:15:45 Aspect ratio is 4:3
2013-10-11 17:15:45 Re-encoding audio and video
2013-10-11 17:15:45 Using encoder profiles from 
/usr/share/mythtv/mytharchive/encoder_profiles/ffmpeg_dvd_ntsc.xml
2013-10-11 17:15:45 Encoding profile (LP) found
2013-10-11 17:15:45 mythffmpeg -threads 2 -v 1 -i 
"/var/lib/mytharchive/temp/work/1/newfile.mpg" -r ntsc -target ntsc-dvd 
-b:v 2344k -s 352x480 -acodec copy -copyts -aspect 4:3 
"/var/lib/mytharchive/temp/work/1/newfile2.mpg" -map 0:0 -map 0:1
---

Bob Shanteau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20131011/ba6ffbf7/attachment.html>


More information about the mythtv-users mailing list