MythTV freezes with finnish YLE programs

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

Moderator: Forum Moderators

tike64
Junior
Posts: 19
Joined: Sat Feb 24, 2018 7:58 am
Finland

MythTV freezes with finnish YLE programs

Post by tike64 »

Hi,

I'm trying to get my bleeding edge (*) mythtv installation to work smoothly. The biggest problem right now is playing finnish YLE programs. They have always been quite problematic: missing sound, missing subs and so on. There is something bad in the stream at the point where a program ends and the next starts and that is what makes this version of mythtv occasionally freeze solid.

The problem is far from deterministic. I have two Ryzen desktops, 5 PRO 3400G and 3 4300U, and use VAAPI for hardware decoding. The last recording from today seems to freeze R3 every time but R5 never. Other samples may freeze couple times out of ten when I start and stop playing over and over. If I reboot or try some other decoder in between, the situation may change somewhat - easier or harder to reproduce or some recording starts to play but some other stops...

Here is the log from two runs where the recording succeeds to start and fails:

Code: Select all

2021-01-06 21:52:09.375397 I  TV::TV(): Creating TV object
2021-01-06 21:52:09.387939 N  Suspending idle timer
2021-01-06 21:52:09.390353 I  TV::Init(): Created TvPlayWindow.
2021-01-06 21:52:09.400394 I  TV::HandleStateChange(): Attempting to change from None to WatchingPreRecorded
2021-01-06 21:52:09.424906 E  Overlay: Failed to create window osd_status
2021-01-06 21:52:09.424931 E  Overlay: Failed to create window osd_status
2021-01-06 21:52:09.425026 I  PlayerUI: Initialising player state
2021-01-06 21:52:09.425028 I  PlayerVis: Initialising visualiser
2021-01-06 21:52:09.425030 I  PlayerCaptions: Initialising captions
2021-01-06 21:52:09.425035 I  PlayerAudio: Initialising audio
2021-01-06 21:52:09.426921 E  ALSA: snd_pcm_info_get_card: Operation not permitted
2021-01-06 21:52:09.439878 N  AudioPlayer: Enabling Audio
2021-01-06 21:52:09.439887 I  PlayerBase: Player state ready
2021-01-06 21:52:09.439894 I  Player(0): Opening '/mnt/mythtv01/recordings/1001_20210105170000.ts'
2021-01-06 21:52:09.536673 I  AFD: codec MP2 has 2 channels
2021-01-06 21:52:09.536714 I  AFD: Opened codec 0x5601354a6dc0, id(MP2) type(Audio)
2021-01-06 21:52:09.536729 I  AFD: codec MP2 has 2 channels
2021-01-06 21:52:09.536747 I  AFD: Opened codec 0x560135f1e440, id(MP2) type(Audio)
2021-01-06 21:52:09.536792 I  AFD: Opened codec 0x560137c3be40, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:09.536856 I  AFD: Opened codec 0x5601369a6600, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:09.536936 I  AFD: Using vaapi for video decoding
2021-01-06 21:52:09.536949 I  AFD: Opened codec 0x5601363ff740, id(MPEG2VIDEO) type(Video)
2021-01-06 21:52:09.536980 I  AOBase: Opening audio device 'pulse' ch 2(2) sr 48000 sf signed 16 bit reenc 0
2021-01-06 21:52:09.549477 E  ALSA: no playback control PCM found on mixer device default
2021-01-06 21:52:09.549483 E  ALSA: Unable to open audio mixer. Volume control disabled
2021-01-06 21:52:09.643546 I  Clearing OpenGL painter cache.
2021-01-06 21:52:09.665695 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:09.666330 I  TV::StartPlayer(): Created player.
2021-01-06 21:52:09.666372 I  TV::HandleStateChange(): Changing from None to WatchingPreRecorded
2021-01-06 21:52:09.666523 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:09.666569 I  AFD: Opened codec 0x7f4b781bd4c0, id(MP3) type(Audio)
2021-01-06 21:52:09.666616 I  AFD: Opened codec 0x7f4b781bd900, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:09.666653 I  AFD: Opened codec 0x7f4b78873d00, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:09.667863 I  AFD: Using ffmpeg for video decoding
2021-01-06 21:52:09.667964 I  AFD: Opened codec 0x7f4b78009800, id(MPEG2VIDEO) type(Video)
2021-01-06 21:52:09.669057 W  ScreenSaverDBus: Failed to disable screensaver: Method "Inhibit" with signature "ss" on interface "org.gnome.SessionManager" doesn't exist

