Trouble with HEVC playback

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
KennyB
Junior
Posts: 50
Joined: Fri Sep 25, 2015 3:56 am
United States of America

Trouble with HEVC playback

Post by KennyB »

I have been having lots of trouble with HEVC playback in the "Videos" section. Somedays it will work fine, and my files will play, but other times it will simply crash Mythfrontend and the logs aren't really very revealing of much except that it usually has something to do with ALSA. In fact, the only time it does work is when I select PulseAudio from the audio menu despite the fact that PulseAudio:ALSA or ALSA:pulse works for every other format. But then randomly today, it stopped working even with just PulseAudio selected.

The only difference I can tell between then and now is that my disks are really busy hash-checking some stuff right now, whereas yesterday they weren't being used. The other thing is I use a program called mhddfs that merges several volumes into one mount point, but the disc speeds are very low, like 4 MB/s max. Is it possible the low disc speed is causing HEVC playback to fail?

The only reason I doubt that possibility is because VLC is playing the same files without ANY problems whatsoever even with the disks being maxed out.

I'm on Ubuntu 18.04 but this is happening on Mint 19.1 and Ubuntu 16.04 as well. MythTV version is 0.30

When running mythfrontend with debug loglevel, this is all I see in the terminal window as it tries to play

Code: Select all

2019-05-20 19:49:48.911213 I  TV::TV(): Creating TV object
2019-05-20 19:49:49.040992 N  Suspending idle timer
2019-05-20 19:49:49.118510 I  TV::Init(): Created TvPlayWindow.
2019-05-20 19:49:49.140959 I  TV::HandleStateChange(): Attempting to change from None to WatchingVideo
2019-05-20 19:49:49.210658 N  AudioPlayer: Enabling Audio
2019-05-20 19:49:49.268431 I  AFD: codec AC3 has 6 channels
2019-05-20 19:49:49.268777 I  AFD: Opened codec 0x557fc5cd5380, id(AC3) type(Audio)
2019-05-20 19:49:49.268903 I  AFD: Opened codec 0x557fc5b0a440, id(Unknown Codec ID) type(Subtitle)
2019-05-20 19:49:49.334605 D  AFD: ScanATSCCaptionStreams() called with no PMT
2019-05-20 19:49:49.334625 I  AFD: Using ffmpeg for video decoding
2019-05-20 19:49:49.335831 I  AFD: Opened codec 0x557fc59ce300, id(H265) type(Video)
2019-05-20 19:49:49.335959 I  AOBase: Opening audio device 'PulseAudio:default' ch 2(6) sr 48000 sf 32 bit floating point reenc 0
2019-05-20 19:49:49.666262 I  Setup Interrupt handler
2019-05-20 19:49:49.666273 I  Setup Terminated handler
2019-05-20 19:49:49.666380 I  VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'
2019-05-20 19:49:49.816371 I  OSD: Base theme size: 1280x720
2019-05-20 19:49:49.816394 I  OSD: Scaling factors: 1.5x1.44444
2019-05-20 19:49:49.824251 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 258
			Name: 'medium'	Type: 'fontdef'
2019-05-20 19:49:49.827714 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 240
			Name: 'medium'	Type: 'fontdef'
2019-05-20 19:49:49.831121 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 7
			Name: 'small'	Type: 'fontdef'
2019-05-20 19:49:49.833014 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 11
			Name: 'medium'	Type: 'fontdef'
2019-05-20 19:49:49.834912 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 14
			Name: 'large'	Type: 'fontdef'
2019-05-20 19:49:49.840400 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 185
			Name: 'small'	Type: 'fontdef'
2019-05-20 19:49:49.840449 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 189
			Name: 'medium'	Type: 'fontdef'
2019-05-20 19:49:49.840479 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 193
			Name: 'large'	Type: 'fontdef'
2019-05-20 19:49:49.842629 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 138
			Name: 'medium'	Type: 'fontdef'
2019-05-20 19:49:49.844754 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 398
			Name: 'medium'	Type: 'fontdef'
