Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13330 closed Bug Report - General (fixed)

vaapi2 - Temporary loss of audio when using skip

Reported by: Mike Bibbings Owned by: Peter Bennett
Priority: minor Milestone: 30.0
Component: MythTV - Audio Output Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

mythfrontend recorded program playback

When using skip keys (left/right arrow on keyboard) audio stops for a period, video continues. The problem is mainly on skip back, although I have seen it on skip forward. The audio period stop seems to coincide with the value for the appropriate skip , after which audio resumes.

Primary deinterlacer default of Advanced (2x, HW-VA), if I use Advanced (HW-VA) no issue.

Attached is an example mythfrontend log file (-v playback,libav,audio --loglevel debug)

Source recorded program from dvb-t2 (UK Freeview) H.264 also happens on dvb-t (UK Freeview)

Observed the issue on 4 different platforms all running Xubuntu 18.04 LTS with current mythtv master.

Note: The mythbuntu ppa 30 does not have this issue as it does not have vaapi2, no builds for 23 weeks as of writing.

Acer Revo RL80/Revo RL80, BIOS P11-A2L 11/20/2012 Intel(R) Celeron(R) CPU 887 @ 1.50GHz (family: 0x6, model: 0x2a, stepping: 0x7) External Screen Resolution 1920x1080 50Hz over hdmi

NEWPOWER INTERNATION GROUP LIMITED N34/AB1, BIOS 00.17 11/25/2017 Intel(R) Celeron(R) CPU N3450 @ 1.10GHz (family: 0x6, model: 0x5c, stepping: 0x9) External Screen Resolution 1920x1080 50Hz over hdmi

STRIX B250F GAMING, BIOS 1205 05/11/2018 Intel(R) Pentium(R) CPU G4400 @ 3.30GHz (family: 0x6, model: 0x5e, stepping: 0x3) External Resolution 1920x1080 50Hz over hdmi

Acer Aspire V3-571/VA50_HC_CR, BIOS V2.15 03/11/2013 Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz (family: 0x6, model: 0x3a, stepping: 0x9) Internal Screen Resolution 1366x768 60Hz (laptop builtin display)

Attachments (1)

mythfrontend.20181009141416.2956.log.zip (364.2 KB) - added by Mike Bibbings 6 years ago.
mythfrontend log

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by Mike Bibbings

mythfrontend log

comment:1 Changed 6 years ago by Peter Bennett

Owner: changed from JYA to Peter Bennett
Status: newassigned

comment:2 Changed 6 years ago by Peter Bennett

Summary: vappi2 - Temporary loss of audio when using skipvaapi2 - Temporary loss of audio when using skip

comment:3 Changed 6 years ago by Stuart Auchterlonie

Milestone: needs_triage30.0

comment:4 Changed 6 years ago by Peter Bennett

I can recreate this. It does not seem consistent, sometimes jump back shuts off audio and sometimes it does not.

I have developed a new audio-video sync routine that is simpler than the existing one in MythTV. It is not yet committed. It works for everything except DVB-radio at the moment. Your problem does not happen with this new AVSync. Let me know if you would like a preview patch to compile yourself and test.

comment:5 Changed 6 years ago by Mike Bibbings

Peter, I can compile and test the patch

Mike

comment:6 Changed 6 years ago by Peter Bennett

Resolution: Fixed
Status: assignedclosed

I have pulled out the part of the new video sync that fixes this and committed it.

commit 4651002fc0c96c760bd243f9f5ac4df185cc1eab (HEAD -> master, origin/master) Author: Peter Bennett Date: Thu Oct 11 15:42:17 2018 -0400

Video playback: Fix issue where jump back loses audio

The code that skips audio from before the first frame, sometimes skips audio after a jump back, if some frames are processed out of sequyence. Bypass this check when using frame timing.

Fixes #13330

comment:7 Changed 6 years ago by Peter Bennett <pbennett@…>

Resolution: Fixedfixed

In 4651002fc0/mythtv:

Video playback: Fix issue where jump back loses audio

The code that skips audio from before the first frame, sometimes
skips audio after a jump back, if some frames are processed
out of sequyence. Bypass this check when using frame timing.

Fixes #13330

comment:8 Changed 6 years ago by Peter Bennett <pbennett@…>

In 4651002fc0/mythtv:

Video playback: Fix issue where jump back loses audio

The code that skips audio from before the first frame, sometimes
skips audio after a jump back, if some frames are processed
out of sequyence. Bypass this check when using frame timing.

Fixes #13330

Note: See TracTickets for help on using tickets.