INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Flac conversion failures  (Read 4063 times)

rgreenwalt

  • Recent member
  • *
  • Posts: 8
Flac conversion failures
« on: October 19, 2015, 02:17:12 pm »

Hi,

I'm trying to convert some dsd audio files to flac and while most have worked just fine, some finish very quickly with a status of "Failed" as their "detail".  I know the source dsd plays fine.  What can I do to debug the failure and resolve the issue?  Are there log files somewhere that would have more information on the reason for the failure?

Thanks!

Robert
Logged

rgreenwalt

  • Recent member
  • *
  • Posts: 8
Re: Flac conversion failures
« Reply #1 on: October 19, 2015, 02:24:09 pm »

Hmm - conversion of wav->flac also fails.  I tried working around the dsd->flac failure by going to wav first.  The dsd->wav conversion worked fine and the wav is playable.

This isn't a general failure of the flac encoder: I have successfully converted dsd->flac for other albums since encountering this problem..

Thanks again,
Robert
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10970
Re: Flac conversion failures
« Reply #2 on: October 19, 2015, 02:28:13 pm »

What kind of DSD file is it? I just tried and it seems to work here.
You may need to setup resampling in the converters DSP options, as FLAC is limited to the sample rate (and really, you generally want to downsample DSD when converting it to PCM).

You can setup resampling for conversion in the Options of the converter, Enable Apply DSP and Setup the DSP to resample. A common sample rate for DSD to use in PCM is 88.2k.
Logged
~ nevcairiel
~ Author of LAV Filters

rgreenwalt

  • Recent member
  • *
  • Posts: 8
Re: Flac conversion failures
« Reply #3 on: October 19, 2015, 02:49:35 pm »

It's a 2 channel 5.6Mhz (double-rate) dsd I bought online.  It's not the only dsd I've bought from this source, but it's the only one that fails to convert.  It plays fine.

I discovered the logging system under the help menu, but the logs aren't really informative:
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: Start
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: Blocks: 356502988
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: Successfully completed Encoder setup
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: Setting up MetaData blocks
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: Adding SeekTable
5508426: 760: Encoders: EncoderImpl::SetSeekTable(&st, 356502988, 705600)
: Start
5508426: 760: Encoders: EncoderImpl::SetSeekTable(&st, 356502988, 705600)
: Finish (0 ms)
5508426: 760: Encoders: CFlacEncoder::StartBufferBased:     Adding Padding Block
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: Initializing the encoder with the following settings:
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: bits per sample = 24
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: verify          = True
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: ERROR - Failed to init
5508426: 760: Encoders: CFlacEncoder::StartBufferBased: Finish (0 ms)
Logged

rgreenwalt

  • Recent member
  • *
  • Posts: 8
Re: Flac conversion failures
« Reply #4 on: October 19, 2015, 03:00:33 pm »

Trying your suggestion of enabling the dsp.  I'm pretty sure I haven't been flipping that on or off between success/failure attempts, but I'll try anything at this point..
Logged

rgreenwalt

  • Recent member
  • *
  • Posts: 8
Re: Flac conversion failures
« Reply #5 on: October 19, 2015, 04:50:29 pm »

Your suggestion about enabling the dsp DID work.

I'm going to have to do some experiments re-converting other stuff with the dsp on and off to see if I can understand what's up.

Thanks for the help!

Robert
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Flac conversion failures
« Reply #6 on: October 19, 2015, 04:53:02 pm »

It's a 2 channel 5.6Mhz (double-rate) dsd I bought online.  It's not the only dsd I've bought from this source, but it's the only one that fails to convert.  It plays fine.

That's definitely the problem.  The "native" rate of DSD128 is 705.6 kHz.  Apparently this is beyond the limit for FLAC and it will fail to produce a file.  If you use the DSP Settings and use Output Format to map 705,600 to output to a lower sampling rate (like 96,000 for example), then the FLAC conversion should work properly.

Single rate DSD (DSD64) will convert without using DSP Studio, but you'll end up with FLACs with a sampling rate of 352.8 kHz, which makes REALLY big files.  REALLY BIG!  You probably want to use DSP Studio's Output Format on those too.  Probably convert them down to 192,000 or below.

Brian.
Logged

rgreenwalt

  • Recent member
  • *
  • Posts: 8
Re: Flac conversion failures
« Reply #7 on: October 19, 2015, 07:14:39 pm »

Yeah - that explains why some dsd's were working.  Thanks for the explanation.
Logged
Pages: [1]   Go Up