2021-01-06 21:52:09.669101 I  ScreenSaverX11: Inhibited X11 screensaver
2021-01-06 21:52:09.671531 I  TV::HandleStateChange(): Main UI disabled.
2021-01-06 21:52:09.671560 I  TV::StartTV(): Entering main playback loop.
2021-01-06 21:52:09.673643 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:09.722409 I  AOBase: Opening audio device 'pulse' ch 2(2) sr 48000 sf 32 bit floating point reenc 0
2021-01-06 21:52:09.734613 E  ALSA: no playback control PCM found on mixer device default
2021-01-06 21:52:09.734619 E  ALSA: Unable to open audio mixer. Volume control disabled
2021-01-06 21:52:09.744446 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:09.744560 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:09.744576 I  GLVid: New frame format: None:None 720x576 (Tex: 2D) -> YUV420P:YUV420P 720x576 (Tex: 2D)
2021-01-06 21:52:11.019144 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:11.019205 I  AFD: Opened codec 0x7f4b7883e000, id(MP3) type(Audio)
2021-01-06 21:52:11.019222 I  AFD: codec AC3 has 0 channels
2021-01-06 21:52:11.019539 I  AFD: Opened codec 0x7f4b78862ac0, id(AC3) type(Audio)
2021-01-06 21:52:11.019638 I  AFD: Opened codec 0x7f4b78865680, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:11.019708 I  AFD: Opened codec 0x7f4b78706480, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:11.020717 I  AFD: Using ffmpeg for video decoding
2021-01-06 21:52:11.020919 I  AFD: Opened codec 0x7f4b785eb480, id(MPEG2VIDEO) type(Video)
2021-01-06 21:52:11.057855 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:11.069068 N  AudioPlayer: Enabling Audio
2021-01-06 21:52:11.069123 E  AFD: Unknown audio decoding error
2021-01-06 21:52:11.069313 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:11.069361 I  AFD: Opened codec 0x7f4b7821cbc0, id(MP3) type(Audio)
2021-01-06 21:52:11.069374 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:11.069402 I  AFD: Opened codec 0x7f4b78227b40, id(MP3) type(Audio)
2021-01-06 21:52:11.069467 I  AFD: Opened codec 0x7f4b7822a500, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:11.069526 I  AFD: Opened codec 0x7f4b7872bfc0, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:11.069596 I  AFD: Using ffmpeg for video decoding
2021-01-06 21:52:11.069740 I  AFD: Opened codec 0x7f4b7872eb40, id(MPEG2VIDEO) type(Video)
2021-01-06 21:52:11.070898 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:11.074428 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074457 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074484 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074509 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074609 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074636 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074661 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074744 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074783 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.074815 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.076167 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-06 21:52:11.079596 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:11.085221 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:11.085241 I  GLVid: New frame format: None:None 720x576 (Tex: 2D) -> YUV420P:YUV420P 720x576 (Tex: 2D)
2021-01-06 21:52:15.685017 I  TV::HandleStateChange(): Attempting to change from WatchingPreRecorded to None
2021-01-06 21:52:15.685031 I  ScreenSaverX11: Uninhibited screensaver
2021-01-06 21:52:16.318747 I  TV::HandleStateChange(): Changing from WatchingPreRecorded to None
2021-01-06 21:52:16.318773 I  TV::StartTV(): Exiting main playback loop.
2021-01-06 21:52:16.319090 N  Resuming idle timer
2021-01-06 21:52:18.672498 I  TV::TV(): Creating TV object
2021-01-06 21:52:18.685146 N  Suspending idle timer
2021-01-06 21:52:18.688137 I  TV::Init(): Created TvPlayWindow.
2021-01-06 21:52:18.698047 I  TV::HandleStateChange(): Attempting to change from None to WatchingPreRecorded
2021-01-06 21:52:18.717407 E  Overlay: Failed to create window osd_status
2021-01-06 21:52:18.717443 E  Overlay: Failed to create window osd_status
2021-01-06 21:52:18.717538 I  PlayerUI: Initialising player state
2021-01-06 21:52:18.717540 I  PlayerVis: Initialising visualiser
2021-01-06 21:52:18.717542 I  PlayerCaptions: Initialising captions
2021-01-06 21:52:18.717546 I  PlayerAudio: Initialising audio
2021-01-06 21:52:18.719607 E  ALSA: snd_pcm_info_get_card: Operation not permitted
2021-01-06 21:52:18.732585 N  AudioPlayer: Enabling Audio
2021-01-06 21:52:18.732594 I  PlayerBase: Player state ready
2021-01-06 21:52:18.732601 I  Player(0): Opening '/mnt/mythtv01/recordings/1001_20210105170000.ts'
2021-01-06 21:52:18.827558 I  AFD: codec MP2 has 2 channels
2021-01-06 21:52:18.827597 I  AFD: Opened codec 0x560135c9ae40, id(MP2) type(Audio)
2021-01-06 21:52:18.827611 I  AFD: codec MP2 has 2 channels
2021-01-06 21:52:18.827629 I  AFD: Opened codec 0x560137ea7700, id(MP2) type(Audio)
2021-01-06 21:52:18.827676 I  AFD: Opened codec 0x560135cc3480, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:18.827717 I  AFD: Opened codec 0x560134f08ac0, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:18.827790 I  AFD: Using vaapi for video decoding
2021-01-06 21:52:18.827803 I  AFD: Opened codec 0x560137ea3580, id(MPEG2VIDEO) type(Video)
2021-01-06 21:52:18.827834 I  AOBase: Opening audio device 'pulse' ch 2(2) sr 48000 sf signed 16 bit reenc 0
2021-01-06 21:52:18.838351 E  ALSA: no playback control PCM found on mixer device default
2021-01-06 21:52:18.838356 E  ALSA: Unable to open audio mixer. Volume control disabled
2021-01-06 21:52:18.929556 I  Clearing OpenGL painter cache.
2021-01-06 21:52:18.953355 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:18.953711 I  TV::StartPlayer(): Created player.
2021-01-06 21:52:18.953730 I  TV::HandleStateChange(): Changing from None to WatchingPreRecorded
2021-01-06 21:52:18.953969 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:18.954017 I  AFD: Opened codec 0x7f4b78625b00, id(MP3) type(Audio)
2021-01-06 21:52:18.954091 I  AFD: Opened codec 0x7f4b781c10c0, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:18.954149 I  AFD: Opened codec 0x7f4b781c1500, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:18.955970 I  AFD: Using ffmpeg for video decoding
2021-01-06 21:52:18.956100 I  AFD: Opened codec 0x7f4b781c1940, id(MPEG2VIDEO) type(Video)
2021-01-06 21:52:18.956481 W  ScreenSaverDBus: Failed to disable screensaver: Method "Inhibit" with signature "ss" on interface "org.gnome.SessionManager" doesn't exist

