[mythtv-users] mythcommflag segfaulting (still)

Robert Kulagowski rkulagow at gmail.com
Thu Aug 23 16:45:57 UTC 2012


On Tue, Aug 21, 2012 at 1:57 PM, Kenneth Emerson
<kenneth.emerson at gmail.com> wrote:
> I recently reviewed ticket #10222 (closed/won't fix) regarding the segfaults
> in mythcommflag.  I am still seeing numerous segfaults in my recordings.  So
> I'm starting on the USERS list to solicit others' experiences with
> commflagging.  On a lark, I sorted my recordings by channel and got this
> information:
>
> FXHD -- Seems to always work (HDHR Prime)
> HGTVHD -- Always fails (HDHR Prime)
> TLCHD -- Almost always fails (1 out of 20 succeeded) (HDHR Prime)
> DISCOVERYHD -- Almost always fails (2 out 30 succeeded) (HDHR Prime)
> SCIFIHD -- Always fails (HDHR Prime)
> USAHD -- Always fails (HDHR Prime)
> TNTHD -- Alwyas fails (since Dec 2011 -- always worked prior) (HDHR Prime)
> FOXHD -- Always works (OTA)
> WQADHD -- Always works (OTA)
> KWQCHD -- Always works (OTA)
> WHBF HD -- Always works (OTA)
>
> Lo and behold, I'm beginning to see a pattern.  All of my recordings (with
> exception of FXHD) from the HDHR Prime (w/ cable card) fail.  All of my OTA
> recordings succeed.  Any other people want to share their results?  Anyone
> have an idea of what's happening (with, for extra points, how to fix it)?
> Is this the cable company switching resolutions at commercial breaks,
> breaking ffmpeg decoding?
>
> It's really annoying during the summer since 75% of what we watch is off
> cable.  During the "regular" TV season, it's reversed.  BTW: All of the
> recordings off the HDHR Prime are watchable -- the occasional, brief signal
> breakup but nothing that anyone would complain about or even notice.

Me Too.

The pattern that I see is that _none_ of the recordings that I get
from HDHR-Prime can be losslessly transcoded; doesn't matter whether
it's HD or SD.

Running a transcode gets me:

 mythtranscode[17352]: N CoreContext main.cpp:551 (main) Transcoding
from /mnt/d4/video/3033_20120623125700.mpg to
/mnt/d4/video/3033_20120623125700.mpg.tmp
 mythtranscode[17352]: I Logger logging.cpp:447 (initialTimeout) Added
logging to mythlogserver at TCP:35327
 mythtranscode[17352]: I ProgramInfoUpdater mythcorecontext.cpp:375
(ConnectCommandSocket) MythCoreContext: Connecting to backend server:
192.168.10.10:6543 (try 1 of 1)
 mythtranscode[17352]: I ProgramInfoUpdater mythcorecontext.cpp:1191
(CheckProtoVersion) Using protocol version 75
 mythtranscode[17352]: I CoreContext avformatdecoder.cpp:2141
(ScanStreams) AFD: Opened codec 0x24fc420, id(MPEG2VIDEO) type(Video)
 mythtranscode[17352]: I CoreContext avformatdecoder.cpp:1999
(ScanStreams) AFD: codec AC3 has 2 channels
 mythtranscode[17352]: I CoreContext avformatdecoder.cpp:2141
(ScanStreams) AFD: Opened codec 0x24fcd80, id(AC3) type(Audio)
 mythtranscode[17352]: N CoreContext audioplayer.cpp:167 (ReinitAudio)
AudioPlayer: Enabling Audio
 mythtranscode[17352]: I CoreContext transcode.cpp:955 (TranscodeFile)
Honoring the cutlist while transcoding
 mythtranscode[17352]: I CoreContext transcode.cpp:988 (TranscodeFile)
Cutlist        :
0-5128,24654-28421,36240-42365,53140-60774,70794-76129,91015-96810,109954-114817
 mythtranscode[17352]: I CoreContext transcode.cpp:990 (TranscodeFile)
Original Length: 114817 frames
 mythtranscode[17352]: I CoreContext transcode.cpp:992 (TranscodeFile)
New Length     : 76170 frames
 mythtranscode[17352]: N CoreContext transcode.cpp:774 (GetProfile)
Transcode: Looking for autodetect profile: Autodetect from 480i
 mythtranscode[17352]: E CoreContext recordingprofile.cpp:164
(addSelection) SampleRate: Attempted to add a rate 32000 Hz, which is
not in the list of allowed rates.
 mythtranscode[17352]: N CoreContext transcode.cpp:799 (GetProfile)
Transcode: Using autodetect profile: MPEG2
 mythtranscode[17352]: N CoreContext transcode.cpp:1273
(TranscodeFile) Switching to MPEG-2 transcoder.
 mythtranscode[17352]: I SystemIOHandlerW system-unix.cpp:90 (run)
Starting IO manager (write)
 mythtranscode[17352]: I SystemIOHandlerR system-unix.cpp:90 (run)
Starting IO manager (read)
 mythtranscode[17352]: I SystemSignalManager system-unix.cpp:488 (run)
Starting process signal handler
 mythtranscode[17352]: I SystemManager system-unix.cpp:263 (run)
Starting process manager
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:738 (InitAV) Opening
/mnt/d4/video/3033_20120623125700.mpg
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:77 (my_av_print) PES
packet size mismatch
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:77 (my_av_print)
Input #0, mpegts, from '/mnt/d4/video/3033_20120623125700.mpg':
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:77 (my_av_print)
Duration: 01:05:43.01, start: 92065.011989, bitrate: 2780 kb/s
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:77 (my_av_print)
Stream #0:0[0xa00]: Video: mpeg2video (Main), yuv420p, 704x480 [SAR
10:11 DAR 4:3], 15000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tb
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:77 (my_av_print)
Stream #0:1[0xa01](eng): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:1937 (Start) #0
PTS:25:34:25.485 Delta: 0.0ms queue: 14
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:1946 (Start) #1
PTS:25:34:25.459 Delta: 25.6333ms queue: 2
 mythtranscode[17352]: I CoreContext mpeg2fix.cpp:2137 (Start) Del map
found 0 at 5128 (5128)
 mythtranscode[17352]: E CoreContext mpeg2fix.cpp:1178 (BuildFrame)
avcodec_encode_video failed (0)
 mythtranscode[17352]: E CoreContext main.cpp:692 (main) Transcoding
/mnt/d4/video/3033_20120623125700.mpg failed
 mythtranscode[17352]: N CoreContext main.cpp:786 (WaitToDelete)
Transcode: delete old file: waiting while program is in use.
 mythtranscode[17352]: N CoreContext main.cpp:818 (WaitToDelete)
Transcode: program is no longer in use.
 mythtranscode[17352]: N CoreContext main.cpp:1050 (CompleteJob)
Deleting /mnt/d4/video/3033_20120623125700.mpg.tmp
 mythtranscode[17352]: N CoreContext main.cpp:717 (transUnlink)
Requesting delete for file
'myth://Default@192.168.10.10:6543/3033_20120623125700.mpg.tmp'.
 mythtranscode[17352]: I CoreContext mythcontext.cpp:1169
(~MythContext) Waiting for threads to exit.


More information about the mythtv-users mailing list