HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: HelghastG75 on 2021-02-21 14:39:25

Title: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-21 14:39:25
Is that at least possible through ffmpeg? If so, how to do it? I want to convert some of my wav files to dsd64. I looked for it in google and i didnt found anything, on each audio forum including hydrogen audio, i tried to make a .bat file with following content: -i filename.wav filename.dsf and it didnt worked.
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: Rollin on 2021-02-21 16:57:53
ffmpeg cannot convert to dsd.
But there is SoX that supports conversion to DSD. https://www.audiofaidate.org/sw/sox-dsd/
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-21 17:21:21
How to do it through SoX then?
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-21 18:33:25
How to do it through SoX then?
I installed sox and what to do further?
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: AiZ on 2021-02-21 21:17:43
sox input.wav ouput.dsf rate -v 2822400
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-22 10:41:59
Thanks!!
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-22 10:48:27
Seems like i get an error: sox FAIL formats: no handler for file extension 'dsf'
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: AiZ on 2021-02-22 13:50:24
You need to download and use the modified version, Rollin gave you the link above.
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-22 17:03:23
Ok, but how to install and use it? I created a .bat file with sox blank.wav blank.dsf rate -v 2822400 and it doesnt recognise sox command when i type it manually, after clicking on that .bat file console pop ups and disappears in the same time.
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-22 21:43:01
Ok it seemed like i downloaded wrong file, i downloaded sox-dsd-win32-MSVC.zip and everything works fine. Can someone post here a lines for dsd128 and dsd256?
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-22 22:19:10
Also could someone tell me how to convert wav to dsd in foobar2000? Step after step.
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: dewdude on 2021-02-23 03:37:49
Also could someone tell me how to convert wav to dsd in foobar2000? Step after step.

Install the SACD component as well as DSD Processor from https://sourceforge.net/projects/sacddecoder/, both are in the foo_input_sacd package.

Install the DSD Converter component from https://sourceforge.net/projects/sacddecoder/files/foo_dsd_converter/

Once both are installed, to go Preferences, Tools, SACD. Set DSD Processor to DSD Processor.

Click on DSD Processor also under Preferences, Tools.

Click next to the PCM sample rate under the Output column and select the DSD rate you want (SACD is DSD64). Click on SDM type and just select C.

Load your PCM-based files in Foobar. Right click, go to convert, select DSD Convert. Set the output format you want (DSDIFF OR DSF). Select your output path and your filename format. Click convert.

Foobar will spit out DSF/DFF files from your WAV/FLAC.

Alternatively; you can search for TASCAM Hi-Res Editor. It will also convert between PCM and DSD and has a price-tag of $0.
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-23 12:22:47
Thanks a lot!!
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: dewdude on 2021-02-23 15:57:19
No problem. Some things I will note:

DFF files produced by DSD Converter are not SACD compatible, theyre not recgonized by any Philips tools. I've been working on examining the files to figure out why.

Please dont author PCM converts as SACD and try to pass them off any "communities" as a legitimate SACD.

Realtime playback in DSD if thats your goal can be done in Foobar by just activating DSD Processor and playing the file.
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-02-25 00:01:06
When i run TASCAM editor i get bluescreen. Can somebody explain why that happens to me?
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: dewdude on 2021-02-25 15:08:27
Sorry. Never had a problem with TASCAM. This would indicate some driver issues with your computer.
Title: Re: Convert .wav or .flac files to dsd64 in ffmpeg
Post by: HelghastG75 on 2021-05-18 17:31:54
Ok, i just realised that the sox convertion gives me the best quality, are there any options to also increase the quality a bit instead of upsampling to dsd128/256? i read something on the forums that filters like sdm can be used but they doesnt work for me. Can you explain me whats the point with these filters?
SimplePortal 1.0.0 RC1 © 2008-2021