2021-01-06 21:52:18.956540 I  ScreenSaverX11: Inhibited X11 screensaver
2021-01-06 21:52:18.962586 I  TV::HandleStateChange(): Main UI disabled.
2021-01-06 21:52:18.962629 I  TV::StartTV(): Entering main playback loop.
2021-01-06 21:52:18.967522 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:19.011042 I  AOBase: Opening audio device 'pulse' ch 2(2) sr 48000 sf 32 bit floating point reenc 0
2021-01-06 21:52:19.022486 E  ALSA: no playback control PCM found on mixer device default
2021-01-06 21:52:19.022498 E  ALSA: Unable to open audio mixer. Volume control disabled
2021-01-06 21:52:19.028194 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:19.038730 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:19.038753 I  GLVid: New frame format: None:None 720x576 (Tex: 2D) -> YUV420P:YUV420P 720x576 (Tex: 2D)
2021-01-06 21:52:20.223230 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:20.223325 I  AFD: Opened codec 0x7f4b7801ce40, id(MP3) type(Audio)
2021-01-06 21:52:20.223342 I  AFD: codec AC3 has 0 channels
2021-01-06 21:52:20.223627 I  AFD: Opened codec 0x7f4b78958e00, id(AC3) type(Audio)
2021-01-06 21:52:20.223698 I  AFD: Opened codec 0x7f4b7886e340, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:20.223765 I  AFD: Opened codec 0x7f4b781bbbc0, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:20.224819 I  AFD: Using ffmpeg for video decoding
2021-01-06 21:52:20.225029 I  AFD: Opened codec 0x7f4b781bcac0, id(MPEG2VIDEO) type(Video)
2021-01-06 21:52:20.260757 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU|GLSL|DRIVER Double None
2021-01-06 21:52:20.273147 N  AudioPlayer: Enabling Audio
2021-01-06 21:52:20.273206 E  AFD: Unknown audio decoding error
2021-01-06 21:52:20.273447 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:20.273500 I  AFD: Opened codec 0x7f4b7876f040, id(MP3) type(Audio)
2021-01-06 21:52:20.273515 I  AFD: codec MP3 has 0 channels
2021-01-06 21:52:20.273547 I  AFD: Opened codec 0x7f4b78853640, id(MP3) type(Audio)
2021-01-06 21:52:20.273617 I  AFD: Opened codec 0x7f4b78855f40, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:20.273685 I  AFD: Opened codec 0x7f4b78858b40, id(DVB_SUBTITLE) type(Subtitle)
2021-01-06 21:52:20.273759 I  AFD: Using ffmpeg for video decoding
2021-01-06 21:52:20.273911 I  AFD: Opened codec 0x7f4b7872aa00, id(MPEG2VIDEO) type(Video)
At 18.672498 I start it again and the log ends at the freeze. Killing is the only option at that point. Messages like at 11.074428 always emerges with these recordings when mythtv manages to get over.