2019-05-20 19:49:49.856139 I  OSD: Base theme size: 1280x720
2019-05-20 19:49:49.856150 I  OSD: Scaling factors: 1.5x1.44444
greedyhdeint: size changed from 0 x 0 -> 1920 x 1040
2019-05-20 19:49:49.976510 I  Player(0): Video timing method: USleep with busy wait
2019-05-20 19:49:49.977346 I  TV::StartPlayer(): Created player.
2019-05-20 19:49:49.977394 I  TV::HandleStateChange(): Changing from None to WatchingVideo
2019-05-20 19:49:50.037311 I  TV::HandleStateChange(): Main UI disabled.
2019-05-20 19:49:50.037387 I  TV::StartTV(): Entering main playback loop.
2019-05-20 19:49:50.038886 I  ScreenSaverDBus: Successfully inhibited screensaver via org.freedesktop.ScreenSaver. cookie 340. nom nom
2019-05-20 19:49:50.039117 C  Received Segmentation fault: Code 2, PID 1212216064, UID 32547, Value 0x00000000
2019-05-20 19:49:50.139318 I  TV::StartTV(): Exiting main playback loop.
2019-05-20 19:49:50.254285 W  Player(0): Waited 100ms for decoder to pause
2019-05-20 19:49:50.354419 W  Player(0): Waited 100ms for decoder to pause
2019-05-20 19:49:50.397463 E  PulseAudio: stream buffer under flow
2019-05-20 19:49:50.454542 W  Player(0): Waited 100ms for decoder to pause
2019-05-20 19:49:50.554642 W  Player(0): Waited 100ms for decoder to pause
2019-05-20 19:49:50.654761 W  Player(0): Waited 100ms for decoder to pause
2019-05-20 19:49:50.754871 W  Player(0): Waited 100ms for decoder to pause
2019-05-20 19:49:50.854981 W  Player(0): Waited 100ms for decoder to pause
2019-05-20 19:49:50.955043 W  Player(0): Waited 100ms for decoder to pause
Segmentation fault (core dumped)
Edit:

I can also confirm that Mythling ( Android MythTV frontend) has no issues playing the files that Mythfrontend seems to be crashing on.

I decided to try with 0.31 from Mythbuntu PPA and fresh install of Mint 19.1, and I'm still getting the behavior. Though I did get a bit more of an enlightening error from PulseAudio this time. Using OpenGL because that's what I normally use for HEVC stuff.

Code: Select all

2019-05-20 22:59:57.591464 I  TV::TV(): Creating TV object
2019-05-20 22:59:57.612707 N  Suspending idle timer
2019-05-20 22:59:57.622520 I  TV::Init(): Created TvPlayWindow.
2019-05-20 22:59:57.648929 I  TV::HandleStateChange(): Attempting to change from None to WatchingVideo
2019-05-20 22:59:57.735604 N  AudioPlayer: Enabling Audio
2019-05-20 22:59:57.753181 I  AFD: codec AC3 has 6 channels
2019-05-20 22:59:57.753610 I  AFD: Opened codec 0x561729305f00, id(AC3) type(Audio)
2019-05-20 22:59:57.753768 I  AFD: Opened codec 0x56172926d3c0, id(Unknown Codec ID) type(Subtitle)
2019-05-20 22:59:57.761650 D  AFD: ScanATSCCaptionStreams() called with no PMT
2019-05-20 22:59:57.761661 I  AFD: Using ffmpeg for video decoding
2019-05-20 22:59:57.761874 I  AFD: Opened codec 0x56172863b480, id(H265) type(Video)
2019-05-20 22:59:57.761978 I  AOBase: Opening audio device 'PulseAudio:default' ch 2(6) sr 48000 sf 32 bit floating point reenc 0
greedyhdeint: size changed from 0 x 0 -> 1920 x 1040
2019-05-20 22:59:57.867484 D  
#version 110
attribute vec2 a_position;
attribute vec2 a_texcoord0;
varying   vec2 v_texcoord0;
uniform   mat4 u_projection;
void main() {
    gl_Position = u_projection * vec4(a_position, 0.0, 1.0);
    v_texcoord0 = a_texcoord0;
}

2019-05-20 22:59:57.867498 D  
#version 110
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect s_texture0;
uniform mat4 m_colourMatrix;
varying vec2 v_texcoord0;
void main(void)
{
    vec4 yuva    = texture2DRect(s_texture0, v_texcoord0);
    if (fract(v_texcoord0.x * 1.00000000) < 0.5)
        yuva = yuva.rabg;
    gl_FragColor = vec4(yuva.arb, 1.0) * m_colourMatrix;
}

