Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    488

    Help on Audio::Scan 0.9.5

    HI all,

    first question is where I could find the source code for Audioscan used in squeezebox server 7.9.1 (Audio::Scan: 0.95)?

    I have a copy of the 0.95 but I don't remember where it come from or if I modified it (I suppose yes) but is giving different (better) result if used over WAV files different than 44100/16:

    The 'stock' Audio::Scan .9.5:
    Code:
    file         offset	size	        ch     s/r      bit 	secs     
    wav 16 192000	44	99379200	2	192000	16	129.4   
    wav 16 44100	44	22826160	2	44100	16	129.4    
    wav 16 96000	44	49689600	2	96000	16	129.4    
    wav 24 192000	80	149068800	2	192000	24	17.551   
    wav 24 384000	80	298137600	2	384000	24	6.367
    wav 32 384000	80	397516800	2	384000	32	6.367
    where mine always returns correctly 129.41 (or 129.40) secs.

    second question is:

    does anybody found this error before? could be it was introduced by the 7.9.1 upgrade?

    If I could get the original source code I'll make a diff over mine and I'll report what has changed, then maybe Michael could apply changes and correct the error.

    thx
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,031
    Quote Originally Posted by marcoc1712 View Post
    HI all,

    first question is where I could find the source code for Audioscan used in squeezebox server 7.9.1 (Audio::Scan: 0.95)?
    I assumed it is the one in github https://github.com/Logitech/slimserv...ublic/7.9/CPAN ?

  3. #3
    Senior Member pinkdot's Avatar
    Join Date
    Nov 2009
    Location
    The Netherlands
    Posts
    844
    -LMS on Raspian Stretch
    -RPI 3 (Moode 3.8 + Raspotify + Squeezelite), Allo Boss DAC- Exposure 3010S2 - PMC FB1i
    -2x Radio
    -Laptop - openSUSE Leap - Squeezelite

  4. #4
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    488
    Quote Originally Posted by pinkdot View Post
    this one is 0.9.6, is the same?
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  5. #5
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    488
    Quote Originally Posted by bpa View Post
    I assumed it is the one in github https://github.com/Logitech/slimserv...ublic/7.9/CPAN ?
    Thanks, I missed whe have CPAN here...

    good to know!


    many thanks, I'll compare the two versions.
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  6. #6
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    488
    I've compared the two versione, indeed they are not the same, but I was wrong, the difference in the song duration is not becouse the different Audio::Scan version, both reported the same wrong one, in short, I did not remember that I was using sox --i to get the correct one:

    Code:
    AudioScan: {
      info => {
                audio_offset    => 80,
                audio_size      => 397516800,
                bitrate         => 24576000,
                bits_per_sample => 32,
                block_align     => 8,
                channels        => 2,
                file_size       => 397516880,
                format          => 65534,
                jenkins_hash    => 643161139,
                samplerate      => 384000,
                song_length_ms  => 6367,
              },
      tags => {},
    } at F:\SVILUPPO\AudioScan\AudioScan.pl line 78.
    AudioScan: {
      info => {
                audio_offset    => 80,
                audio_size      => 397516800,
                bitrate         => 24576000,
                bits_per_sample => 32,
                block_align     => 8,
                channels        => 2,
                file_size       => 397516880,
                format          => 65534,
                jenkins_hash    => 643161139,
                samplerate      => 384000,
                song_length_ms  => 6367,
              },
      tags => {},
    } at F:\SVILUPPO\AudioScan\AudioScan.pl line 78.
    "F:/Sviluppo/slimserver/Plugins/C3PO/Bin/MSWin32-x86-multi-thread/sox.exe --i \"F:\\SVILUPPO\\01 - SqueezeboxServer Plugins\\musica campione\\wav_32_384000.wav\""
    0
    (
      "\n",
      "Input File     : 'F:\\SVILUPPO\\01 - SqueezeboxServer Plugins\\musica campione\\wav_32_384000.wav'\n",
      "Channels       : 2\n",
      "Sample Rate    : 384000\n",
      "Precision      : 32-bit\n",
      "Duration       : 00:02:09.40 = 49689600 samples ~ 9705 CDDA sectors\n",
      "File Size      : 398M\n",
      "Bit Rate       : 24.6M\n",
      "Sample Encoding: 32-bit Signed Integer PCM\n",
      "\n",
    )
    Don't know why Auudio::Scan reports 6367 msec, but is wrong, 129.40 secs (00:02:09.40) is the correct one. Next step should be to investigate Audio::Scan, but - and this is a question to Michael - if I'll find the error are you willing to correct it in 'production' ?
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  7. #7
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    613
    Quote Originally Posted by marcoc1712 View Post
    Don't know why Auudio::Scan reports 6367 msec, but is wrong, 129.40 secs (00:02:09.40) is the correct one. Next step should be to investigate Audio::Scan, but - and this is a question to Michael - if I'll find the error are you willing to correct it in 'production' ?
    Audio::Scan is written by Andy Grundman.
    I'd suggest reporting this issue directly.

  8. #8
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    488
    Quote Originally Posted by Roland0 View Post
    Audio::Scan is written by Andy Grundman.
    I'd suggest reporting this issue directly.
    Sure, but then we'll have to adopt the new version...
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  9. #9
    Senior Member
    Join Date
    Dec 2009
    Location
    Albinea (Bologna Area) Italy
    Posts
    488

    Solved

    Hi Andy Gruman solved the iusse and released the 0.97 version in CPAN. See here for a short description of problem and solution:

    https://github.com/andygrundman/Audi...ment-294210376

    I'm trying to compile and use it myself, but

    @Michael:
    Shall we hope in a having this version in LMS ?
    __________________________________________________ __________
    SB+, Klimo Merlino + Kent Gold, Monitor Audio Studio 20 Gold SE+, Klimo reference and DIS Interconnect.

  10. #10
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,701

    Help on Audio::Scan 0.9.5

    > Hi Andy Gruman solved the iusse and released the 0.97 version in CPAN.

    Cool!

    > Shall we hope in a having this version in LMS ?


    You can always hope. But don't hold your breath: quite obviously hardly
    anyone is using 24/192k WAV files with LMS, or we would have seen this
    issue long before. Building these modules for a number of platforms otoh
    is a lot of work. Not to mention the risk of breaking things for the
    99.999% other users.

    --

    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •