Overdriven sound in jukebox mode? [Resolved]

Need help? Post your questions here.

Moderator: moderators

Overdriven sound in jukebox mode? [Resolved]

Postby jol » Sun Jan 22, 2012 6:39 am

Hello,
I installed Subsonic yesterday and I am pretty impressed by the great combination of server and Android app. Music playing on Android is fine, including artwork and searching the server - thanks for all the good work. However I am struggling with jukebox mode, where the signal appears to be overdriven or distorted in all "remote volume" control setting except the lowest setting (after silence). As I am using a cheap USB Sound card (mere presence was required for software I used earlier) it may of course be a hardware issue as well, any experience with other sound cards appreciated.

Problem Description: overdriven/distorted sound in jukebox mode
Troubleshooting Steps: tried various settings in volume controls of Windows and in Android app
Playback Application and version: Subsonic for Android 3.3
Subsonic Version: 4.6 (build 2583) – December 6, 2011
Server Version: jetty-6.1.x, java 1.6.0_27, Windows Server 2008 R2 (86.5 MB / 96.7 MB) -
Hardware Platform: Windows Homeserver 2011
Java Memory Limit: 100MB
Problem Filename: no specific file, tried several
Output from ffmpeg -i:
Code: Select all
c:\subsonic\transcode>ffmpeg -i "E:\ServerFolders\Musik\a-ha\Foot of the Mountai
n\03 What There Is.m4a"
ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul 28 2011 01:57:12 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  9. 0 / 53.  9. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 27. 3 /  2. 27. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\ServerFolders\Musik\a-ha\Foot of the
Mountain\03 What There Is.m4a':
  Metadata:
    major_brand     : M4A
    minor_version   : 0
    compatible_brands: M4A mp42isom
    title           : What There Is
    artist          : a-ha
    album_artist    : a-ha
    composer        : Paul Waaktaar-Savoy & Magne Furuholmen
    album           : Foot of the Mountain
    track           : 3
    disc            : 1
    date            : 2009-12-04T08:00:00Z
    copyright       : Ôäù 2009 a-ha network as under exclusive license to We Lov
e Music, distributed by Universal Music Domestic Pop, a division of Universal Mu
sic GmbH
  Duration: 00:03:42.60, start: 0.000000, bitrate: 283 kb/s
    Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 261 kb/s
At least one output file must be specified

