Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Upsample 44.1 24-bit to 48 24-bit for DVD (Read 16176 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #25
what does the HydrogenAudio community think of SACD, DVD-A, and HD audio tracks?

Sometimes these releases contain different and better (such as larger dynamic range) mastering of the material, but sometimes not.  This has been mentioned many times.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #26
Concerning the problem of track transitions mentioned earlier, Foobar2000's Converter has a "Don't reset DSP between tracks" option that should take care of that. It also is a teeny tiny bit more comfy to operate than command-line SoX. (The SoX resampler plugin for Foobar should be equivalent in quality, AFAIK.)

I would recommend applying a few dB of negative gain when resampling. This can be done by making use of the ReplayGain preamp setting, or applying album gain if the source material has been RG scanned. Peak levels may increase by up to 2-3 dB or so upon resampling of brickwalled material (which commonly peaks within a fraction of a dB short of fullscale already), and you don't want to needlessly introduce extra clipping.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #27
Concerning the problem of track transitions mentioned earlier, Foobar2000's Converter has a "Don't reset DSP between tracks" option that should take care of that. It also is a teeny tiny bit more comfy to operate than command-line SoX. (The SoX resampler plugin for Foobar should be equivalent in quality, AFAIK.)

This really works. Unfortunately foobar has a different opinion about dither as me and i still prefer SoX itself. Now if there was a way to use SoX in the way foobar does use its dsp.

I would recommend applying a few dB of negative gain when resampling. This can be done by making use of the ReplayGain preamp setting, or applying album gain if the source material has been RG scanned. Peak levels may increase by up to 2-3 dB or so upon resampling of brickwalled material (which commonly peaks within a fraction of a dB short of fullscale already), and you don't want to needlessly introduce extra clipping.

With a gentle filter for resampling i often need not more then 0.5dB and sometimes none at all with my type of music that is seldom compressed to death.
Is troll-adiposity coming from feederism?
With 24bit music you can listen to silence much louder!

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #28
Now if there was a way to use SoX in the way foobar does use its dsp.


I do not know if that is a solution but you can feed sox with data from standard input. In this mode sox starts the dsp engine only once. Very listing all the files as input would produce the same result - keep the dsp chain running/"hot" between the processed files. We would have to check the source code or ask at sox mailinglist.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #29
Maybe i have to fiddle a bit but telling frontah to use stdin with the command line changes nothing, clicks are there.
Is troll-adiposity coming from feederism?
With 24bit music you can listen to silence much louder!

 

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #30
Do the tracks tested make smooth transition, or are  there discontinuities?

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #31
Do the tracks tested make smooth transition, or are  there discontinuities?

My files i resample for this test have no smooth transition. I go from 24/48 to 16/44.1 On smooth transitions there is no problem.
Is troll-adiposity coming from feederism?
With 24bit music you can listen to silence much louder!

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #32
Then a big resampled track will have clicks, just like the unresampled (only concatenated) one does.

What I meant by stdin is concatenating the tracks first and resampling one large track at once, to avoid resampling discontinuities at  edges of each track (that "Don't reset DSP between tracks" functionality).


Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #33
Exactly that is what i want to avoid. foobar works with just setting an option. I think there should be some solution for Sox itself.
btw. maybe we make another thread out of these last posts?
Is troll-adiposity coming from feederism?
With 24bit music you can listen to silence much louder!

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #34
Exactly that is what i want to avoid. foobar works with just setting an option. I think there should be some solution for Sox itself.
btw. maybe we make another thread out of these last posts?


I don't see how that would be possible for a command line program unless you're going to list every single file in the album on the command line.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #35
I don't see how that would be possible for a command line program unless you're going to list every single file in the album on the command line.

http://www.hydrogenaudio.org/forums/index....st&p=845272
Something like this but i am no expert.
Is troll-adiposity coming from feederism?
With 24bit music you can listen to silence much louder!

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #36
Slightly off-topic, but perhaps helpful, I have just uploaded to Rarewares, Others page, win32 and 64 bit compiles of SoXRDrop. Essentially, this is SRCdrop recompiled using the SoXR libraries. Much smaller compiles and much faster in execution.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #37
I don't see how that would be possible for a command line program unless you're going to list every single file in the album on the command line.

http://www.hydrogenaudio.org/forums/index....st&p=845272
Something like this but i am no expert.


That would help, but I think to be completely gapless, you would need to know at least a few samples from both tracks.  You can actually make filters that do not have edge ringing (see matlab's filtfilt command for instance), but theres still the problem of computing an interpolated sample that falls between the last sample of the first track and the first sample of the second track. 

Its more accurate (and probably much, much faster) to just use a GUI program that can feed in the tracks as one PCM stream and split them afterwards.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #38
I don't see how that would be possible for a command line program unless you're going to list every single file in the album on the command line.


Code: [Select]
H:\Music\audio>( for /R %f in (.\*.flac) do c:\sox\sox.exe "%f" -t raw -r 44100 -b 24 -s -  ) | C:\sox\sox -t raw -b 24 -s -c 2 -r 44100 - -r 48000 -b 24 c:\output.flac


Basically loop through all flac files, convert to raw with common format (rate, bitwidth), output to stdout  and feed this whole subshell output to sox doing the final whatever-you-need.

Oh, how much I hate windows scripting, being spoilt by linux bash

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #39
Basically loop through all flac files, convert to raw with common format (rate, bitwidth), output to stdout  and feed this whole subshell output to sox doing the final whatever-you-need.


I'm not great with sox, but doesn't that give you one giant flac file?  I think you would need to also enter commands to then split the resulting file after resampling.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #40
I assumed you wanted to play the many tracks at once, resampled.

What does that checkbox actually do? Does it affect the resampling module too? Which one? I cannot find any authoritative information https://www.google.com/search?client=ubuntu...%22&start=0

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #41
I assumed you wanted to play the many tracks at once, resampled.


Yeah, but it should output them into the same number of files as you started with. 

What does that checkbox actually do? Does it affect the resampling module too? Which one? I cannot find any authoritative information https://www.google.com/search?client=ubuntu...%22&start=0


Resampling is a DSP in foobar, so it should affect it.  I don't have the foobar source code, but as far as I know it does exactly what it says:  retain the state in the DSP between tracks, so anything with memory will still have samples from the previous track stored in it when it starts a new track. 

We do something similar in rockbox, where things like the resampler retain state across track transitions so long as the sampling rate does not change.

Upsample 44.1 24-bit to 48 24-bit for DVD

Reply #42
Well, then sox is not a right tool for this task indeed. It is certainly doable (though a PITA in windows) but if the solution is just a click away in foobar, no reason to use something less suitable.