VDPAU may not freeze as often but it shows only black screen for many recordings. SW decoders show subtitles at completely wrong times. VLC has hard problems with the recordings but mplayer seems to not have even a hickup. Recordings are SD.

How can I troubleshoot this?

* 2:32.0~master.202012302234.cb0dbce63f~ubuntu20.04.1 amd64
User avatar
kmdewaal
Developer
Posts: 644
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: MythTV freezes with finnish YLE programs

Post by kmdewaal »

As this looks to be a playback problem and not a recording problem, maybe you can put the recording, or the first 100MB of it, somewhere from where it can be downloaded. This makes it possible to reproduce the problem locally.
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: MythTV freezes with finnish YLE programs

Post by blm-ubunet »

Both play perfectly in mpv (no surprise).

Both recordings have subtitles & teletext but are otherwise really basic..
Ffplay makes a bit of a circus show trying to play them. Plays the TT & video all mixed together.

MythTV master configure seems to have removed/hidden --enable-sdl option..

My MythTV build seems to be linking mythff* exe to old pre-existing shared libraries libmythav*.
You have to manually delete /usr/local/lib/libmythav* & others before running configure etc..
After fixing Mythtv build ..

Mythffplay plays both recording correctly but with error:
"No decoder could be found for codec dvb_teletext"

I believe MythTV has teletext support removed.

Work around:
In mythtv-setup you can disable interactive TV in recordings, that might avoid the issue.
Recordings might be tiny bit smaller..
User avatar
kmdewaal
Developer
Posts: 644
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: MythTV freezes with finnish YLE programs

Post by kmdewaal »

Both files, yle.ts and kky.ts, play OK here, both on my living room frontend (fairly recent Intel Pentium) and my development system, an Intel i7-7700. Both systems run a very recent master. Playback with mythfrontend gives a short pause in the beginning, in the intro part. VLC plays it completely perfect.
The Pentium uses NVIDA VDPAU hardware decoding; the i7-7700 does it all in software with ffmpeg.

There is definitely a lot wrong at the beginning of each stream, as shown by the VLC logs, by the output of mythffprobe and and by the output of mythfrontend. This is a problem in the broadcast itself, mythbackend only writes to disk what is being received.
Bad packets are largely ignored by both VLC and mythfrontend.

The reason for the pause with mythfrontend is in the framerate detection. Mythfrontend thinks, probably due to the bad packets in the beginning, that the recording is 30fps. This is soon corrected to 25fps and that is whre I think that the pause occurs.

This does however not solve your problems. I can think of two possible reasons; one is a bug in the hardware decoding and the other is a bug in the software, possibly triggered by having a large number of threads in parallel.
I suggest to try switching to software decoding, using two or even one thread and see what happens. SD streams can be easily decoded by one thread and using one thread either solves the problem or it eliminates one possible cause.
And if you have one laying around, or you can borrow one, you could try an NVIDA card with VDPAU decoding.
tike64
Junior
Posts: 19
Joined: Sat Feb 24, 2018 7:58 am
Finland