Last ten log file lines:
Code: Select all
[2012-01-21 21:12:10,212] DEBUG JukeboxService - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@8d8f67
[2012-01-21 21:12:10,228] INFO JukeboxService - Joachim starting jukebox for "Kuschel Rock 1 [Disc 1]\1-02 Without You.m4a"
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   built on Jul 28 2011 01:57:12 with gcc 4.6.1
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavutil    51. 11. 0 / 51. 11. 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavcodec   53.  9. 0 / 53.  9. 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavformat  53.  6. 0 / 53.  6. 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavdevice  53.  2. 0 / 53.  2. 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavfilter   2. 27. 3 /  2. 27. 3
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libswscale    2.  0. 0 /  2.  0. 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libpostproc  51.  2. 0 / 51.  2. 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\ServerFolders\Musik\Compilations\Kuschel Rock 1 [Disc 1]\1-02 Without You.m4a':
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Metadata:
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     major_brand     : M4A
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     minor_version   : 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     compatible_brands: M4A mp42isom
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     creation_time   : 2009-10-11 21:37:31
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     title           : Without You
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     artist          : Nilsson
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     composer        : Verschiedene Interpreten
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     album           : Kuschel Rock 1 [Disc 1]
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     track           : 2
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     disc            : 1
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     date            : 1971
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     encoder         : iTunes 9.0.1.8, QuickTime 7.6.4
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Duration: 00:03:16.06, start: 0.000000, bitrate: 326 kb/s
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 325 kb/s
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Metadata:
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)       creation_time   : 2009-10-11 21:37:31
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Output #0, au, to 'pipe:':
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Metadata:
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     major_brand     : M4A
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     minor_version   : 0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     compatible_brands: M4A mp42isom
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     creation_time   : 2009-10-11 21:37:31
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     title           : Without You
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     artist          : Nilsson
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     composer        : Verschiedene Interpreten
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     album           : Kuschel Rock 1 [Disc 1]
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     track           : 2
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     disc            : 1
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     date            : 1971
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     encoder         : Lavf53.6.0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Stream #0.0(und): Audio: pcm_s16be, 44100 Hz, stereo, s16, 1411 kb/s
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Metadata:
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)       creation_time   : 2009-10-11 21:37:31
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Stream mapping:
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Stream #0.0 -> #0.0
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Press [q] to stop, [?] for help
[2012-01-21 21:15:26,103] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) size=   33776kB time=00:03:16.06 bitrate=1411.2kbits/s   
[2012-01-21 21:15:26,119] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)
[2012-01-21 21:15:26,119] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) video:0kB audio:33776kB global headers:0kB muxing overhead 0.000069%
[2012-01-21 21:15:26,150] DEBUG JukeboxService - Closed line com.sun.media.sound.DirectAudioDevice$DirectSDL@8d8f67
[2012-01-21 21:15:26,150] INFO JukeboxService - Joachim stopping jukebox for "Kuschel Rock 1 [Disc 1]\1-02 Without You.m4a"
[2012-01-21 21:15:26,150] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [0] [-i] [E:\ServerFolders\Musik\Compilations\Kuschel Rock 1 [Disc 1]\1-01 The Power Of Love.m4a] [-v] [0] [-f] [au] [-]
[2012-01-21 21:15:26,291] DEBUG JukeboxService - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@768dc8
[2012-01-21 21:15:26,291] INFO JukeboxService - Joachim starting jukebox for "Kuschel Rock 1 [Disc 1]\1-01 The Power Of Love.m4a"
[2012-01-21 21:20:38,994] DEBUG JukeboxService - Closed line com.sun.media.sound.DirectAudioDevice$DirectSDL@768dc8
[2012-01-21 21:20:38,994] INFO JukeboxService - Joachim stopping jukebox for "Kuschel Rock 1 [Disc 1]\1-01 The Power Of Love.m4a"
[2012-01-21 21:20:38,994] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [0] [-i] [E:\ServerFolders\Musik\Soundtracks\Soundtrack - Gone In 60 Seconds\05 - The Chemical Brothers - Leave Home.mp3] [-v] [0] [-f] [au] [-]
[2012-01-21 21:20:39,212] DEBUG JukeboxService - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@8cd4db
[2012-01-21 21:20:39,212] INFO JukeboxService - Joachim starting jukebox for "Soundtrack - Gone In 60 Seconds\05 - The Chemical Brothers - Leave Home.mp3"
[2012-01-21 21:20:42,697] DEBUG JukeboxService - Closed line com.sun.media.sound.DirectAudioDevice$DirectSDL@8cd4db
[2012-01-21 21:20:42,697] INFO JukeboxService - Joachim stopping jukebox for "Soundtrack - Gone In 60 Seconds\05 - The Chemical Brothers - Leave Home.mp3"
[2012-01-21 21:20:42,697] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [0] [-i] [E:\ServerFolders\Musik\Alex Max Band\We've All Been There\1-08 Leave (Today Is the Day).m4a] [-v] [0] [-f] [au] [-]
[2012-01-21 21:20:42,822] DEBUG JukeboxService - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@e7ccd7
[2012-01-21 21:20:42,822] INFO JukeboxService - Joachim starting jukebox for "We've All Been There\1-08 Leave (Today Is the Day).m4a"
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   built on Jul 28 2011 01:57:12 with gcc 4.6.1
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavutil    51. 11. 0 / 51. 11. 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavcodec   53.  9. 0 / 53.  9. 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavformat  53.  6. 0 / 53.  6. 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavdevice  53.  2. 0 / 53.  2. 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libavfilter   2. 27. 3 /  2. 27. 3
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libswscale    2.  0. 0 /  2.  0. 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   libpostproc  51.  2. 0 / 51.  2. 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\ServerFolders\Musik\Alex Max Band\We've All Been There\1-08 Leave (Today Is the Day).m4a':
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Metadata:
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     major_brand     : M4A
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     minor_version   : 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     compatible_brands: M4A mp42isom
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     creation_time   : 1970-10-20 18:30:32
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     title           : Leave (Today Is the Day)
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     artist          : Alex Max Band
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     album_artist    : Alex Max Band
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     composer        : Alex Max Band
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     album           : We've All Been There
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     track           : 8
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     disc            : 1
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     date            : 2010-09-24T07:00:00Z
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     copyright       : ℗  2010 The copyright in this sound recording is owned by AMB Records under exclusive licence to Capitol Music, a division of EMI Music Germany GmbH & Co.KG
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Duration: 00:03:36.89, start: 0.000000, bitrate: 288 kb/s
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 266 kb/s
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Metadata:
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)       creation_time   : 1970-10-20 18:30:32
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Output #0, au, to 'pipe:':
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Metadata:
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     major_brand     : M4A
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     minor_version   : 0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     compatible_brands: M4A mp42isom
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     creation_time   : 1970-10-20 18:30:32
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     title           : Leave (Today Is the Day)
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     artist          : Alex Max Band
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     album_artist    : Alex Max Band
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     composer        : Alex Max Band
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     album           : We've All Been There
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     track           : 8
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     disc            : 1
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     date            : 2010-09-24T07:00:00Z
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     copyright       : ℗  2010 The copyright in this sound recording is owned by AMB Records under exclusive licence to Capitol Music, a division of EMI Music Germany GmbH & Co.KG
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     encoder         : Lavf53.6.0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Stream #0.0(eng): Audio: pcm_s16be, 44100 Hz, stereo, s16, 1411 kb/s
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)     Metadata:
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)       creation_time   : 1970-10-20 18:30:32
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Stream mapping:
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)   Stream #0.0 -> #0.0
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) Press [q] to stop, [?] for help
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) size=   37364kB time=00:03:36.89 bitrate=1411.2kbits/s   
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg)
[2012-01-21 21:24:28,243] DEBUG InputStreamReaderThread - (c:\subsonic\transcode\ffmpeg) video:0kB audio:37364kB global headers:0kB muxing overhead 0.000063%
[2012-01-21 21:24:28,290] DEBUG JukeboxService - Closed line com.sun.media.sound.DirectAudioDevice$DirectSDL@e7ccd7
[2012-01-21 21:24:28,290] INFO JukeboxService - Joachim stopping jukebox for "We've All Been There\1-08 Leave (Today Is the Day).m4a"
[2012-01-21 21:24:28,290] DEBUG TranscodeInputStream - Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-ss] [0] [-i] [E:\ServerFolders\Musik\Big Time Rush\BTR\14 This Is Our Someday.m4a] [-v] [0] [-f] [au] [-]
[2012-01-21 21:24:28,415] DEBUG JukeboxService - Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@1e4e3e4
[2012-01-21 21:24:28,415] INFO JukeboxService - Joachim starting jukebox for "BTR\14 This Is Our Someday.m4a"
(copied from subsonic.log, during night the index was recreated)

