<div dir="ltr">Running a broken recording through handbrake did recover the sound, but it was no longer in sync after the "glitch point."<div><br></div><div><p style="font-size:12.8px">HandBrakeCLI -i /var/lib/mythtv/recordings/1231_20160205172900.mpg -o moo</p><p style="font-size:12.8px">Output format can't be guessed from file name (moo), using default.</p><p style="font-size:12.8px">[13:12:54] hb_init: starting libhb thread</p><p style="font-size:12.8px">HandBrake 0.10.3 <a href="tel:%282016012400" value="+12016012400" target="_blank">(2016012400</a>) - Linux x86_64 - <a href="https://handbrake.fr/" target="_blank">https://handbrake.fr</a></p><p style="font-size:12.8px">4 CPUs detected</p><p style="font-size:12.8px">Opening /var/lib/mythtv/recordings/1231_20160205172900.mpg...</p><p style="font-size:12.8px">[13:12:54] CPU: </p><p style="font-size:12.8px">[13:12:54]  - logical processor count: 4</p><p style="font-size:12.8px">[13:12:54] OpenCL: library not available</p><p style="font-size:12.8px">[13:12:54] hb_scan: path=/var/lib/mythtv/recordings/1231_20160205172900.mpg, title_index=1</p><p style="font-size:12.8px">libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /var/lib/mythtv/recordings/1231_20160205172900.mpg/BDMV/index.bdmv</p><p style="font-size:12.8px">libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /var/lib/mythtv/recordings/1231_20160205172900.mpg/BDMV/BACKUP/index.bdmv</p><p style="font-size:12.8px">libbluray/bluray.c:2182: nav_get_title_list(/var/lib/mythtv/recordings/1231_20160205172900.mpg) failed</p><p style="font-size:12.8px">[13:12:54] bd: not a bd - trying as a stream/file instead</p><p style="font-size:12.8px">libdvdnav: Using dvdnav version 5.0.1</p><p style="font-size:12.8px">libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed</p><p style="font-size:12.8px">libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed</p><p style="font-size:12.8px">libdvdread: Can't open file VIDEO_TS.IFO.</p><p style="font-size:12.8px">libdvdnav: vm: failed to read VIDEO_TS.IFO</p><p style="font-size:12.8px">[13:12:54] dvd: not a dvd - trying as a stream/file instead</p><p style="font-size:12.8px">[13:12:54] file is MPEG Transport Stream with 188 byte packets offset 0 bytes</p><p style="font-size:12.8px">[13:12:54] Found the following PIDS</p><p style="font-size:12.8px">[13:12:54]     Video PIDS : </p><p style="font-size:12.8px">[13:12:54]       0x411 type MPEG2 (0x2) (PCR)</p><p style="font-size:12.8px">[13:12:54]     Audio PIDS : </p><p style="font-size:12.8px">[13:12:54]       0x412 type AC3 (0x81)</p><p style="font-size:12.8px">[13:12:54]     Subtitle PIDS : </p><p style="font-size:12.8px">[13:12:54]     Other PIDS : </p><p style="font-size:12.8px">[13:12:54] stream id 0x412 (type 0x81 substream 0x0) audio 0x412</p><p style="font-size:12.8px">[13:12:54] scan: decoding previews for title 1</p><p style="font-size:12.8px">[13:12:54] file is MPEG Transport Stream with 188 byte packets offset 0 bytes</p><p style="font-size:12.8px">[13:12:54] scan: audio 0x412: ac3, rate=48000Hz, bitrate=192000 Unknown (AC3) (2.0 ch)</p><p style="font-size:12.8px">Scanning title 1 of 1, preview 7, 70.00 %[13:12:55] stream: 21 good frames, 0 errors (0%)</p><p style="font-size:12.8px">[13:12:55] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 12/0/0/0, aspect 16:9, PAR 1:1</p><p style="font-size:12.8px">[13:12:55] libhb: scan thread found 1 valid title(s)</p><p style="font-size:12.8px">+ title 1:</p><p style="font-size:12.8px">  + stream: /var/lib/mythtv/recordings/1231_20160205172900.mpg</p><p style="font-size:12.8px">  + duration: 00:30:07</p><p style="font-size:12.8px">  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps</p><p style="font-size:12.8px">  + autocrop: 12/0/0/0</p><p style="font-size:12.8px">  + support opencl: no</p><p style="font-size:12.8px">  + support hwd: not built-in</p><p style="font-size:12.8px">  + chapters:</p><p style="font-size:12.8px">    + 1: cells 0->0, 0 blocks, duration 00:30:07</p><p style="font-size:12.8px">  + audio tracks:</p><p style="font-size:12.8px">    + 1, Unknown (AC3) (2.0 ch) (iso639-2: und), 48000Hz, 192000bps</p><p style="font-size:12.8px">  + subtitle tracks:</p><p style="font-size:12.8px">    + 1, Closed Captions (iso639-2: und) (Text)(CC)</p><p style="font-size:12.8px">[13:12:55] 1 job(s) to process</p><p style="font-size:12.8px">[13:12:55] starting job</p><p style="font-size:12.8px">[13:12:55] work: mixdown not specified, track 1 setting mixdown Stereo</p><p style="font-size:12.8px">[13:12:55] work: bitrate not specified, track 1 setting bitrate 160 Kbps</p><p style="font-size:12.8px">[13:12:55] sync: expecting 54176 video frames</p><p style="font-size:12.8px">[13:12:55] job configuration:</p><p style="font-size:12.8px">[13:12:55]  * source</p><p style="font-size:12.8px">[13:12:55]    + /var/lib/mythtv/recordings/1231_20160205172900.mpg</p><p style="font-size:12.8px">[13:12:55]    + title 1, chapter(s) 1 to 1</p><p style="font-size:12.8px">[13:12:55]  * destination</p><p style="font-size:12.8px">[13:12:55]    + moo</p><p style="font-size:12.8px">[13:12:55]    + container: MPEG-4 (libavformat)</p><p style="font-size:12.8px">[13:12:55]  * video track</p><p style="font-size:12.8px">[13:12:55]    + decoder: mpeg2video</p><p style="font-size:12.8px">[13:12:55]      + bitrate 13500 kbps</p><p style="font-size:12.8px">[13:12:55]    + filters</p><p style="font-size:12.8px">[13:12:55]      + Framerate Shaper (0:27000000:900900)</p><p style="font-size:12.8px">[13:12:55]        + frame rate: same as source (around 29.970 fps)</p><p style="font-size:12.8px">[13:12:55]      + Crop and Scale (1920:1068:12:0:0:0)</p><p style="font-size:12.8px">[13:12:55]        + source: 1920 * 1080, crop (12/0/0/0): 1920 * 1068, scale: 1920 * 1068</p><p style="font-size:12.8px">[13:12:55]    + dimensions: 1920 * 1068, mod 0</p><p style="font-size:12.8px">[13:12:55]    + encoder: MPEG-4 (libavcodec)</p><p style="font-size:12.8px">[13:12:55]      + bitrate: 1000 kbps, pass: 0</p><p style="font-size:12.8px">[13:12:55]  * audio track 1</p><p style="font-size:12.8px">[13:12:55]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x412)</p><p style="font-size:12.8px">[13:12:55]      + bitrate: 192 kbps, samplerate: 48000 Hz</p><p style="font-size:12.8px">[13:12:55]    + mixdown: Stereo</p><p style="font-size:12.8px">[13:12:55]    + encoder: AAC (libavcodec)</p><p style="font-size:12.8px">[13:12:55]      + bitrate: 160 kbps, samplerate: 48000 Hz</p><p style="font-size:12.8px">[13:12:55] file is MPEG Transport Stream with 188 byte packets offset 0 bytes</p><p style="font-size:12.8px">[13:12:55] encavcodecInit: MPEG-4 ASP encoder</p><p style="font-size:12.8px">[13:12:55] reader: first SCR 3269021579 id 0x411 DTS 3269021579</p><p style="font-size:12.8px">[13:12:55] mpeg2video: "Chapter 1" (1) at frame 0 time 9009</p><p style="font-size:12.8px">[13:12:55] sync: first pts is 9009</p><p style="font-size:12.8px">Encoding: task 1 of 1, 6.26 % (52.42 fps, avg 64.87 fps, ETA 00h13m03s)[13:13:47] stream: error near frame 3440: continuity error: got 13 expected 12</p><p style="font-size:12.8px">Encoding: task 1 of 1, 12.85 % (64.35 fps, avg 62.97 fps, ETA 00h12m30s)[13:14:46] stream: error near frame 7006: continuity error: got 15 expected 14</p><p style="font-size:12.8px">[13:14:46] sync: audio 0x412 time went backwards 63 ms, dropped 2 frames (start 10425609, next 10431360)</p><p style="font-size:12.8px">Encoding: task 1 of 1, 12.93 % (65.07 fps, avg 62.95 fps, ETA 00h12m29s)[13:14:46] Broken timestamps detected.  Reordering.</p><p style="font-size:12.8px">Encoding: task 1 of 1, 12.95 % (65.07 fps, avg 62.95 fps, ETA 00h12m29s)[13:15:11] sync: video time didn't advance - dropped 3530 frames (delta 117784 ms, current 21080049, next 21080058, dur 9)</p><p style="font-size:12.8px">Encoding: task 1 of 1, 32.81 % (56.71 fps, avg 56.71 fps, ETA 00h10m42s)[13:18:09] stream: error near frame 21381: continuity error: got 11 expected 13</p><p style="font-size:12.8px">Encoding: task 1 of 1, 32.85 % (56.71 fps, avg 56.71 fps, ETA 00h10m42s)[13:18:09] sync: audio 0x412 time went backwards 95 ms, dropped 3 frames (start 53556523, next 53565120)</p><p style="font-size:12.8px">Encoding: task 1 of 1, 32.93 % (55.18 fps, avg 56.70 fps, ETA 00h10m41s)[13:18:10] sync: video time didn't advance - dropped 1 frames (delta 0 ms, current 53611557, next 53614560, dur 3003)</p><p style="font-size:12.8px">Encoding: task 1 of 1, 65.98 % (72.71 fps, avg 59.89 fps, ETA 00h05m08s)[13:22:52] stream: error near frame 39331: continuity error: got 1 expected 0</p><p style="font-size:12.8px">Encoding: task 1 of 1, 95.98 % (64.31 fps, avg 62.24 fps, ETA 00h00m35s)[13:26:50] hb_ts_stream_decode - eof</p><p style="font-size:12.8px">[13:26:50] reader: done. 41 scr changes</p><p style="font-size:12.8px">Encoding: task 1 of 1, 96.08 % (64.74 fps, avg 62.25 fps, ETA 00h00m34s)[13:26:51] work: average encoding speed for job is 62.250374 fps</p><p style="font-size:12.8px">[13:26:51] sync: got 52051 frames, 54176 expected</p><p style="font-size:12.8px">[13:26:51] render: lost time: 0 (0 frames)</p><p style="font-size:12.8px">[13:26:51] render: gained time: 0 (0 frames) (0 not accounted for)</p><p style="font-size:12.8px">Encoding: task 1 of 1, 96.08 % (64.74 fps, avg 62.25 fps, ETA 00h00m34s)[13:26:52] mpeg2video-decoder done: 55582 frames, 0 decoder errors, 0 drops</p><p style="font-size:12.8px">[13:26:52] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops</p><p style="font-size:12.8px">[13:26:52] mux: track 0, 52051 frames, 372711729 bytes, 1715.72 kbps, fifo 4096</p><p style="font-size:12.8px">[13:26:52] mux: track 1, 55997 frames, 23908021 bytes, 110.06 kbps, fifo 4096</p><p style="font-size:12.8px">[13:26:52] stream: 55585 good frames, 9 errors (0%)</p><p style="font-size:12.8px">[13:26:52] libhb: work result = 0</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">Encode done!</p><p style="font-size:12.8px"><br></p><p style="font-size:12.8px">HandBrake has exited.</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 6:16 PM, Mike Perkins <span dir="ltr"><<a href="mailto:mikep@randomtraveller.org.uk" target="_blank">mikep@randomtraveller.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03/02/16 21:08, Jason Zarin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Mark Perkins perkins1724 at <a href="http://hotmail.com" rel="noreferrer" target="_blank">hotmail.com</a><br>
Wed Feb 3 20:33:12 UTC 2016<br>
Previous message (by thread): [mythtv-users] ProcessPAT: Program not found<br>
in PAT. Desired program # not found in PAT<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So just to clarify, you have working audio and video in the recording up<br>
</blockquote>
to some "point" where the audio disappears and the file is corrupted in<br>
some fashion but video is still present?<br>
<br>
Exactly. Right at the point that the error log occurs there's a slight<br>
video glitch in the recording. From that point on, video returns to normal<br>
but audio is gone. I use kodi as a frontend, and the video will continue to<br>
play, silently. If you try to select an audio track, it won't let you (the<br>
audio track list is greyed out) (kodi selecting audio tracks works fine<br>
w/unaffected mythtv recordings).<br>
<br>
The affected mpg file will crash VLC when it gets to the "glitch". It will<br>
load in mplayer, but shows 0 audio tracks.<br>
<br>
I've download the affected mpg files to my non-myththv computer to see if<br>
it's a linux-specific thing that causes the file not to play. But when<br>
downloaded to my mac, at least, the affected mpg recordings won't play<br>
either. "Normal" mpg files download from the mythtv backend play perfectly<br>
on that mac.<br>
<br>
</blockquote></span>
(snip)<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
</blockquote>
You could try running your file(s) through Handbrake as a test, just doing video copy/ audio copy. Handbrake seems to have the ability to "repair" certain levels of glitch or transmission corruption.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
<br>
Mike Perkins<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</font></span></blockquote></div><br></div>