Skip to content

Audio defects after seeking/jumping. Multiple codecs, other player is OK, playback way too early (-numberhere): playing silence

Hi,

the audio of the played video file is stuttering (interrupting numerous times in a few seconds each time for a fractions of the second. It usually happen after i jump in the video), when seeking like 5-10 seconds back the audio interruption does not repeat).

The vlc player debug output shows line: main audio output warning:

playback way too early (-numberhere): playing silence

I was also trying to play using mpv player and then quckly same video parts in VLC and i have not seen problem in mpv (or is not noticeable) , only in VLC. Also this issue is in numerous files, also not only mkv, but also avi and mp4 (audio codecs Vorbis, Opus, MP3 mp4a-6B and multiple video codecs like VP8, AVC)

I was trying to reset the configuration: vlc --reset-config VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e)

but that not helped. I am up to date on Linux 5.10.19-1-MANJARO (Arch based).

here is sample file in which i see problem (but as mentioned i see the issue not only in this file, codec, file extension):

Format                                   : Matroska
Format version                           : Version 4
File size                                : 163 MiB
Duration                                 : 43 min 27 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 525 kb/s
Encoded date                             : UTC 2021-03-05 19:42:19
Writing application                      : Lavf58.45.100
Writing library                          : Lavf58.45.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:4:4 Predictive@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 43 min 27 s
Bit rate                                 : 435 kb/s
Nominal bit rate                         : 2 048 kb/s
Width                                    : 776 pixels
Height                                   : 546 pixels
Display aspect ratio                     : 1.424
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:4:4
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.041
Stream size                              : 135 MiB (83%)
Title                                    : Video
Writing library                          : x264 core 160 r3011 cde9a93
Encoding settings                        : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=4 / psy=1 / psy_rd=1,00:0,00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=6 / threads=4 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=20 / rc=cbr / mbtree=1 / bitrate=2048 / ratetol=1,0 / qcomp=0,60 / qpmin=30 / qpmax=30 / qpstep=4 / vbv_maxrate=2048 / vbv_bufsize=1228 / nal_hrd=none / filler=0 / ip_ratio=1,40 / aq=1:1,00
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.601
Matrix coefficients                      : BT.601

Audio
ID                                       : 2
Format                                   : Vorbis
Format settings, Floor                   : 1
Codec ID                                 : A_VORBIS
Duration                                 : 43 min 27 s
Bit rate mode                            : Variable
Bit rate                                 : 80.0 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 44.1 kHz
Compression mode                         : Lossy
Stream size                              : 24.9 MiB (15%)
Title                                    : Audio
Writing library                          : libVorbis (Reducing Environment) (20200704 (Reducing Environment))
Language                                 : English
Default                                  : Yes
Forced                                   : No

and debug output, commands used: Mpv: mpv --msg-level=all=trace "/path/file.mkv" Vlc: vlc --verbose 2 --log-verbose 3 "/path/file.mkv"