Re: MythTV freezes with finnish YLE programs

Post by tike64 »

Thanks friends,

I changed recording to 'TV only' (out of my memory) and so far new recordings are playing fine. The log still shows 'avcodec_send_packet error' lines. I have not too many new samples yet though.

If only I knew a handy way to repair the old faulty recordings...

I also tried normal playback profile (Decoder Standard, Max CPUs 1) but that fails too for example with kky.ts. Some log entries from the failure times:

Code: Select all

2021-01-09 13:57:23.907502 I  GLVid: New frame format: None:None 720x576 (Tex: 2D) -> YUV420P:YUV420P 720x576 (Tex: 2D)
2021-01-09 13:57:25.091743 I  AFD: codec MP3 has 0 channels
Handling Segmentation fault
Segmentation fault (core dumped)
...
2021-01-09 13:59:49.421966 I  GLVid: New frame format: None:None 720x576 (Tex: 2D) -> YUV420P:YUV420P 720x576 (Tex: 2D)
corrupted double-linked list
2021-01-09 13:59:51.083193 I  AFD: codec MP3 has 0 channels
Aborted (core dumped)
...
2021-01-09 14:02:23.999404 I  GLVid: New frame format: YUV420P:YUV420P 720x576 (Tex: 2D) -> YUV420P:YUV420P 640x480 (Tex: 2D)
2021-01-09 14:02:23.999483 N  AudioPlayer: Enabling Audio
2021-01-09 14:02:23.999540 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-09 14:02:23.999564 E  AFD: Unknown audio decoding error
2021-01-09 14:02:23.999583 E  AFD: video avcodec_send_packet error: Invalid data found when processing input (-1094995529) gotpicture:0
2021-01-09 14:02:24.016223 I  VideoOutput: SetDeinterlacing (Doublerate 1): Single High|CPU Double High|CPU
2021-01-09 14:02:24.048053 I  AFD: codec MP3 has 0 channels
Segmentation fault (core dumped)
I tried also VDPAU again and noticed very odd behavior: It plays YLE recordings only, programs from all other channels and live TV shows black screen. Subtitles and audio run normally. I noticed some difference in the log; Working recording (recording from YLE channel):

Code: Select all

021-01-09 15:17:53.047555 I  GLVid: New frame format: None:None 720x576 (Tex: 2D) -> YUV420P:YUV420P 720x576 (Tex: 2D)
failing one (other channel or live TV (also live YLE)):

Code: Select all

2021-01-09 15:19:06.752067 I  GLVid: New frame format: None:None 720x576 (Tex: 2D) -> VDPAU:RGBA32 720x576 (Tex: 2D)
Mplayer plays everything just fine and uses (as I believe) VDPAU HW decoding. So I hope this should be possible to repair in MythTV.

--

Timo
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: MythTV freezes with finnish YLE programs

Post by blm-ubunet »

Timo,
Are you building from source ?

If you are you need to be very careful to clean, distclean regularly & also build mythplugins after building installing main mythtv libraries.
I've noticed that (only recently?) mythtv is linking in old /usr/local/lib libraries.
That leads to seg fault crashes & missing libraries at runtime etc.
So now I manually clean out /usr/local/lib/mythv /usr/local/include/mythtv /usr/local/bin/myth*

I can't get (config) mythtv master to play your files with vdpau decoding (mpeg2 video ??) . It falls back to ffmpeg & cpu deinterlace & opengl scaler (bad soln ; where is vdpau render vdpau deinterlace vdpau scaler, sharpening???) .
Subtitles & teletext are fine.
yle.ts crashed once in 10 starts by rushing the OSD menus. (malloc error).

Other:
OSD is now the wrong size with VDPAU playback of 1080i (scaled) on 4K monitor.
Last edited by blm-ubunet on Sat Jan 09, 2021 9:22 pm, edited 1 time in total.
tike64
Junior
Posts: 19
Joined: Sat Feb 24, 2018 7:58 am
Finland

Re: MythTV freezes with finnish YLE programs

Post by tike64 »

Hi,

