TLDR: using FFMPEG, how can I programmatically detect clipping when converting DFF to PCM if I have the gain too high?
I have a couple hundred SACDs which I normally listen to as DSF, but I'm tired of them being a pain in the audio chain. I've put together scripts to convert to PCM. My goal here is to script the whole thing so that I can go to bed, wake up the next morning, and have a bunch of PCMs. Fortunately I saved the ISOs when originally ripping![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I have read somebody's advice to use +4 gain when converting as a good way to avoid clipping, but my preference is to have the gain as close to +6 as possible. Since I'm scripting everything it would be no big deal to try at +6 and then back off, if only I knew when to back off. Any pointers? I'm currently using ffmpeg for the conversion, but I'm not married to it; I was originally using SOX until I discovered it doesn't support multichannel DSD -> PCM. Something that would return a non-zero exit code would be ideal, but it's no big deal if I have to invoke a tool with detailed logging and then dig through stdout/stderr.
BTW, I know somebody will say "Just buy a DAC that supports DSD". I have those.
ETA: Trying to summarize requirements:
* Output to 24bit PCM. Specifically signed integer 24 bit.
* Command line only. No GUI
* Support multichannel
I have a couple hundred SACDs which I normally listen to as DSF, but I'm tired of them being a pain in the audio chain. I've put together scripts to convert to PCM. My goal here is to script the whole thing so that I can go to bed, wake up the next morning, and have a bunch of PCMs. Fortunately I saved the ISOs when originally ripping
I have read somebody's advice to use +4 gain when converting as a good way to avoid clipping, but my preference is to have the gain as close to +6 as possible. Since I'm scripting everything it would be no big deal to try at +6 and then back off, if only I knew when to back off. Any pointers? I'm currently using ffmpeg for the conversion, but I'm not married to it; I was originally using SOX until I discovered it doesn't support multichannel DSD -> PCM. Something that would return a non-zero exit code would be ideal, but it's no big deal if I have to invoke a tool with detailed logging and then dig through stdout/stderr.
BTW, I know somebody will say "Just buy a DAC that supports DSD". I have those.
ETA: Trying to summarize requirements:
* Output to 24bit PCM. Specifically signed integer 24 bit.
* Command line only. No GUI
* Support multichannel
Last edited: