title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 12 of 12

Thread: questions about Resample DSP

  1. #1
    dBpoweramp Enthusiast
    Join Date
    Feb 2008
    Posts
    53

    questions about Resample DSP

    If used from the command line...

    1. is Resample the latest-greatest DBpoweramp sample rate conversion engine, the one which features so well on the famous Infinite Waves SRC comparison site?

    2. Can I set both the Min and Max for Resample to 44100, so that if any file other than a 44.1 file is input, it will get converted to 44.1, and if 44.1 is input, Resample processing is skipped?

    3. Can I set Resample to output 24 bit instead of 16 bit if (and only if) it processed a file other than 44.1? In other words, if a 16/44.1 file is input, the output file be 16/44.1 ; but if a 16/48 file is input, the output file will be 24/44.1 ?

    thanks

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    43,831

    Re: questions about Resample DSP

    1. Yes
    2. Yes
    3. Not possible.

  3. #3
    dBpoweramp Enthusiast
    Join Date
    Feb 2008
    Posts
    53

    Re: questions about Resample DSP

    Thank you for the fast reply. For the scenario *2 above, if I use this command line syntax
    Code:
    "C:\Program Files (x86)\Illustrate\dBpoweramp\coreconverter.exe" -infile=%%A -outfile="M:\DJ\jDJproj\Trax\2B-Warped\%%~nA.aiff" -dspeffect1="Resample=-fmin={qt}44100{qt} -fmax={qt}44100{qt}" -convert_to="AIFF"
    it outputs the following
    Code:
    dBpoweramp Music Converter           (C) 2009 Illustrate Ltd
    
    Encoding: AIFF
    Audio Source: M:\MUSIC-BANK\misc\oct16\Uncharted - ManuMan x icekream.mp3
    Audio Destination: M:\DJ\jDJproj\Trax\2B-Warped\Uncharted - ManuMan x icekream.aiff
    DSP Effects: Resample
    
     0%-----------25%-----------50%-----------75%-----------100%
     Error DSP Resample Frequency not supported:
      Destination Audio Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 48000  Bytes Per Second: 192000  Block Al
    ign: 4  CB Size: 0
    
    
    Writing ID Tags: Done
    Conversion Failed.
    The input file is 16/48. Curious why this is failing.

  4. #4
    Administrator
    Join Date
    Apr 2002
    Posts
    43,831

    Re: questions about Resample DSP

    You would have to enable debug log to see what it says, run dBpoweramp configuration.

  5. #5
    dBpoweramp Enthusiast
    Join Date
    Feb 2008
    Posts
    53

    Re: questions about Resample DSP

    Code:
    Splitting Command Line:Done
    Decodes  [clDecoder::Get]
    ->->  [cldBCodecHandler::LoadEncoder]
      Loading Encoder 'C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\AIFF.DLL'
    <-<-  [cldBCodecHandler::LoadEncoder]
    ->->  [dBCoreConverter::StripCoreConverterCmds]
    <-<-  [dBCoreConverter::StripCoreConverterCmds]
    SendRawUnCompressed  [clEncoder::Get]
    IsLive  [clDSP::Get]
    SendOverReplayGainTags  [clDSP::Get]
    Communicate  [clDecoder::Get]
    Communicate  [clEncoder::Get]
    NeedHQAudio  [clEncoder::Get]
    ->->  [clDecoder::Open]
      Opening file 'M:\MUSIC-BANK\misc\oct16\Uncharted - ManuMan x icekream.mp3' for read access: Opened
      ->->  [clDecoder::ReadIDTags]
        Reading Tag: APE contained 0 tags:
        Reading Tag: ID3v2 contained 20 tags:
    			Artist: ManuMan x icekream
    			Comment iTunNORM:  00000ADA 00000BBE 0000B4EB 0000B59D 0001F728 0001F728 0000929B 0000914A 00037AA0 0001E078
    			Comment iTunSMPB:  00000000 00000210 00000870 0000000000B0F400 00000000 009360C0 00000000 00000000 00000000 00000000 00000000 00000000
    			Dynamic Range (DR): 6
    			Dynamic Range (R128): 7.9068398475646972
    			Encoder Settings: Logic 10.0.7
    			Genre: Pirate Trap
    			Peak Level (R128): +0.7 dBTP; +0.6 Left; +0.7 Right
    			Peak Level (Sample): +0.0 dB; +0.0 Left; +0.0 Right
    			replaygain_track_gain: -6.68 dB
    			replaygain_track_peak: 1.000000
    			Tempo: 72
    			Title: Uncharted
    			Tool Name: Media Center
    			Tool Version: 20.0.131
    			Volume Level (R128): -11.6754798889160156
    			Volume Level (ReplayGain): -6.6754798889160156
    			_albumart_1_Undefined: DATA Length: 4360069   ....DdExif..MM.*....
    			_albumart_2_Undefined: DATA Length: 3865309   ....>GExif..MM.*....
    			_albumart_3_Undefined: DATA Length: 157765   ......JFIF.....d.d..
        Reading Tag: ID3v1 contained 2 tags:
    			Title: Uncharted
    			Artist: ManuMan x icekream
      <-<-  [clDecoder::ReadIDTags]
      ->->  [clsmpeg123::Init]
        mpeg data stream begins at byte position: 8384512
      <-<-  [clsmpeg123::Init]
      ->->  [clDecoder::FillAudioProps]
    	Audio Quality: Very High  (Lossy)
    	Encoder: FHG (Guess)
    	Encoder Settings: Constant Bit Rate 320 kbps
    	Channel Mapping: Left, Right
    	Channel Coupling: Joint-Stereo
    	Sample Count: 11,599,488
    	MPEG Version: MPEG 1 Layer III
    	MPEG Technical: Header: (none)   Bits: (none)
    	ID Tag: ID3v2.3 & ID3v1.0
    	Contains: Album Art, ReplayGain, ID Tag [ID3v2.3 & ID3v1.0]
    	Gapless: No
      <-<-  [clDecoder::FillAudioProps]
      ->->  [clDecoder::FillAudioInfo]
        Uncompressed WFX (sent to db): Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 48000  Bytes Per Second: 192000  Block Align: 4  CB Size: 0
        Audio Length: 241656 mili-seconds  9666240 bytes  320 kbps
      <-<-  [clDecoder::FillAudioInfo]
      Creating Decode Buffer: Created
    <-<-  [clDecoder::Open]
    SendOverReplayGainTags  [clEncoder::Get]
    ->->  [clDSP::BeginConversion]
    *** Error: Error DSP Resample Frequency not supported:
        Source Audio Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 48000  Bytes Per Second: 192000  Block Align: 4  CB Size: 0
    *** Error:   Destination Audio Format Tag: 1  Channels: 2  Bits per Sample: 16  Samples Per Second: 48000  Bytes Per Second: 192000  Block Align: 4  CB Size: 0
    <-<-  [clDSP::BeginConversion]
    ->->  [clEncoder::BeginConversion]
      Professional sample rate conversion.
      Converting to 'M:\DJ\jDJproj\Trax\2B-Warped\Uncharted - ManuMan x icekream.aiff.tmp.aiff' encoder settings ''
      ->->  [clAIFFHandler::InitializeNewAIFF]
        clAIFFHandler::CalcAllChunks: Ok
        ->->  [clAIFFHandler::AddChunk]
          ->-> Adding Chunk 'COMM' Length: 18  [clAIFFHandler::AddChunk]
            clAIFFHandler::CalcAllChunks: Ok
          <-<-  [clAIFFHandler::AddChunk]
          ->->  [clAIFFHandler::AddChunk]
            ->-> Adding Chunk 'SSND' Length: 0  [clAIFFHandler::AddChunk]
              clAIFFHandler::CalcAllChunks: Ok
            <-<-  [clAIFFHandler::AddChunk]
            ->->  [clAIFFHandler::WriteChunkHeaders]
              clAIFFHandler::CalcAllChunks: Ok
              Writing Chunk Header 'COMM'  Length: 18  ChunkPosition: 12  ChunkDataPos: 20
              Writing Chunk Header 'SSND'  Length: 0  ChunkPosition: 38  ChunkDataPos: 46
            <-<- Exit as only write to SSND chunk  [clAIFFHandler::WriteChunkHeaders]
            Writing Chunk Data 'COMM'  Length: 18  ChunkPosition: 12  ChunkDataPos: 20
          <-<-  [clAIFFHandler::InitializeNewAIFF]
          Writing STSoundData 
        <-<-  [clEncoder::BeginConversion]
    Communicate  [clDecoder::Get]
        Communicate  [clEncoder::Get]
    Encoding To: AIFF
    Encoder Cmd Line: 
    DSP Effects:
        Resample: -fmin="44100" -fmax="44100"
    
    ============= CONVERSION BEGIN =============
    ============= CONVERSION END =============
    Communicate  [clDecoder::Get]
        Communicate  [clEncoder::Get]
    ->->  [dBCoreConverter::CloseDecoder]
    ->->  [clDecoder::Close]
    <-<-  [clDecoder::Close]
    ->->  [clDSP::EndConversion]
    <-<-  [clDSP::EndConversion]
        ->->  [clEncoder::EndConversion]
          ->->  [clAIFFHandler::WriteChunkHeaders]
            clAIFFHandler::CalcAllChunks: Ok
            Writing Chunk Header 'SSND'  Length: 65540  ChunkPosition: 38  ChunkDataPos: 46
          <-<-  [clAIFFHandler::WriteChunkHeaders]
          Writing Chunk Data 'COMM'  Length: 18  ChunkPosition: 12  ChunkDataPos: 20
        <-<-  [clEncoder::EndConversion]
      File Size Check (before overwrite final): 65586 bytes   Filename: M:\DJ\jDJproj\Trax\2B-Warped\Uncharted - ManuMan x icekream.aiff.tmp.aiff
    Communicate  [clDecoder::Get]
        Communicate  [clEncoder::Get]
    ->->  [clDSP::AfterConversion]
    <-<-  [clDSP::AfterConversion]

  6. #6
    Administrator
    Join Date
    Apr 2002
    Posts
    43,831

    Re: questions about Resample DSP

    I have tried your command line and it works fine with R16, it must have been an issue resolved over the many years (your version is 7 years old).

  7. #7

    Join Date
    Jan 2018
    Posts
    1

    Re: questions about Resample DSP

    Hi...How are you calculating the expected number of samples per block? Filters and interpolators used in resampling will ring producing more samples. These extra tailing samples need to overlap adjacent blocks. Maybe you already know this, but without seeing the code, or even what kind of upsampling, downsampling and interpolation procedures you're using, it's hard to know where the problem is.

  8. #8

    Join Date
    Feb 2021
    Posts
    29

    Re: questions about Resample DSP

    Quote Originally Posted by JayNYC View Post
    [...]
    For the scenario *2 above, if I use this command line syntax
    [...]
    Is it possible, now after many updates of the software, to somehow set this within the GUI options?

    I need to have in my shell menu entries that will convert audio files to WAVs and other audio formats that will have always 44 kHz - I do not want them to inherit kHz resolution of the source material

  9. #9
    Administrator
    Join Date
    Apr 2002
    Posts
    43,831

    Re: questions about Resample DSP

    Use the DSP effect resample and set it to 44.1KHz

  10. #10

    Join Date
    Feb 2021
    Posts
    29

    Re: questions about Resample DSP

    But how / where?

    I cannot find it

  11. #11
    Administrator
    Join Date
    Apr 2002
    Posts
    43,831

    Re: questions about Resample DSP

    Are you using R17 ? it is in the list of DSP effects, either in Music Converter or on the DSP tab in CD Ripper.

  12. #12

    Join Date
    Feb 2021
    Posts
    29

    Re: questions about Resample DSP

    And so it is available under

    DSP Effects > Add > Add DSP Effect > Resample

    and not merely as a one-click-box for every format


    Now I see it, thank you

Posting Permissions

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