VLC media player 3.0.12 Vetinari (revision 3.0.12-1-0-gd147bb5e7e)
[000055697134b660] main libvlc debug: VLC media player - 3.0.12 Vetinari
[000055697134b660] main libvlc debug: Copyright © 1996-2020 the VideoLAN team
[000055697134b660] main libvlc debug: revision 3.0.12-1-0-gd147bb5e7e
[000055697134b660] main libvlc debug: configured with ./configure  '--prefix=/usr' '--sysconfdir=/etc' '--with-kde-solid=/usr/share/solid/actions/' '--disable-rpath' '--enable-nls' '--enable-archive' '--enable-live555' '--enable-dc1394' '--enable-dv1394' '--enable-dvdread' '--enable-dvdnav' '--enable-bluray' '--disable-opencv' '--enable-smbclient' '--enable-sftp' '--enable-nfs' '--enable-realrtsp' '--enable-dvbpsi' '--enable-gme' '--enable-ogg' '--enable-shout' '--enable-matroska' '--enable-mod' '--enable-mpc' '--enable-mad' '--enable-mpg123' '--enable-gst-decode' '--enable-avcodec' '--enable-libva' '--enable-avformat' '--enable-postproc' '--enable-faad' '--enable-vpx' '--enable-twolame' '--disable-fdkaac' '--enable-a52' '--enable-dca' '--enable-flac' '--enable-libmpeg2' '--enable-vorbis' '--enable-speex' '--enable-opus' '--enable-oggspots' '--disable-schroedinger' '--enable-png' '--enable-jpeg' '--enable-x264' '--enable-x265' '--enable-zvbi' '--enable-libass' '--enable-kate' '--enable-tiger' '--enable-vdpau' '--enable-wayland' '--enable-sdl-image' '--enable-freetype' '--enable-fribidi' '--enable-harfbuzz' '--enable-fontconfig' '--enable-svg' '--enable-svgdec' '--enable-aa' '--enable-caca' '--enable-pulse' '--enable-alsa' '--enable-jack' '--enable-samplerate' '--enable-soxr' '--enable-chromaprint' '--enable-chromecast' '--enable-qt' '--enable-skins2' '--enable-libtar' '--enable-ncurses' '--enable-lirc' '--enable-goom' '--enable-projectm' '--enable-avahi' '--enable-mtp' '--enable-upnp' '--enable-microdns' '--enable-libxml2' '--disable-libgcrypt' '--enable-gnutls' '--enable-taglib' '--enable-secret' '--enable-kwallet' '--disable-update-check' '--enable-notify' '--enable-libplacebo' '--enable-vlc' '--enable-aribsub' '--enable-aribcam' '--enable-aom' '--enable-srt' '--enable-dav1d' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -I/usr/include/samba-4.0' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2 -I/usr/include/samba-4.0' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c++11' 'LUA_LIBS=-llua5.2 -lm ' 'LUAC=/usr/bin/luac5.2'
[000055697134b660] main libvlc debug: searching plug-in modules
[000055697134b660] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[000055697134b660] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[000055697134b660] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libsdl_image_plugin.so' (libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory)
[000055697134b660] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libkate_plugin.so' (libtiger.so.5: cannot open shared object file: No such file or directory)
[000055697134b660] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/stream_filter/libaribcam_plugin.so' (libaribb25.so.0: cannot open shared object file: No such file or directory)
[000055697134b660] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[000055697134b660] main libvlc debug: plug-ins loaded: 527 modules

