Issues with DACs on Linux
Posted: 20 Aug 2021 22:55
Hi,
I use VLC 3.0.12 on Raspberry Pi 4 runnning Raspberry Lite OS 32-bit. I connect DACs to Pi over USB. So far I tested 3 different DACs and two players: VLC and MPV.
- Alien DAC (PCM2702) doesn't have any issues with VLC and MPV players.
- Topping E30 and Khadas Tone Board DAC have issues (no audio output) with VLC when I skip to different time in audio tracks or switch to another track. Both DACs don't have that issue with MPV player.
Sometimes VLC recovers itself when new track starts playing automatically or I manually switch to another track. I use the following command line parameters:
--aout=alsa --alsa-audio-device=default --audio-resampler=disable --no-audio-time-stretch --verbose=2 --file-logging --logfile=/home/pi/vlc-log.txt
I see in the release notes that in VLC 3.0.16 the similar issue was fixed 'Fixes dropping audio on seek with specific MP4 content':
https://www.videolan.org/vlc/releases/3.0.16.html
Just wondering if that's the same issue.
Just in case here is the log file when audio drops after skipping to another time in the audio track:
The last messages repeated over and over again until the playback resumes to normal when I manually switch the audio track.
Has anybody seen the same issue and knows how to fix it?
Thank you!
I use VLC 3.0.12 on Raspberry Pi 4 runnning Raspberry Lite OS 32-bit. I connect DACs to Pi over USB. So far I tested 3 different DACs and two players: VLC and MPV.
- Alien DAC (PCM2702) doesn't have any issues with VLC and MPV players.
- Topping E30 and Khadas Tone Board DAC have issues (no audio output) with VLC when I skip to different time in audio tracks or switch to another track. Both DACs don't have that issue with MPV player.
Sometimes VLC recovers itself when new track starts playing automatically or I manually switch to another track. I use the following command line parameters:
--aout=alsa --alsa-audio-device=default --audio-resampler=disable --no-audio-time-stretch --verbose=2 --file-logging --logfile=/home/pi/vlc-log.txt
I see in the release notes that in VLC 3.0.16 the similar issue was fixed 'Fixes dropping audio on seek with specific MP4 content':
https://www.videolan.org/vlc/releases/3.0.16.html
Just wondering if that's the same issue.
Just in case here is the log file when audio drops after skipping to another time in the audio track:
Code: Select all
flac debug: emulated sync word
flac debug: emulated sync word
main debug: Buffering 0%
main debug: Buffering 2%
main debug: Buffering 4%
main debug: Buffering 6%
main debug: Buffering 9%
main debug: Buffering 11%
main debug: Buffering 13%
main debug: Buffering 15%
main debug: Buffering 18%
main debug: Buffering 20%
main debug: Buffering 22%
main debug: Buffering 25%
main debug: Buffering 27%
main debug: Buffering 29%
main debug: Buffering 31%
main debug: Buffering 34%
main debug: Buffering 36%
main debug: Buffering 38%
main debug: Buffering 41%
main debug: Buffering 43%
main debug: Buffering 45%
main debug: Buffering 47%
main debug: Buffering 50%
main debug: Buffering 52%
main debug: Buffering 54%
main debug: Buffering 57%
main debug: Buffering 59%
main debug: Buffering 61%
main debug: Buffering 63%
main debug: Buffering 66%
main debug: Buffering 68%
main debug: Buffering 70%
main debug: Buffering 73%
main debug: Buffering 75%
main debug: Buffering 77%
main debug: Buffering 79%
main debug: end of audio preroll
main debug: Buffering 82%
main debug: Buffering 84%
main debug: Buffering 86%
main debug: Buffering 89%
main debug: Buffering 91%
main debug: Buffering 93%
main debug: Buffering 95%
main debug: Buffering 98%
main debug: Stream buffering done (4086 ms in 29 ms)
main debug: Decoder wait done in 0 ms
main warning: playback too early (-96174): down-sampling
main warning: playback too late (110306): up-sampling
main warning: playback way too late (203080): flushing buffers
main debug: inserting 51591 zeroes
main warning: playback too late (72377): up-sampling
main warning: timing screwed (drift: 165441 us): stopping resampling
main warning: playback way too late (258300): flushing buffers
main debug: inserting 51972 zeroes
main warning: playback too late (80854): up-sampling
main warning: timing screwed (drift: 173984 us): stopping resampling
main warning: playback way too late (270229): flushing buffers
main debug: inserting 51454 zeroes
main warning: playback too late (72708): up-sampling
main warning: timing screwed (drift: 163608 us): stopping resampling
main warning: playback way too late (260490): flushing buffers
main debug: inserting 51393 zeroes
main warning: playback too late (70476): up-sampling
main warning: timing screwed (drift: 162990 us): stopping resampling
main warning: playback way too late (257217): flushing buffers
main debug: inserting 51775 zeroes
main warning: playback too late (78053): up-sampling
main warning: timing screwed (drift: 173214 us): stopping resampling
main warning: playback way too late (264664): flushing buffers
.....
Has anybody seen the same issue and knows how to fix it?
Thank you!