Kodi Community Forum

Full Version: Spurious audio drops mainly at the start after DVB channel switch
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am experiencing spurious audio skips that most frequently occur at the first few (15 seconds) seconds after a TV channel switch. Rarely those skips also happen after a longer viewing time.
I cannot reproduce the skips when viewing PVR recorded streams or other videos.

I couldn't find any errors in the debug log, maybe the skips are related to those tempo-adjustments that I found near the dropouts?


Code:
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [in] Setting 'time_base' to value '1/48000'
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [in] Setting 'sample_rate' to value '48000'
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [in] Setting 'sample_fmt' to value 'fltp'
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [in] Setting 'channel_layout' to value '0x3f'
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [in] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3f
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [atempo] Setting 'tempo' to value '0.953979'
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [atempo] auto-inserting filter 'auto-inserted resampler 0' between the filter 'in' and the filter 'atempo'
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [AVFilterGraph] query_formats: 3 queried, 3 merged, 3 already done, 0 delayed
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [auto-inserted resampler 0] picking flt out of 5 ref:fltp
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [SWR] Using fltp internally between filters
12:19:20.995 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [auto-inserted resampler 0] ch:6 chl:5.1 fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:flt r:48000Hz
12:19:20.996 T:140622978168576   DEBUG: ffmpeg[7FE556A93700]: [SWR] Using fltp internally between filters

The full debug output around a channel switch can be found at:
http://leo.kloburg.at/tmp/kodi-audio/

I am using tvheadend 4.2.4 and kodi 17.4 on a Linux box (Skylake-U 2 core i3-6100U CPU).
CPU usage is low, HW decoding is used

Sync playback to display is OFF
Audio is output device is Pulseaudio HDMI
Resample quality: Medium
Threshold for pitch correction: 2
Limit sampling rate: 48.0
Allow passthrough: ON
AC3 capable receiver: ON
AC3 transcoding: ON
DTS capable: ON

The AV reveiver is a Yamaha RX-V481D with the newest firmware (1.23).

I'd appreciate any hint!
Cheers,
--leo
Please don't cut logfiles (I don't see your intel drivers, nor kernel, nothing). Recordings are fine?
please test with v18 nightly. there won't be a fix for v17
(2017-11-04, 15:17)fritsch Wrote: [ -> ]Please don't cut logfiles (I don't see your intel drivers, nor kernel, nothing). Recordings are fine?

Recordings are fine.

A full debug log is available here:
http://leo.kloburg.at/tmp/kodi-audio/debug2.log

Audio skips appeared near:

07:38:55.9
07:38:57.0
07:39:48.9
07:39:50.0
07:39:50.9

(Maybe some ms earlier, cause I had to press a button to record the timestamps. :-))

Thanks for your help,
--leo