Any help or advice what to try appreciated.
Thanks, jol
Subsonic 4.7 running on Acer H340 with LDAP authentication / Windows Home Server 2011 - Android client (3.5)
jol
 
Posts: 52
Joined: Sat Jan 21, 2012 7:40 pm

Re: Overdriven sound in jukebox mode?

Postby ytechie » Sun Jan 22, 2012 7:04 am

I don't really use jukebox mode, but I did try it out for a bit, and the sound wasn't overdriven. Check all other places from which you can control the volume. Maybe it's a problem somewhere else down the line.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Overdriven sound in jukebox mode?

Postby BKKKPewsey » Sun Jan 22, 2012 4:38 pm

I am not sure about WHS 2011 but on WHS R1 you need to remote login using mstsc /admin to access the audio properties.
If it's a USB device it will probably be using C-Media chip so make sure that WHS is accessing the correct drivers
:mrgreen: .
.
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Overdriven sound in jukebox mode?

Postby jol » Mon Jan 23, 2012 6:38 pm

ytechie wrote:I don't really use jukebox mode, but I did try it out for a bit, and the sound wasn't overdriven. Check all other places from which you can control the volume. Maybe it's a problem somewhere else down the line.
eliminated external amplifier, but same result with headset. I am not aware of more places in Windows. Does subsonic have its own mechanisms?
BKKKPewsey wrote:I am not sure about WHS 2011 but on WHS R1 you need to remote login using mstsc /admin to access the audio properties.
no matter how one connects with RDP, audio is screwed up afterwards. But I did my tests directly logging on to the console before using RDP at all (my WHS has keyboard, mouse, and monitor attached).
BKKKPewsey wrote:If it's a USB device it will probably be using C-Media chip so make sure that WHS is accessing the correct drivers
:mrgreen: .
.
how can I figure out the USB soundcard is using that chip or wrong driver? when I look at the device properties I get the following:
Hardware IDs:
USB\VID_1130&PID_F211&REV_0204&MI_00
USB\VID_1130&PID_F211&MI_00
compatbile IDs
USB\Class_01&SubClass_01&Prot_00
USB\Class_01&SubClass_01
USB\Class_01
and if I figure out the server is using the wrong driver, where can I obtain a better one? Any pointer?
Thanks, jol
Subsonic 4.7 running on Acer H340 with LDAP authentication / Windows Home Server 2011 - Android client (3.5)
jol
 