...
[00007f8754000c80] main input debug: Buffering 84%
[00007f8754000c80] main input debug: Buffering 85%
[00007f8754000c80] main input debug: Buffering 86%
[00007f8758d2cc70] main decoder debug: end of audio preroll
[00007f8754000c80] main input debug: Buffering 87%
[00007f8754000c80] main input debug: Buffering 88%
[00007f8754000c80] main input debug: Buffering 89%
[00007f8754000c80] main input debug: Buffering 90%
[00007f8754000c80] main input debug: Buffering 91%
[000055697141fd90] pulse audio output debug: started
[00007f8754000c80] main input debug: Buffering 92%
[00007f8754000c80] main input debug: Buffering 93%
[000055697141fd90] pulse audio output debug: underflow
[000055697141fd90] pulse audio output debug: changing sink 0: alsa_output.pci-0000_0a_00.6.analog-stereo (Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo)
[00007f8754000c80] main input debug: Buffering 94%
[00007f8754000c80] main input debug: Buffering 95%
[00007f8754000c80] main input debug: Buffering 96%
[00007f8754000c80] main input debug: Buffering 97%
[00007f8754000c80] main input debug: Buffering 98%
[00007f8754000c80] main input debug: Buffering 99%
[00007f8754000c80] main input debug: Stream buffering done (6741 ms in 15 ms)
[00007f8758c13040] main decoder debug: end of video preroll
[00007f8758c13040] main decoder debug: Received first picture
[00007f8754000c80] main input debug: Decoder wait done in 69 ms
[000055697141fd90] pulse audio output warning: starting late (-149364 us)
[000055697141fd90] pulse audio output debug: changing sink 0: alsa_output.pci-0000_0a_00.6.analog-stereo (Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo)
[000055697141fd90] pulse audio output debug: started
[000055697141fd90] pulse audio output debug: underflow
[000055697144e4c0] dbus interface debug: Getting All properties
[000055697141fd90] main audio output warning: playback too early (-46497): down-sampling
[000055697141fd90] main audio output warning: timing screwed (drift: -94986 us): stopping resampling
[000055697141fd90] main audio output warning: playback too early (-98482): down-sampling
[000055697141fd90] main audio output warning: playback way too early (-123497): playing silence
[000055697141fd90] main audio output debug: inserting 5446 zeroes
[000055697144e4c0] dbus interface debug: Getting All properties
[000055697141fd90] main audio output warning: playback too early (-42045): down-sampling
[000055697141fd90] main audio output warning: timing screwed (drift: -84197 us): stopping resampling
[000055697141fd90] main audio output warning: playback too early (-90356): down-sampling
[000055697141fd90] main audio output warning: playback way too early (-122734): playing silence
[000055697141fd90] main audio output debug: inserting 5412 zeroes
[000055697144e4c0] dbus interface debug: Getting All properties
[000055697141fd90] main audio output warning: playback too early (-41210): down-sampling
[000055697141fd90] main audio output warning: timing screwed (drift: -86258 us): stopping resampling
[000055697141fd90] main audio output warning: playback too early (-90793): down-sampling
[000055697141fd90] main audio output warning: playback way too early (-128076): playing silence
[000055697141fd90] main audio output debug: inserting 5648 zeroes
[000055697141fd90] main audio output warning: playback too late (67390): up-sampling
[000055697144e4c0] dbus interface debug: Getting All properties
[000055697141fd90] main audio output debug: resampling stopped (drift: -26770 us)
[000055697144e4c0] dbus interface debug: Getting All properties
[000055697141fd90] main audio output warning: playback too late (77466): up-sampling
[000055697141fd90] main audio output warning: timing screwed (drift: 156545 us): stopping resampling
[000055697141fd90] main audio output warning: playback too late (166917): up-sampling
[000055697141fd90] main audio output warning: playback way too late (186451): flushing buffers
[000055697141fd90] vlcpulse audio output debug: write index corrupt
[000055697141fd90] pulse audio output debug: cannot synchronize start
[000055697141fd90] pulse audio output debug: deferring start (1146460 us)
[000055697141fd90] vlcpulse audio output debug: write index corrupt
[000055697141fd90] pulse audio output debug: cannot synchronize start
[000055697141fd90] pulse audio output debug: deferring start (1146074 us)
[000055697141fd90] pulse audio output debug: deferring start (1180236 us)
[000055697141fd90] pulse audio output debug: deferring start (1180227 us)
[000055697141fd90] pulse audio output debug: deferring start (1180219 us)
[000055697141fd90] pulse audio output debug: deferring start (1180204 us)
[000055697141fd90] pulse audio output debug: underflow
[000055697141fd90] pulse audio output debug: changing sink 0: alsa_output.pci-0000_0a_00.6.analog-stereo (Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo)
[000055697141fd90] pulse audio output debug: deferring start (1179635 us)
[000055697141fd90] pulse audio output debug: deferring start (1169329 us)
[000055697141fd90] pulse audio output debug: deferring start (1168851 us)
[000055697141fd90] pulse audio output debug: deferring start (1135454 us)
[000055697141fd90] pulse audio output debug: deferring start (1120960 us)
[000055697141fd90] pulse audio output debug: deferring start (1112994 us)
[000055697141fd90] pulse audio output debug: deferring start (1109782 us)
[000055697141fd90] pulse audio output debug: deferring start (1096348 us)
[000055697141fd90] pulse audio output debug: deferring start (1052713 us)

full log here

please which commands or things do you suggest so we get close to the issue cause? I am not a developer and not too experienced Linux user.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information