No, I'm not building from source. I'm installing Ubuntu packages from http://ppa.launchpad.net/mythbuntu/32/ubuntu. Hope their build environment is clean...

Some drivers come from http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu.

One more testcase: I have an older (hardware-wise) Athlon frontend with a discrete NVidia graphics card. It behaves just like those Ryzen frontends.

--

Timo
blm-ubunet
Senior
Posts: 265
Joined: Sun Jun 15, 2014 1:08 am
Cambodia

Re: MythTV freezes with finnish YLE programs

Post by blm-ubunet »

IMO that ppa is following master too closely & with no regard to whether the build is working, only considering build success.

But I tested your video files in latest master from yesterday & they decoded & seemed to play okay (PQ etc another matter).

There has been a massive re-factoring in playback engine in the last year & all the video playback settings have changed.
Would pay to review all of them.
Some don't appear logical c.f. what was there in a previous era.
tike64
Junior
Posts: 19
Joined: Sat Feb 24, 2018 7:58 am
Finland

Re: MythTV freezes with finnish YLE programs

Post by tike64 »

So nobody else seems to be able to reproduce this problem? What kind of installations do you fellows have then? Distro? Built from sources? ...

What should I try next to get to the root of the issue? Another distro? Get rid of the oibaf drivers (I think I needed to install them to get Ryzen renoir working)? Build from sources?

--

Timo
User avatar
kmdewaal
Developer
Posts: 644
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: MythTV freezes with finnish YLE programs

Post by kmdewaal »

I build the latest master from source. If you can do that and can make it segfault when playing back with ffmpeg decoding then it should be possible to reproduce that. At least you can then make a traceback with gdb which would be a good first step.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: MythTV freezes with finnish YLE programs

Post by paulh »

You can probably still get a useful backtrace if you are using the Ubuntu packages without having to compile from source yourself. You just need to install the mythtv-dbg package that contains the debug symbols then run mythfrontend.real under gdb. When it freezes or locks up press Ctrl-C then hopefully you should be able to do the normal thread apply all bt full to get the backtrace as normal.

More details are in the wiki
https://www.mythtv.org/wiki/Debugging#I ... m_Packages
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: MythTV freezes with finnish YLE programs

Post by paulh »

blm-ubunet wrote:
Sat Jan 09, 2021 9:30 pm
IMO that ppa is following master too closely & with no regard to whether the build is working, only considering build success.

But I tested your video files in latest master from yesterday & they decoded & seemed to play okay (PQ etc another matter).

There has been a massive re-factoring in playback engine in the last year & all the video playback settings have changed.
Would pay to review all of them.
Some don't appear logical c.f. what was there in a previous era.
master is the development branch so you should expect some breakage from time to time. The ppa packages are there for those who want to help test the current development branch or those who just like living dangerously. I've used master for many years with only a few problems but as you say recently there have been some massive re-factoring not only the playback stuff but David's cleanup stuff both have without doubt created more bugs than they have fixed recently so I wouldn't recommend anyone uses current master in production systems. If you do want to use master on production systems then you should keep an eye on the commits email list and avoid updating for a few days after some big commits have been made just to make sure everything is OK.

Most users should be using the stable version from the fixes branch so currently that would be fixes/31.
tike64
Junior
Posts: 19
Joined: Sat Feb 24, 2018 7:58 am
Finland

Re: MythTV freezes with finnish YLE programs

Post by tike64 »

Ok, I captured a debugging session and attached it here. Hope it is useful.
Most users should be using the stable version
Yes I knew I'm taking a risk here but I thought I'm able to live with this version longer before there is no more Ubuntu support and I'm forced to upgrade all frontends and that in the process I might be able to help fixing some bugs. I must say, that this is not bad at all. 32 has been very usable. It is just that YLE makes life hard in many respects and almost all programs my wife watches are aired there which, I'm afraid, might affect WAF.

--

Timo
Attachments
mythtv-gdb-bt-2.txt
(208.86 KiB) Downloaded 44 times
User avatar
kmdewaal
Developer
Posts: 644
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: MythTV freezes with finnish YLE programs

Post by kmdewaal »

Looks like it has frozen in MHEG code. This is interactive TV which you probably do not need and it could be that the execution got there because of errors in the input stream. Try the configure like this:

Code: Select all

./configure --disable-mheg
plus whichever other options you selected.
Post Reply