DSDIFF Decoder, foo_input_dsdiff |
![]() ![]() |
DSDIFF Decoder, foo_input_dsdiff |
Nov 21 2011, 04:47
Post
#51
|
|
|
Group: Members Posts: 1 Joined: 21-November 11 Member No.: 95302 |
Hi kode54,
I came from DIYAudio. Now I'm making fully DSD playback system https://sites.google.com/site/koonaudioproj...playback-system and, now trying to write WAV PCM TO DSD converter. There is the link on the bottom, for Wav2DSFconverter01(2).cpp.txt I'm stacking at 7th order noise shaper IIR filter. If anyone knows how to implement IIR filter in C, Please Help |
|
|
|
Nov 21 2011, 10:48
Post
#52
|
|
|
Group: Members Posts: 306 Joined: 2-July 10 Member No.: 81991 |
Oh no, please let that project die quickly, lest we get swamped with fake PS3 rips. Also
- DSD format is not public domain - DSD/DST has no compression advantage over FLAC - PCM to DSD conversion is a lossy process - for high end audio, MLP (DVD-Audio) at 24/96/5.1 or even 24/192/2.0 is a much better choice |
|
|
|
May 3 2012, 16:19
Post
#53
|
|
![]() Group: Members Posts: 648 Joined: 10-January 06 From: Zagreb Member No.: 27018 |
Today I got some dff files from shady sources; the source is not relevant for discussion.
I noticed one strange thing; when playing back the song, everything is OK, sound is good; but when I try to convert it to wavpack (set to 32 bit, 88.2 kHz, normal compression), I get quite a bit of audible errors and distortions in the resulting file. I've tried the Korg AudioGate, and the errors aren't there. but I yet have to test this. When I scan the file in foobar, it reports that the end of file is not where it is reported. And that is all. What to do? Where to search for errors? |
|
|
|
May 4 2012, 07:53
Post
#54
|
|
![]() Group: Members Posts: 648 Joined: 10-January 06 From: Zagreb Member No.: 27018 |
Korg AudioGate decoded the files perfectly, without any glitch.
I would say that the problem seems to be internal, after decoding, when piping output to wavpack. Oh well. I will try to see where the problem lies... |
|
|
|
May 4 2012, 15:50
Post
#55
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
Maybe the built-in WavPack preset doesn't know that WavPack supports floating point input. Or maybe whatever quality preset you're using doesn't support that. Perhaps hybrid lossless?
|
|
|
|
May 6 2012, 15:29
Post
#56
|
|
|
Group: Members Posts: 103 Joined: 3-February 11 Member No.: 87877 |
|
|
|
|
Nov 16 2012, 03:03
Post
#57
|
|
|
Group: Members Posts: 1 Joined: 16-November 12 Member No.: 104553 |
DSDIFF files created via the TASCAM DV-RA1000HD http://tascam.com/product/dv-ra1000hd/ don't play back correctly in Foobar2000.
We think it's because the Compression Chunk is an odd length, and the foo_input_dsdiff plugin isn't jumping over the pad byte correctly. (see DSDIFF 1.5 spec, page 9: http://www.sonicstudio.com/pdf/dsd/DSDIFF_1.5_Spec.pdf) Since ripped SACDs are almost always going to be DST Encoded (and hence have an even length chunk which doesn't need a pad byte), I doubt this code has ever seen an uncompressed dff file. Any chance of fixing this? Send me a message if you want a sample file. |
|
|
|
Dec 30 2012, 18:13
Post
#58
|
|
|
Group: Members Posts: 31 Joined: 20-June 11 Member No.: 91689 |
Hi kode54,
Great plugin One problem i have one small problem. On some tracks that are mastered a bit louder, i can see some clipping. i set the sample rate to 176400, and output 24 bit. Could the clipping be generated by the resampling process itself? Would you be willing to provide a "preamp" like control, so that the DSD stream can be slightly attenuated by 1~2db, before the resampling process so that clipping may be avoided? Also, the ability to select what resampler the component uses would be grate! i much prefer the SoX resampler |
|
|
|
Dec 30 2012, 19:35
Post
#59
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
The resampler produces floating point output, so it won't clip if you apply a gain level to the tracks, or use a DSP that applies limiting.
|
|
|
|
Dec 30 2012, 20:26
Post
#60
|
|
|
Group: Members Posts: 31 Joined: 20-June 11 Member No.: 91689 |
The resampler produces floating point output, so it won't clip if you apply a gain level to the tracks, or use a DSP that applies limiting. Big thank you for the fast answer, should have done this from the start, instead of PM Could you please elaborate a bit on that? How do i apply gain? the classic way? over foobar? i would like a DSD targeted solution. i don't use gain at all in foobar, and it would be quite the bother to change the gain settings every time i listen to a dff file, as i also have vinyl rips in the high quality folder. not to mention the rest of the 16/44.1 material... Limiting, on the other hand is useless... soft limiting like the advanced limiter kind of compresses things, and hard limiting, would be like shutting my eyes while whispering "it's not clipping"... the clipping will still be there. Seems dff files do not support storing gain info... so i can't create a special case for dff files. also, would it not be better if the gain setting would be done before PCM conversion? or due to the fact that the system works with 32 float, this becomes irrelevant? About the resampler. I have sox mod 0.7.6. i did load it and set it to 96k. i went to the components folder of foobar, and removed the f00_dsp_std.dll. when i try to play a dff file, i now get this: "Decoding failure at 0:00.000 (Unsupported sample rate, no resampler present):" Can i make the component realise that sox is there? do i need a specific version, or a do i need to tick a box somewhere? I would like to use sox as resampler, because over time, it has given me the most pleasing results, and seeing that the downsampling is done from such i high sample rate, i'd prefer the one i think is best |
|
|
|
Dec 30 2012, 20:42
Post
#61
|
|
![]() Group: Developer Posts: 2984 Joined: 2-December 07 Member No.: 49183 |
Only regular (not mod or mod2 versions) SoX resampler plugin can be used by other components.
(btw, the current version is 0.8.2) |
|
|
|
Dec 30 2012, 20:47
Post
#62
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
Incidentally, you should be able to have both regular and mod versions installed, and only use mod versions in your DSP chain.
Also, if you have both the standard DSP array and regular SoX resampler installed, SoX will take priority when any other component requests a resampler, due to priority levels in the resampler services. Well, assuming that the component requested at least a level 0 of quality, I think. |
|
|
|
Dec 30 2012, 21:12
Post
#63
|
|
|
Group: Members Posts: 31 Joined: 20-June 11 Member No.: 91689 |
Damn you people are fast with your replies
@lvqcl: thanks a bunch for letting me know about the new version. updated right away. big THANK YOU for the component. yes, with the regular sox installed, and the the dsp_std removed DFFs sing again i have one question for you since you are... here i was doing something quite stupid, thank god i started poking around - just recently started listening to sacds. apparently my stagedac does not support 176400 what i would like from you is a bit of advice. should i downsample dsd to 88200 so it's symmetrical, or 192k? i would go symmetrical by ear, but i never downsampled so 2mhz before @kode54: thanks for the priority tip, going to make a short experiment to make sure, and if all goes well, everyone goes back to the components folder. about the gain thing though... the fact you did not say anything leads me to understand that the gain settings in the properties->playback dialogue are all i can use... that true? does foobar have anything else i can use to automate the process of applying gain to dff files only? Thanks to both of you for the support! This post has been edited by misha0209: Dec 30 2012, 21:13 |
|
|
|
Dec 30 2012, 21:54
Post
#64
|
|
![]() Group: Admin Posts: 4219 Joined: 15-December 02 Member No.: 4082 |
You can downsample with this component to any arbitrary sample rate. The SACD input component may or may not support arbitrary rates.
No, this component does not have a gain setting. You may set a ReplayGain offset level for untagged files, and that will reduce their volume. Or you can use the Advanced Limiter DSP. Since these files aren't taggable, you can't exactly ReplayGain scan them. |
|
|
|
Dec 30 2012, 22:04
Post
#65
|
|
|
Group: Members Posts: 31 Joined: 20-June 11 Member No.: 91689 |
You can downsample with this component to any arbitrary sample rate. The SACD input component may or may not support arbitrary rates. I was asking what would give the "best" sonic result. should i be using symmetric values although they are small (88200), or go for the higher 192k. So foobar replay gain is the only chance i have... sad... suppose there is no chance you could make the component use the gain part of foobar internally, like you did with the sox resampler? or would that be too much of a hassle? This post has been edited by misha0209: Dec 30 2012, 22:06 |
|
|
|
Dec 30 2012, 22:42
Post
#66
|
|
![]() Group: Developer Posts: 2984 Joined: 2-December 07 Member No.: 49183 |
|
|
|
|
Dec 30 2012, 23:26
Post
#67
|
|
|
Group: Members Posts: 31 Joined: 20-June 11 Member No.: 91689 |
you could make the component use the gain part of foobar internally But what's the point in this? point would be to only apply gain to .dff files only. i try as much as i can to get bit perfect to my dac. unless i make a stupid mistake like the one i described above... but those i fix in a day or 2... takes me some time to notice. the idea was to apply an attenuation of ~1db to all .dff files. and only the .dff files. since i can't tag them, the easiest possible way would be for the component to offer the possibility to "clean" it's output. I realise though that this component is made for free, so i can not impose... i can just bitch about it here, and if the developer sees fit, the thing will get implemented. if not... well... i tried though i think i am not the only one using this component. and the fact that you get clipping is a problem. as i try to get bit perfect, i don't use replaygain at all. and i do have vinyl rips, and normal redbook disks. it would be a real bother to change replay gain settings every time i switch input file format... but then again, that may be just me... |
|
|
|
Jan 1 2013, 19:06
Post
#68
|
|
|
Group: Members Posts: 31 Joined: 20-June 11 Member No.: 91689 |
Hello again,
Let me start off with best wishes for the new year! Now, i'm taking the silent treatment here as a definite no to implementing the above discussed things. too bad... So, i'm trying to find other solutions... are there any cabinets these .dff files could be put in? or any sort of file where i can store the replay gain info for these tracks? The plan would be to store info on the dff files, and not scan the rest of my collection Some songs can be saved by 1.5db attenuation, but others... for example i have Hotel California over here, and on a sharp attack, the peak clips for ~30 consecutive samples. i'm thinking it will go much higher than even 3db can save. so it would be best to be able to use something like apply gain and prevent clipping according to peak... but you need to know where the peak is for that one i read that dsf files support idv3 tags. but i can not play dsf files in foobar. guessing the component can not decode those? Any insight? This post has been edited by misha0209: Jan 1 2013, 19:19 |
|
|
|
Jan 1 2013, 21:23
Post
#69
|
|
![]() Group: Members Posts: 477 Joined: 22-December 03 From: Malmö, Sweden Member No.: 10615 |
Try foo_input_sacd
|
|
|
|
Jan 1 2013, 23:30
Post
#70
|
|
|
Group: Members Posts: 31 Joined: 20-June 11 Member No.: 91689 |
Try foo_input_sacd Thanks, this one seems to consider the clipping problem. And idea what resampler it uses? [Seems it was made to decode iso files only though... bummer... need more storage scratch the above comment. i deleted foo_input_dsdiff.dll and i can still play dff files. hello This post has been edited by misha0209: Jan 1 2013, 23:34 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 19:32 |