2019-05-20 22:59:57.869139 I  GLVid: Using 'opengl' for OpenGL video type
2019-05-20 22:59:57.869178 D  
#version 110
attribute vec2 a_position;
attribute vec2 a_texcoord0;
varying   vec2 v_texcoord0;
uniform   mat4 u_projection;
void main() {
    gl_Position = u_projection * vec4(a_position, 0.0, 1.0);
    v_texcoord0 = a_texcoord0;
}

2019-05-20 22:59:57.869188 D  
#version 110
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect s_texture0;
varying vec2 v_texcoord0;
void main(void)
{
    vec4 color   = texture2DRect(s_texture0, v_texcoord0);
    gl_FragColor = vec4(color.xyz, 1.0);
}

2019-05-20 22:59:57.885733 I  OSD: Base theme size: 1280x720
2019-05-20 22:59:57.885751 I  OSD: Scaling factors: 1.5x1.36944
2019-05-20 22:59:57.887652 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 258
			Name: 'medium'	Type: 'fontdef'
greedyhdeint: size changed from 0 x 0 -> 1920 x 1040
2019-05-20 22:59:57.893199 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 240
			Name: 'medium'	Type: 'fontdef'
2019-05-20 22:59:57.897371 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 7
			Name: 'small'	Type: 'fontdef'
2019-05-20 22:59:57.899800 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 11
			Name: 'medium'	Type: 'fontdef'
2019-05-20 22:59:57.902233 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 14
			Name: 'large'	Type: 'fontdef'
2019-05-20 22:59:57.914275 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 185
			Name: 'small'	Type: 'fontdef'
2019-05-20 22:59:57.914324 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 189
			Name: 'medium'	Type: 'fontdef'
2019-05-20 22:59:57.914352 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 193
			Name: 'large'	Type: 'fontdef'
2019-05-20 22:59:57.916455 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 138
			Name: 'medium'	Type: 'fontdef'
2019-05-20 22:59:57.918508 E  MythFontProperties: Failed to load 'Droid Sans', got 'DejaVu Sans' instead
			Location: /usr/share/mythtv/themes/MythCenter-wide/osd.xml @ 398
			Name: 'medium'	Type: 'fontdef'
2019-05-20 22:59:57.929969 I  OSD: Base theme size: 1280x720
2019-05-20 22:59:57.929978 I  OSD: Scaling factors: 1.5x1.36944
2019-05-20 22:59:57.939709 I  Player(0): Video timing method: USleep with busy wait
2019-05-20 22:59:57.940723 I  TV::StartPlayer(): Created player.
2019-05-20 22:59:57.940746 I  TV::HandleStateChange(): Changing from None to WatchingVideo
2019-05-20 22:59:57.944426 I  TV::HandleStateChange(): Main UI disabled.
2019-05-20 22:59:57.944496 I  TV::StartTV(): Entering main playback loop.
2019-05-20 22:59:57.946083 I  ScreenSaverDBus: Successfully inhibited screensaver via org.freedesktop.ScreenSaver. cookie 3. nom nom
2019-05-20 22:59:57.948671 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.948698 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.948723 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.948733 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.948746 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.948755 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.948769 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.948789 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.948802 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.948810 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.959014 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.959036 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969545 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969593 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969629 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969638 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969660 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969668 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969700 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969709 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969729 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969736 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969770 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969782 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969797 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969821 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969838 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969849 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969878 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969890 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.969909 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.969917 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.982052 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.982077 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.982108 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.982114 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.982130 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.982136 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.982186 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.982196 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.982209 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.982233 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.982245 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.982255 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.982265 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.982291 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.992449 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.992470 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.992483 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.992488 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.992498 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.992502 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.992511 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.992534 E  PulseAudio: WriteAudio, short write, 0 of 13434
2019-05-20 22:59:57.992543 E  PulseAudio: WriteAudio, stream write failed: PA_ERR_INVALID
2019-05-20 22:59:57.992546 E  PulseAudio: WriteAudio, short write, 0 of 13434
Handling Segmentation fault
Segmentation fault (core dumped)
[code]
Post Reply