Posts: 52
Joined: Sat Jan 21, 2012 7:40 pm

Re: Overdriven sound in jukebox mode?

Postby BKKKPewsey » Mon Jan 23, 2012 7:00 pm

As you do not have a headless server it becomes easier to debug
Does it distort if playing back via WMP (hence rule out Subsonic config)
If it does then transfer the USB to another pc & retest.
If it still distorts then go Amazon and buy another one :D
If not then its the driver on the WHS pc - is it a generic Windows driver or did it come with the device?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Overdriven sound in jukebox mode?

Postby jol » Tue Jan 24, 2012 6:19 am

BKKKPewsey wrote:As you do not have a headless server it becomes easier to debug
Does it distort if playing back via WMP (hence rule out Subsonic config)
If it does then transfer the USB to another pc & retest.
If it still distorts then go Amazon and buy another one :D
If not then its the driver on the WHS pc - is it a generic Windows driver or did it come with the device?
it turns out sound is distorted with that USB adapter using WMP and also on a different Win 7 computer. I will shop for a different sound card.
Why did I not see these options on my own? :roll:
Thanks for the help, jol
Subsonic 4.7 running on Acer H340 with LDAP authentication / Windows Home Server 2011 - Android client (3.5)
jol
 
Posts: 52
Joined: Sat Jan 21, 2012 7:40 pm

Re: Overdriven sound in jukebox mode? [Resolved]

Postby bryan.paradis » Tue Jan 24, 2012 9:20 am

I have a really nice USB audio interface and it works just fine on everything but Jukebox Mode in Subsonic. I did a lot of digging and have figured out that the volume control on Jukebox mode is actually controlling the MASTER_GAIN on an input rather then just a Volume on the PC's mixer. I have rewritten some areas of jukebox\AudioPlayer.java to instead set all mixing devices with speaker ports to volume 0.0f -> 1.0f. This means that your application volume slider in your operating system mixer should be moving in unison with the one on your Phone App or PC Mixer.

