<div dir="ltr"><div>I am having difficulty getting closed captions to display on H264 recordings within Mythtv (fixes/28).  VLC does display these when playing Myth's recordings. <br><br>The problem occurs on two separate combined Back/Front Ends (Mythbuntu/Ubuntu distro versions) and one remote FE (debian/deb-multimedia). <br><br>Mythbackend-1<br>MythTV Version : v0.28.1-33-gec95cbd<br>MythTV Branch : fixes/0.28<br>Network Protocol : 88<br>Library API : 0.28.20161120-1<br>QT Version : 5.5.1<br>Options compiled in:<br> linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_sdl using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2<br><br>Mythbackend-2 - not as up-to-date as the others - it does record H264 CC (V4L modules locally compiled against the stock kernel)<br>MythTV Version : v0.28-104-g3930f5d<br>MythTV Branch : fixes/0.28                                                                                                                                                                                                                                                     <br>Network Protocol : 88                                                                                                                                                                                                                                                          <br>Library API : 0.28.20161120-1                                                                                                                                                                                                                                                  <br>QT Version : 5.5.1                                                                                                                                                                                                 <br>Options compiled in:                                                                                                                                                                                                                                                           <br> linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_sdl using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2<br><br>remote frontend<br>MythTV Version : 03f4403<br>MythTV Branch : fixes/0.28<br>Network Protocol : 88<br>Library API : 0.28.20161120-1<br>QT Version : 5.7.1<br>Options compiled in:<br> linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2<br><br><br>My configuration:<br><br>    I do not see anything in the current backend configuratrion/setup options other than VBI format - that is set to NTSC Closed Caption.  <br><br>    The subtitle codec in the FE setup -> video ->playbackOSD -> subtitle codec is set to UTF8 by default.  I do not see another obvious option relating to CEA-608/708 but the remote FE does report those are being used on an ASTC recording and the H264 codec was opened with no errors reported at the "general" level on the remote FE.<br><br><a href="https://code.mythtv.org/trac/ticket/11932">https://code.mythtv.org/trac/ticket/11932</a> and <a href="https://code.mythtv.org/trac/ticket/12893">https://code.mythtv.org/trac/ticket/12893</a>  suggest  H264 should work, <br>but,  I also see <br><a href="https://code.mythtv.org/trac/ticket/13016">https://code.mythtv.org/trac/ticket/13016</a>  -  We do not have DVB-C, but we do notice many programs with a lot missing in the ASTC CC.  Our H264 problem affects FTA-DVB-S2 recordings - nothing is displayed.<br><br><br>Obvious errors found in the logs <br><br>I am ignoring these:<br>- lirc errors -  we do not use a IR remote<br>- some failed CRC checks  (on some dialog in some programs) which I have always assumed was some static/interference in the OTA signal causing the CC content to be scrambled/missing - the video is generally good quality in these recordings.  I will keep a closer watch on these now though.<br>-some alsa errors which seem to come and go (over a number of months).  The sound does work. <br><br>mythfrontend -v vbi does not report any errors other than 4 relating to alsa:   <br>    E  ALSA: snd_pcm_info_get_card: Operation not permitted<br>    ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL /dev/mixer<br>    E  ALSA: failed to register mixer device /dev/mixer: No such file or directory<br>    E  ALSA: Unable to open audio mixer. Volume control disabled<br><br>    <br>The errors below are the ones I have tried to explore as they seem to be possibly related to the CC issue:<br><br>-Along with the others the remote front end seems to be having difficulties with loading fonts listed in  /usr/share/mythtv/themes/default/osd_subtitle.xml    It nags, but does display ASTC closed captions. For example:<br><br>2017-07-05 10:35:37.416642 I  ###    7163393 14 0 0  0 1   6 - ''<br>2017-07-05 10:35:37.478947 I  Adding cc708 chunk: win 0 row 0: fg=#ffffff.255 bg=#000000.255 edge=#000000.0 off=1 pensize=1 it=0 ul=0 bf=0 font=3  text='  Previously on "Blindspot"...  '<br>2017-07-05 10:35:37.484938 I  ###    7163359 14 0 0  0 1  65 - '           [7020](Patterson)<br>  [7020]Previously on "Blindspot"...'<br>2017-07-05 10:35:37.494626 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead<br>                        Location: /usr/share/mythtv/themes/default/osd_subtitle.xml @ 42<br>                        Name: 'text'    Type: 'fontdef'<br>                etc. 8x with the different fonts.<br>                        <br>In part, this occurs due to broken links in the pattern:<br>                  <br> /usr/share/mythtv/themes/MythCenter-wide/fonts$ ls -la<br>drwxr-xr-x 2 root root 4096 Jun 14 10:29 .<br>drwxr-xr-x 9 root root 4096 Jun 14 10:29 ..<br>lrwxrwxrwx 1 root root   51 May 27 04:26 DroidSans-Bold.ttf -> ../../../../fonts/truetype/droid/DroidSans-Bold.ttf<br>lrwxrwxrwx 1 root root   46 May 27 04:26 DroidSans.ttf -> ../../../../fonts/truetype/droid/DroidSans.ttf<br><br>as the targets are not in that directory<br><br>/usr/share/mythtv/themes/MythCenter-wide/fonts$ ls -la ../../../../fonts/truetype/droid/<br>total 3948<br>drwxr-xr-x  2 root root    4096 Mar 11 09:26 .<br>drwxr-xr-x 54 root root    4096 Dec  7  2016 ..<br>-rw-r--r--  1 root root 4033420 Feb 13  2016 DroidSansFallbackFull.ttf<br><br>I appear to have fixed one backend (#1) by changing the 4 Droid fonts (listed in the themes directory) to that one font file<br>  but ...  <br>   on the remote front end (with only 2 Droid fonts in that theme directory ) there seems to be a bigger/different/additional problem as just fixing the links did not stop the nagging for even the two links that were fixed.  I ve glanced at the rest of the xml files there, but ...<br><br><br>mythfrontend -v all  generates a lot of output. I have pasted one section of the output below that seems appropriate and appears to show what is happening with a H264 file.<br><br>I am not sure where to go next.    <br><br>Is the H264 issue a bug or am I missing a setting that creates this behavior?  <br><br></div><div>While I could update Myth#2, I don't think that is the problem - vlc does display the subtitles it records while myth on nearly up-to-date machines does not. <br><br>Thanks for any advice.<br><br>Wayne<br><br><br><br>Output from mythfrontend -v all  - after starting a recording with H264 on the remote FE.<br> <br>2017-07-06 07:37:24.300030 I  Player(0): ClearAfterSeek(0)<br>2017-07-06 07:37:24.300046 I  Player(0): A/V sync reset<br>2017-07-06 07:37:24.300056 I  Player(0): Waiting for video buffers...<br>2017-07-06 07:37:24.307976 I  MythSocket(55db4672c8c0:47): read  <- 47 6       524288<br>2017-07-06 07:37:24.308028 E  [h264 @ 0x7f5f68d4d740] decode_slice_header error<br>2017-07-06 07:37:24.308962 E  [h264 @ 0x7f5f68d4d740] reference picture missing during reorder<br>2017-07-06 07:37:24.308973 E  [h264 @ 0x7f5f68d4d740] Missing reference picture, default is 2147483647<br>2017-07-06 07:37:24.323576 I  RingBuf(myth://Videos@rock/testsubtitle.ts): safe_read(...@524288, 524288) -> 524288, took 46 ms (91.1805Mbps) avg 186 ms<br>2017-07-06 07:37:24.328726 I  MythSocket(55db4672c8c0:47): write -> 47 50      QUERY_FILETRANSFER 84[]:[]REQUEST_BLOCK[]:[]524288<br>2017-07-06 07:37:24.337703 E  [h264 @ 0x7f5f68d4d740] mmco: unref short failure<br>2017-07-06 07:37:24.359051 I  MythSocket(55db4672c8c0:47): read  <- 47 6       524288<br>2017-07-06 07:37:24.375185 I  RingBuf(myth://Videos@rock/testsubtitle.ts): safe_read(...@1048576, 524288) -> 524288, took 46 ms (91.1805Mbps) avg 172 ms<br>2017-07-06 07:37:24.378759 E  [h264 @ 0x7f5f68d4d740] reference picture missing during reorder<br>2017-07-06 07:37:24.378766 E  [h264 @ 0x7f5f68d4d740] reference picture missing during reorder<br>2017-07-06 07:37:24.378773 E  [h264 @ 0x7f5f68d4d740] Missing reference picture, default is 65674<br>2017-07-06 07:37:24.378777 E  [h264 @ 0x7f5f68d4d740] Missing reference picture, default is 65674<br>2017-07-06 07:37:24.380319 I  MythSocket(55db4672c8c0:47): write -> 47 50      QUERY_FILETRANSFER 84[]:[]REQUEST_BLOCK[]:[]524288<br>2017-07-06 07:37:24.394230 E  [h264 @ 0x7f5f68d4d740] mmco: unref short failure<br>2017-07-06 07:37:24.394239 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394249 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394256 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394263 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394269 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394276 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394283 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394289 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394296 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394302 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394308 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394315 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394321 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394327 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394333 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.394340 I  WriteAudio: Preparing 3072 bytes (384 frames)<br>2017-07-06 07:37:24.404945 N  Player(0): Waited 104ms for video buffers AAAAAAALAAALAALLLAAAAAAAAAAAAAAP<br>2017-07-06 07:37:24.410617 I  MythSocket(55db4672c8c0:47): read  <- 47 6       524288<br>2017-07-06 07:37:24.415017 E  [h264 @ 0x7f5f68d4d740] mmco: unref short failure<br>2017-07-06 07:37:24.426816 I  RingBuf(myth://Videos@rock/testsubtitle.ts): safe_read(...@1572864, 524288) -> 524288, took 46 ms (91.1805Mbps) avg 159 ms<br>2017-07-06 07:37:24.431913 I  RingBuf(myth://Videos@rock/testsubtitle.ts): Avg read interval was 148 msec. 512K -> 512K block size<br>2017-07-06 07:37:24.431976 I  MythSocket(55db4672c8c0:47): write -> 47 50      QUERY_FILETRANSFER 84[]:[]REQUEST_BLOCK[]:[]524288<br>2017-07-06 07:37:24.447917 E  [h264 @ 0x7f5f68d4d740] reference picture missing during reorder<br>2017-07-06 07:37:24.447926 E  [h264 @ 0x7f5f68d4d740] Missing reference picture, default is 65682<br>2017-07-06 07:37:24.459295 E  [h264 @ 0x7f5f68d4d740] mmco: unref short failure<br>2017-07-06 07:37:24.462461 I  MythSocket(55db4672c8c0:47): read  <- 47 6       524288<br>2017-07-06 07:37:24.478356 I  RingBuf(myth://Videos@rock/testsubtitle.ts): safe_read(...@2097152, 524288) -> 524288, took 46 ms (91.1805Mbps) avg 225 ms<br>2017-07-06 07:37:24.483487 I  MythSocket(55db4672c8c0:47): write -> 47 50      QUERY_FILETRANSFER 84[]:[]REQUEST_BLOCK[]:[]524288<br>2017-07-06 07:37:24.505419 N  Player(0): Waited 205ms for video buffers AAAAAAAAAAALAAAAALALALAAAAAALAAP<br>2017-07-06 07:37:24.508873 I  AFD: positionMap[ 1923 ] == 107566268.<br>2017-07-06 07:37:24.513677 I  MythSocket(55db4672c8c0:47): read  <- 47 6       524288<br>2017-07-06 07:37:24.529940 I  RingBuf(myth://Videos@rock/testsubtitle.ts): safe_read(...@2621440, 524288) -> 524288, took 46 ms (91.1805Mbps) avg 207 ms<br>2017-07-06 07:37:24.535068 I  MythSocket(55db4672c8c0:47): write -> 47 50      QUERY_FILETRANSFER 84[]:[]REQUEST_BLOCK[]:[]524288<br>2017-07-06 07:37:24.565385 I  MythSocket(55db4672c8c0:47): read  <- 47 6       524288<br>2017-07-06 07:37:24.581487 I  RingBuf(myth://Videos@rock/testsubtitle.ts): safe_read(...@3145728, 524288) -> 524288, took 46 ms (91.1805Mbps) avg 191 ms<br>2017-07-06 07:37:24.586617 I  MythSocket(55db4672c8c0:47): write -> 47 50      QUERY_FILETRANSFER 84[]:[]REQUEST_BLOCK[]:[]524288<br>2017-07-06 07:37:24.601772 I  AFD: video timecode 3143583453 34928705 34928705 0<br>2017-07-06 07:37:24.603000 I  AOBase: AddData frames=1536, bytes=12288, used=1, free=10239935, timecode=34928728 needsupmix=0<br><br><br></div></div>