Stop VLC Resampling 88.2 -> 48
Posted: 27 Apr 2012 13:37
Hi,
I've been having a lot of problems in the last few days, trying to get VLC to correctly play high res FLAC (or WAV) files. My USB DAC device works fantastic with VLC, but I need bit perfect output, and anything above 44.1khz is being resampled to 48000. I have a very high end DAC in my system and really do not want the audio stream being touched..
I've spent days trying to fix this, but seem to have hit a dead end I was hoping anyone might be able to shed some light on how I might resovle this.
My config is as follows:
PC: HP microserver
OS: Linux Mint 11 (ubuntu 11.04 based)
Audio: USB output to Audiophilleo2
VLC versions: 2.0.1, 1.1.9
VLC Config:
- ALSA audio output (device: audiophilleo2 v1.16 SN01114)
- Use S/PDIF enabled
I did some experiments with "aplay" on the command line. I had two test WAV files: 44.wav and 88.wav. They are 44.1khz/16 and 88.2/24 respectively.
executing: aplay -l
executing "aplay 88.wav" gave:
executing "aplay 44.wav" gave:
Now I read that if I set ALSA to use the hardware device, it will work better. Sure enough, executing "aplay -Dhw:1,0 88.wav" gives:
I can have confirmed that these sample rates are correct; in the above case my DAC is showing "88.2" on the display indicating the sync speed.
I read that adding a ".asoundrc" file can set the default ALSA device to be the hardware device. I created a config file with:
Once this is setup, I can play 88.wav from the command line with just "aplay 88.wav" (specifying hardware device no longer necessary).
OK, so far so good. I can correctly send wave files without resampling via the aplay util. So I know that the hardware and ALSA *can* support this.
In VLC, 44.1khz FLAC and WAV files are sent without resampling. I have tested DTS tracks, and feel confident that I am getting bit perfect output.
However, if I play files with 88.2 sample rate, it is ALWAYS resampled to 48000
Has anyone got any ideas on what might cause this? I really want to get this working.. because VLC is such a great solution for me in other ways
Thanks a lot for any advice you can offer..
I've been having a lot of problems in the last few days, trying to get VLC to correctly play high res FLAC (or WAV) files. My USB DAC device works fantastic with VLC, but I need bit perfect output, and anything above 44.1khz is being resampled to 48000. I have a very high end DAC in my system and really do not want the audio stream being touched..
I've spent days trying to fix this, but seem to have hit a dead end I was hoping anyone might be able to shed some light on how I might resovle this.
My config is as follows:
PC: HP microserver
OS: Linux Mint 11 (ubuntu 11.04 based)
Audio: USB output to Audiophilleo2
VLC versions: 2.0.1, 1.1.9
VLC Config:
- ALSA audio output (device: audiophilleo2 v1.16 SN01114)
- Use S/PDIF enabled
I did some experiments with "aplay" on the command line. I had two test WAV files: 44.wav and 88.wav. They are 44.1khz/16 and 88.2/24 respectively.
executing: aplay -l
Code: Select all
**** List of PLAYBACK Hardware Devices ****
card 1: SN01114 [audiophilleo2 v1.16 SN01114], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Code: Select all
Playing WAVE '44.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Code: Select all
Playing WAVE '88.wav' : Signed 24 bit Little Endian in 3bytes, Rate 88200 Hz, Stereo
aplay: set_params:1059: Sample format not available
Available formats:
- U8
- S16_LE
- S16_BE
- S32_LE
- S32_BE
- FLOAT_LE
- FLOAT_BE
- MU_LAW
- A_LAW
Code: Select all
Playing WAVE '88.wav' : Signed 24 bit Little Endian in 3bytes, Rate 88200 Hz, Stereo
I read that adding a ".asoundrc" file can set the default ALSA device to be the hardware device. I created a config file with:
Code: Select all
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
OK, so far so good. I can correctly send wave files without resampling via the aplay util. So I know that the hardware and ALSA *can* support this.
In VLC, 44.1khz FLAC and WAV files are sent without resampling. I have tested DTS tracks, and feel confident that I am getting bit perfect output.
However, if I play files with 88.2 sample rate, it is ALWAYS resampled to 48000
Has anyone got any ideas on what might cause this? I really want to get this working.. because VLC is such a great solution for me in other ways
Thanks a lot for any advice you can offer..