This has not been tested on OSX or Linux. I think it should work though.

If anyone is wanting to look/try/whatever the modified Jukebox AudioPlayer.java I will upload it here. Use the below instructions to get it running:

1) Prep for Building using this Link: https://sourceforge.net/apps/mediawiki/subsonic/index.php?title=Installing_Starting_And_Stopping_Subsonic#Building_from_source
2) Replace Drive:\Extracted-Source\subsonic-main\src\main\java\net\sourceforge\subsonic\service\jukebox\AudioPlayer.java with the one attached
3) Build
4) Place subsonic.war into your Drive:\Program Files\Subsonic Folder
bryan.paradis
 
Posts: 1
Joined: Sun Apr 17, 2011 8:07 am

Re: Overdriven sound in jukebox mode? [Resolved]

Postby insleys » Thu Nov 14, 2013 12:40 am

@bryan.paradis

I too have been experiencing an issue with Jukebox mode and distortion, but with Linux. I am running Subsonic on a Raspberry Pi under the latest Rasbian. For those in the know, aplay, mpg123, shairport and so on (i.e. everything I've tested) all play back the same file at the same audible volume and there is no distortion. I have a C-Media USB sound card and it's working very nicely, thank you very much, other than for jukebox.

As all other software plays back fine with the USB card's mixer set at 0db (100%) and no other mixers in the chain, I suspected that something in Subsonic must be causing a positive gain, causing clipping of the audio data before it gets as far as the USB sound card and, possibly, before it gets to ALSA (not sure yet). I.e. Subsonic is setting a gain outside of the range -inf to 0db. This may be desired behaviour for some people if they want to boost quiet tracks, but this isn't the best solution for those that want to set a max volume on their amp/speakers and then be able to fling the Subsonic volume slider up to max without fear of being deafened / distortion.

That all led me to your post and it all makes sense.

I haven't tested your changes on Raspbian yet, but I will when I get time. I'm not sure if there are "application volume sliders" like there are in Windows, but given it's all just Java, perhaps there is an equivalent under the covers than I'm not aware of - I'm pretty new to audio on Linux, although I've been Java-ing on Windows for years and Linux-ing in server environments too.

I just wanted to let anyone tracking this thread know - I'm going to work on this and see if there's a solution that works on Windows and Linux.

A question for you though Bryan: Which release did you base your changes on? I downloaded the source for 4.8 and the comments show:

Code: Select all
@version $Id: AudioPlayer.java 2493 2011-10-31 21:20:13Z sindre_mehus $


...same as your source file. However, there are other changes that seem to be unrelated to your fix. I wonder if this file changed between versions and the version number in the file didn't update.

Thanks.
insleys
 
Posts: 8
Joined: Thu Mar 08, 2012 3:52 pm

Re: Overdriven sound in jukebox mode? [Resolved]

Postby insleys » Tue Nov 26, 2013 10:36 pm

UPDATE:

Well, I've resolved the issue of distortion at higher volumes. I will post a new topic covering what I did in the hints/tips sections when I get time.

The short version is that Subsonic was reading the min/max gain values allowed by my sound card and applying them across the range of the slider using its (very strange) gain function. My sound card reported a gain value range of -88dB to +6.63dB. Note that this resulted in a gain increase when the slider was above about four fifths of the way up. With tracks with typical modern 'loud' mastering, this resulted in clipping.

I modified the Subsonic jukebox source code to use a much more sensible gain function when going from the linear slider value to actual gain (reduction). I used the same formula as used in the Shairport code, which itself is based on the Airplay standard and roughly maps the slider full range from -30dB to 0dB gain, with a zero-value on the slider setting the gain to the minimum value allowed by the sound card - i.e. damn near silence.
insleys
 
Posts: 8
Joined: Thu Mar 08, 2012 3:52 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 57 guests