[mythtv-users] Issue with HLS streaming

Mythtv-Users Watson mythtv-users at needhammarket.co.uk
Mon Apr 1 22:03:06 UTC 2019


Apologies for replying to my own email, but I forgot to add that I am using
Ubuntu and installing from ppa:mythbuntu/30

Could this be the problem - no libx264 or hls options compiled in?

$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v30.0
MythTV Branch :
Network Protocol : 91
Library API : 30.20181231-1
QT Version : 5.9.5
Options compiled in:
 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_xnvctrl
using_xnvctrl_external using_libbluray_external using_xrandr using_xv
using_profiletype using_systemd_notify using_systemd_journal
using_bindings_perl using_bindings_python using_bindings_php
using_freetype2 using_mythtranscode using_opengl using_vaapi using_vaapi2
using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2
using_libmp3lame


On Mon, 1 Apr 2019 at 22:55, Mythtv-Users Watson <
mythtv-users at needhammarket.co.uk> wrote:

> I have recently built a new system, installing 30.0 and importing an old
> database.
>
> I want to use Dan Freys MythTV Player, so created the 'streaming' storage
> group within the database, which did not previously exist.
>
> Streaming to MythTV Player is not working and neither is using the Play in
> Browser option of MythTV WebFrontend.
>
> mythbackend.log shows the following:
>
> Apr  1 22:48:42 ford mythbackend: mythbackend[6911]: W HTTPLiveStream
> HLS/httplivestream.cpp:85 (run) HLS(): Command '/usr/bin/mythtranscode
> --hls --hlsstreamid 21 --verbose general --loglevel info --quiet --syslog
> local7' returned 139
>
> Running the same command manually, but with more logging shows:
>
> $ /usr/bin/mythtranscode --hls --hlsstreamid 21 --verbose record
> --loglevel debug
> 2019-04-01 22:50:33.212945 C  mythtranscode version:  [v30.0]
> www.mythtv.org
> 2019-04-01 22:50:33.212982 C  Qt version: compile: 5.9.5, runtime: 5.9.5
> 2019-04-01 22:50:33.212988 N  Enabled verbose msgs:  general record
> 2019-04-01 22:50:33.213001 N  Setting Log Level to LOG_DEBUG
> 2019-04-01 22:50:33.223900 I  Added logging to the console
> 2019-04-01 22:50:33.224389 I  Setup Interrupt handler
> 2019-04-01 22:50:33.224406 I  Setup Terminated handler
> 2019-04-01 22:50:33.224416 I  Setup Segmentation fault handler
> 2019-04-01 22:50:33.224427 I  Setup Aborted handler
> 2019-04-01 22:50:33.224435 I  Setup Bus error handler
> 2019-04-01 22:50:33.224446 I  Setup Floating point exception handler
> 2019-04-01 22:50:33.224455 I  Setup Illegal instruction handler
> 2019-04-01 22:50:33.224470 I  Setup Real-time signal 0 handler
> 2019-04-01 22:50:33.224479 I  Setup Hangup handler
> 2019-04-01 22:50:33.225125 N  Using runtime prefix = /usr
> 2019-04-01 22:50:33.225131 N  Using configuration directory =
> /home/mythtv/.mythtv
> 2019-04-01 22:50:33.225139 D  appbindir         = /usr/bin/
> 2019-04-01 22:50:33.225143 D  sharedir          = /usr/share/mythtv/
> 2019-04-01 22:50:33.225150 D  libdir            = /usr/lib/mythtv/
> 2019-04-01 22:50:33.225153 D  themedir          = /usr/share/mythtv/themes/
> 2019-04-01 22:50:33.225162 D  pluginsdir        = /usr/lib/mythtv/plugins/
> 2019-04-01 22:50:33.225169 D  translationsdir   = /usr/share/mythtv/i18n/
> 2019-04-01 22:50:33.225172 D  filtersdir        = /usr/lib/mythtv/filters/
> 2019-04-01 22:50:33.225179 D  cachedir          =
> /home/mythtv/.mythtv/cache
> 2019-04-01 22:50:33.225183 D  remotecachedir    =
> /home/mythtv/.mythtv/cache/remotecache
> 2019-04-01 22:50:33.225189 D  themebasecachedir =
> /home/mythtv/.mythtv/cache/themecache
> 2019-04-01 22:50:33.225198 D  thumbnaildir      =
> /home/mythtv/.mythtv/cache/thumbnails
> 2019-04-01 22:50:33.225351 I  Assumed character encoding: en_US.UTF-8
> 2019-04-01 22:50:33.226187 I  Empty LocalHostName. This is typical.
> 2019-04-01 22:50:33.226240 I  Using a profile name of: 'ford' (Usually the
> same as this host's name.)
> 2019-04-01 22:50:33.226333 I  Start up testing connections. DB localhost,
> BE , attempt 0, status dbAwake, Delay: 2000
> 2019-04-01 22:50:33.226394 D  PortChecker::checkPort(): host localhost
> port 3306 timeLimit 1000 linkLocalOnly 0
> 2019-04-01 22:50:33.727784 D  PortChecker::checkPort(): socket state 1
> 2019-04-01 22:50:34.228781 D  PortChecker::checkPort(): socket state 3
> 2019-04-01 22:50:34.233515 D  PortChecker::checkPort(): host localhost
> port 3306 timeLimit 30000 linkLocalOnly 1
> 2019-04-01 22:50:34.244281 D  FindDatabase() - Success!
> 2019-04-01 22:50:34.244393 D  PortChecker::checkPort(): host localhost
> port 3306 timeLimit 30000 linkLocalOnly 1
> 2019-04-01 22:50:34.248384 N  Setting QT default locale to en_GB
> 2019-04-01 22:50:34.248403 I  Current locale en_GB
> 2019-04-01 22:50:34.248496 N  Reading locale defaults from
> /usr/share/mythtv//locales/en_gb.xml
> 2019-04-01 22:50:34.266538 I  Loading en_gb translation for module
> mythfrontend
> 2019-04-01 22:50:34.277266 I  MythCoreContext::ConnectCommandSocket():
> Connecting to backend server: 192.168.0.20:6543 (try 1 of 1)
> 2019-04-01 22:50:34.279785 I  MythCoreContext::CheckProtoVersion(): Using
> protocol version 91 BuzzOff
> 2019-04-01 22:50:34.312325 D  Setting Lossless transcoding changed to 0
> 2019-04-01 22:50:34.312352 D  Setting Resize video while transcoding
> changed to 0
> 2019-04-01 22:50:34.312375 N  Transcoding HTTP Live Stream ID 21
> 2019-04-01 22:50:34.313555 D
>  HLS(/media/raid5/mythtv/recordings/2028_20190401185500.ts): Switch
> streamid 21 from Starting to Starting
> 2019-04-01 22:50:34.451451 I  AFD: codec MP2 has 2 channels
> 2019-04-01 22:50:34.453612 I  AFD: Opened codec 0x55dd51046d80, id(MP2)
> type(Audio)
> 2019-04-01 22:50:34.454046 I  AFD: codec MP2 has 1 channels
> 2019-04-01 22:50:34.454101 I  AFD: Opened codec 0x55dd5108a540, id(MP2)
> type(Audio)
> 2019-04-01 22:50:34.454164 I  AFD: Opened codec 0x55dd5108b700,
> id(DVB_SUBTITLE) type(Subtitle)
> 2019-04-01 22:50:34.459750 I  AFD: Using ffmpeg for video decoding
> 2019-04-01 22:50:34.459790 I  AFD: Opened codec 0x55dd51087980,
> id(MPEG2VIDEO) type(Video)
> 2019-04-01 22:50:34.460001 N  AudioPlayer: Enabling Audio
> 2019-04-01 22:50:34.503794 N  HLS: Using segment size of 4 seconds
> 2019-04-01 22:50:34.503816 D
>  HLS(/media/raid5/mythtv/recordings/2028_20190401185500.ts): Switch
> streamid 21 from Starting to Starting
> 2019-04-01 22:50:34.506219 D
>  HLS(/media/raid5/mythtv/recordings/2028_20190401185500.ts): Switch
> streamid 21 from Starting to Starting
> 2019-04-01 22:50:34.514253 N  x264 HLS using: 2 threads, 'veryfast'
> profile and 'film' tune
> 2019-04-01 22:50:34.526652 E
>  AVFW(/var/lib/mythtv/streaming/2028_20190401185500.ts.640x368_600kV_64kA.av.000002.ts):
> OpenAudio(): avcodec_open() failed
> 2019-04-01 22:50:34.526666 E
>  AVFW(/var/lib/mythtv/streaming/2028_20190401185500.ts.640x368_600kV_64kA.av.000002.ts):
> Init(): OpenAudio() failed
> 2019-04-01 22:50:34.526673 E  avfw->Init() failed
> Handling Segmentation fault
> Segmentation fault (core dumped)
>
> And a check of the streaming storage group appears to indicate that all is
> OK:
>
> http://ford.fritz.box:6544/Myth/GetStorageGroupDirs?GroupName=Streaming
> <StorageGroupDirList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> version="1.0" serializerVersion="1.1">
> <script/>
> <script/>
> <script/>
> <StorageGroupDirs>
> <StorageGroupDir>
> <Id>31</Id>
> <GroupName>streaming</GroupName>
> <HostName>ford</HostName>
> <DirName>/var/lib/mythtv/streaming</DirName>
> <DirRead>true</DirRead>
> <DirWrite>true</DirWrite>
> <KiBFree>88577600</KiBFree>
> </StorageGroupDir>
> </StorageGroupDirs>
> </StorageGroupDirList>
>
> Mediainfo reveals that the source file is MPEG-TS, with the following
> audio:
>
> Audio #1
> ID                                       : 1302 (0x516)
> Menu ID                                  : 1 (0x1)
> Format                                   : MPEG Audio
> Format version                           : Version 1
> Format profile                           : Layer 2
> Codec ID                                 : 4
> Duration                                 : 42 min 57 s
> Bit rate mode                            : Constant
> Bit rate                                 : 192 kb/s
> Channel(s)                               : 2 channels
> Sampling rate                            : 48.0 kHz
> Frame rate                               : 41.667 FPS (1152 SPF)
> Compression mode                         : Lossy
> Delay relative to video                  : -720 ms
> Stream size                              : 59.0 MiB (10%)
> Language                                 : English
>
> Audio #2
> ID                                       : 1303 (0x517)
> Menu ID                                  : 1 (0x1)
> Format                                   : MPEG Audio
> Format version                           : Version 1
> Format profile                           : Layer 2
> Codec ID                                 : 4
> Duration                                 : 42 min 57 s
> Bit rate mode                            : Constant
> Bit rate                                 : 64.0 kb/s
> Channel(s)                               : 1 channel
> Sampling rate                            : 48.0 kHz
> Frame rate                               : 41.667 FPS (1152 SPF)
> Compression mode                         : Lossy
> Delay relative to video                  : -720 ms
> Stream size                              : 19.7 MiB (3%)
> Language                                 : English
> Language, more info                      : Visual impaired commentary
>
> I am really now stumped as to how to progress.
>
> Any suggestions please?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20190401/c54e2bed/attachment.html>


More information about the mythtv-users mailing list