RasPlex / OpenPHT

OpenPHT is a community driven fork of Plex Home Theater
Other
597 stars 109 forks source link

Audio hiss in Ubuntu 16.04 / ALSA / HDMI while playing DSF audio file #264

Open corykim opened 6 years ago

corykim commented 6 years ago

I have an SACD that I ripped using sacd_extract. The 2.0-channel version plays fine everywhere. The 5.0-channel version adds a loud hiss to the front left channel. This occurs on a Intel NUC Kit Core i5-6260U running Ubuntu 16.04, connected to a Marantz AV7005 over HDMI. The same file plays correctly using OpenPHT on MacOS on a MacBook Pro.

Also, the same thing happens if I convert this file to FLAC or ALAC. Further, only this SACD exhibits this problem, I have others that play fine.

The DSF and debug log file can be downloaded here.

OpenPHT: [1.8.0, Default Skin, Ubuntu 16.04 LTS, ALSA driver enabled instead of PulseAudio] PMS: [1.8.1.4139, Ubuntu 16.04 LTS]

corykim commented 6 years ago

In case anyone can help me, I reviewed the log file, and based on that I manually played the file using ffmpeg and the following command:

ffmpeg -i 1.dsf -ac 8 -ar 176400 -f alsa hdmi:CARD=PCH,DEV=0

That output the audio perfectly. I'm wondering how I can get OpenPHT to determine those settings on its own?