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: Tool To Convert 20-bit Lpcm To 16-bit Pcm (Read 16339 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

I have Roger Waters "In The Flesh" DVD and want to make a MP3 from the LPCM track of the DVD for listening in my car. I ripped the track successfully to a 48 KHz 20-bit LPCM file and I need some tool to convert it to a 16-bit PCM track. All software I tried can handle 16, 24 and 32-bit PCM but *not* 20-bit PCM. Does anyone know such tool?

Thank you in advance,
Leonardo.

P.S.: is LPCM a synonym to PCM?

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #1
Hi Try this: Install Graphedit & Nimo Codec Pack 5.0 v.7,and Open This Tracks (xxxx.VOB?) in Graphedit and use Moonlight Odio Dekoda Directshow filter v 1.23 for decoding to .wav

Or play in software DVD Player and capture it from SPDIF OUT to PCM or loop to Spdif IN and rec into various waveeditor or ask Developer DSP Guru for LPCM Capability Audio conversion SW "BESWEET"....

Few links:
http://dspguru.doom9.net/
http://www.doom9.org/
http://www.everwicked.com/index.php?s=

Hi and happy testing....David

re:PS: no LPCM is very closed lossless audio format in DVD (MLP) Meridian Lossless Packing....You need firstly decoded to .wav or .pcm trough sw dvd decoder found at up to my text.Its true?

I created very crappy tutorial for you.
Check my beginner site:
http://mujweb.cz/zabava/dawsoo2222/

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #2
You would better convert the 20bits to 24bits, this will preserve quality.

(probably Sox can do this)

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #3
CoolEdit 2000 reads and writes 20-bit PCM, and will convert to 16 or 24 bit.

BTW, WavPack is the only lossless compressor I know of that handles 20-bit data; it's kind of an oddball size.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #4
Quote
CoolEdit 2000 reads and writes 20-bit PCM, and will convert to 16 or 24 bit.

BTW, WavPack is the only lossless compressor I know of that handles 20-bit data; it's kind of an oddball size.

You have very little knowledge.
And there are different way to handle 20 bit. The last time I tested WavPack the 20 bit files
had the same size as 24 bit files.
--  Frank Klemm

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #5
Quote
You have very little knowledge.

And you have very little tact and politeness.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #6
Quote
re:PS: no LPCM is very closed lossless audio format in DVD (MLP) Meridian Lossless Packing....You need firstly decoded to .wav or .pcm trough sw dvd decoder found at up to my text.Its true?

No... LPCM = Linear PCM, and has nothing to do with Meridian.

Quote
Linear PCM (LPCM) offers an alternative uncompressed audio format that is similar to CD audio, but with higher sampling frequencies and quantisations. LPCM offers up to 8 channels of 48kHz or 96kHz sampling frequency and 16, 20 or 24 bits per sample but not all at the same time. These values compare with 44.1kHz and 16 bits as used for CD audio. The maximum bit rate is 6.144 Mb/s, which is much higher than Dolby Digital or MPEG-2 coding. LPCM offers high quality (similar to DVD-Audio) but its high data rate leaves little bandwidth for video.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #7
Quote
Quote
re:PS: no LPCM is very closed lossless audio format in DVD (MLP) Meridian Lossless Packing....You need firstly decoded to .wav or .pcm trough sw dvd decoder found at up to my text.Its true?

No... LPCM = Linear PCM, and has nothing to do with Meridian.

Wow! Thanks for it Roberto! LPCM used headerless stream PCM RAW format ? Or specific DVD container format?I demux this in VOBrator and
I can´t open this in any Waveditor like (Cooledit,Soundforge,Wavelab,RAW2WAV...etc)
Only decoding in to Vob trough Graphedit+odio dekoda.ax. or another dvd audio directshow filters like PowerDVD,Intervideo ...etc

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #8
Quote
Quote
CoolEdit 2000 reads and writes 20-bit PCM, and will convert to 16 or 24 bit.

BTW, WavPack is the only lossless compressor I know of that handles 20-bit data; it's kind of an oddball size.

You have very little knowledge.
And there are different way to handle 20 bit. The last time I tested WavPack the 20 bit files
had the same size as 24 bit files.

Hi Frank. Actually there are two different issues here because there are two different types of 20-bit wav files. The first type are identified as 20-bit files in the wav header. Many programs simply don’t handle this value and give up (like the last version of Monkey’s Audio that I tried this with) even though the data is in exactly the same format as 24-bit data (with the 4 LSBs == 0). WavPack correctly handles all bit depth values from 16 to 24 and gives progressively better compression at lower depths (when they are identifed as such in the header).

Another type of 20-bit files are those that are identified as 24-bit in the header but have the 4 LSBs of every word set to zero. Any program that handles 24-bit data will work correctly with these, but might not notice the “missing codes” and will compress no better than plain 24-bit. In all but the fastest mode, WavPack will recognize 20-bit data (even when not identified in the header) and optimally compress it. However, WavPack will not recognize 22-bit data or 12-bit data or any other non-standard size, nor will it recognize the missing codes in normalized audio or non-linear encoding. WavPack is optimized for speed and I feel that the extra time handling these cases is not justified considering how infrequently they occur in real life.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #9
It might be unuseful and off topic, but there was an LPCM track causing me problems with the programs I tried.
If you've got problems to convert it, the only way I managed to get it was to rip it alone (uncheck the video and the rest in SmartRipper) into some vobs, then load the vobs into DVD2AVI and save them as AVI. If I remember correctly, it then outputted a correct wav file.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #10
Quote
Quote
Quote
CoolEdit 2000 reads and writes 20-bit PCM, and will convert to 16 or 24 bit.

BTW, WavPack is the only lossless compressor I know of that handles 20-bit data; it's kind of an oddball size.

You have very little knowledge.
And there are different way to handle 20 bit. The last time I tested WavPack the 20 bit files
had the same size as 24 bit files.

Hi Frank. Actually there are two different issues here because there are two different types of 20-bit wav files. The first type are identified as 20-bit files in the wav header. Many programs simply don’t handle this value and give up (like the last version of Monkey’s Audio that I tried this with) even though the data is in exactly the same format as 24-bit data (with the 4 LSBs == 0). WavPack correctly handles all bit depth values from 16 to 24 and gives progressively better compression at lower depths (when they are identifed as such in the header).

Another type of 20-bit files are those that are identified as 24-bit in the header but have the 4 LSBs of every word set to zero. Any program that handles 24-bit data will work correctly with these, but might not notice the “missing codes” and will compress no better than plain 24-bit. In all but the fastest mode, WavPack will recognize 20-bit data (even when not identified in the header) and optimally compress it. However, WavPack will not recognize 22-bit data or 12-bit data or any other non-standard size, nor will it recognize the missing codes in normalized audio or non-linear encoding. WavPack is optimized for speed and I feel that the extra time handling these cases is not justified considering how infrequently they occur in real life.

The first version of APE I tested (this was last year) was able to handle 8 bit and 24 bit PCM.
Many other compressors were also able to handle 8 bit and 24 bit PCM like LPAC.

Feeding 32 bit to all these compressors working well with 24 bit ended with the same result:
  - Zero size output file
  - immediate exiting the program and Return code of 0 for successful operation
  - two programs wrote an error message to stdout / stderr
It was curious, there was a list of several programs from several authors
and all had (nearly) the same behaviour.

The other problem is really to compress 1...7, 9...15, 17...23 bit files properly by recognizing
the LSBs and not to store them as noise. When this is not done, 9 bit files are much larger than
16 bit files. The last tests I made in April 2002 and there was only one program handling this
very well: LPAC. DAT-LP PCM was not handled well by any program.

Tests were made with:
6 bit...24 bit linear PCM
12 bit PCM used by DAT-LP

The complete test list I have on another computer I currently can't access.
--  Frank Klemm

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #11
Quote
Quote
You have very little knowledge.

And you have very little tact and politeness.

Simple to check claims should be checked before publishing.
Especially when they are wrong.

Otherwise a person is silly. May be other persons use more polite
words because it is a general consensus of our time to be polite and to lie.

We have enough wrong rumours out there. On internet, radio, TV,
newspapers and also quite often in specialist book.

Tests (5 minutes):
- shorten from 1994 and 2001 can't handle 24 bit.
- flac from 2001 can't handle 24 bit (version 1.02)
- lpac from spring 2000 can handle 24 bit (Codec version 2.0)
- ape from summer 2000 can handle 24 bit (3.90).
- rkau from 1999 can handle 24 bit (1.07)
- szip as a general purpose compressor can compress all types of files.
- decompressed files have the same MD5
- I tested the usual used front ends. The encoding cores may can handle more.
- I tested 2 and more years old versions
- 4 out of 6 compressors can hande 24 bit, this is 67%
- weighted with a former lossless usage poll, 74%...77% of the lossless compressor users
  use a lossless compressor which is able for more than 2 years to compress 24 bit
  (see http://www.audio-illumination.org/forums/i...df236a2c14ac788 )
- Wavepacks startup message is

      WAVPACK  Lossless 16/24-bit Wavefile Compressor  Version 3.8b  6-24-01
      Copyright © 2001 Conifer Software.  All Rights Reserved.

The person has 
- chaimed something which is wrong
- chaimed something which takes 5 minutes to check and to refute
- not the knowledge to check his claim

We have enough wrong "information sources" and we don't need more of these "entropy
factories".

Es ist zu einer gesellschaftfähigen Unsitte geworden, daß jeder etwas von sich
geben muß, auch wenn er keinerlei Ahnung hat.
Und wer vielleicht mal 30 Sekunden nachdenkt, bevor er etwas sagt, dem wird
weniger geglaubt als jemanden, der sofort gutklingenden Müll von sich gibt.
Einer weitere Unsitte ist es, eine Frage mehrfach zu wiederholen, auch wenn jemand
deutlich zu verstehen gegeben hat, daß er es nicht weiß. Häufig endet das damit, daß
dann doch eine (informationsfreie) wohlklingende Antwort gegeben wird, die
der Fragesteller dann auf seine Weise interpretiert und das ganze als vollwertige
zuverlässige Antwort ansieht.

http://www.uni-jena.de/~pfk/mpp/audio3/fre...esse_halten.mp3
--  Frank Klemm

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #12
Quote
The person has 
- chaimed something which is wrong
- chaimed something which takes 5 minutes to check and to refute
- not the knowledge to check his claim

Let me quote Mr. Bryant:

Quote
only lossless compressor I know of


As you can see, he made very clear that it's the only lossless compressor he knows of. He's not claiming that "It's the only lossless compressor, period"

Quote
Es ist zu einer gesellschaftfähigen Unsitte geworden, daß jeder etwas von sich
geben muß, auch wenn er keinerlei Ahnung hat.
Und wer vielleicht mal 30 Sekunden nachdenkt, bevor er etwas sagt, dem wird
weniger geglaubt als jemanden, der sofort gutklingenden Müll von sich gibt.
Einer weitere Unsitte ist es, eine Frage mehrfach zu wiederholen, auch wenn jemand
deutlich zu verstehen gegeben hat, daß er es nicht weiß. Häufig endet das damit, daß
dann doch eine (informationsfreie) wohlklingende Antwort gegeben wird, die
der Fragesteller dann auf seine Weise interpretiert und das ganze als vollwertige
zuverlässige Antwort ansieht.


Blah.

I suppose you are happy now that you showed off your German writing skills. Talk about childish behaviour...

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #13
Quote
Tests (5 minutes):
- shorten from 1994 and 2001 can't handle 24 bit.
- flac from 2001 can't handle 24 bit (version 1.02)
- lpac from spring 2000 can handle 24 bit (Codec version 2.0)
- ape from summer 2000 can handle 24 bit (3.90).
- rkau from 1999 can handle 24 bit (1.07)
- szip as a general purpose compressor can compress all types of files.
- decompressed files have the same MD5
- I tested the usual used front ends. The encoding cores may can handle more.
- I tested 2 and more years old versions
- 4 out of 6 compressors can hande 24 bit, this is 67%
- weighted with a former lossless usage poll, 74%...77% of the lossless compressor users
   use a lossless compressor which is able for more than 2 years to compress 24 bit

Isn't this whole thread (and David's post) about 20 bit, instead of 24 bit?????

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #14
I tested decoding track: "PINK Floyd - Hey you" LPCM 16/48 2ch. and results this:

1.DVD2AVI 1.86=O.K. Decoding and demux to wav(quitting PIO2001)
2.Flask 0.594=Not Recognized Unreadable format.

3.All "only simply demux DVD Rip SW"=OK but unreadable for waveeditors open as .RAW or .PCM(all aviable combinations Intel-Motorola,MSB-LSB byte order)PCM 16/48/2ch-stereo and resulted only Strong White Noise.

4.Graphedit and DS (xxxx.ax) filters directly from VOB

Moonlight Odio Dekoda=Very Bad Sound (overmodulated and White Noise)
Intervideo Iviaudio.ax(v.2.0-4.05)=O.K
Cyberlink Claud.ax(v.3.0-4.0)=O.K

My personal result is: This problem not only in 20/24bit my tested file is 16bit/48-stereo=standard !!!!

Problem is in atypical formatted raw data into VOB or bad demux tools in my use.

5.Result: DVD2AVI (demuxed and decoded) and SW DVD Players =ds filters (decoded) this Correctly.

6. You ask convert 16bit pcm to mp3 = Lame 3.92 switch "-r -s 48 --alt-preset standard" I using speek´s frontend Wav2Lame v.1.6.

PS: I can only help for "lbschenkel"

 

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #15
Quote
Simple to check claims should be checked before publishing.
Especially when they are wrong.

The person has  
- chaimed something which is wrong
- chaimed something which takes 5 minutes to check and to refute
- not the knowledge to check his claim

We have enough wrong "information sources" and we don't need more of these "entropy
factories".

Ok, I was about to let this go, but not when I get called an "entropy factory". That hurts!

Frank, I understand that you are not a fluent speaker of English and I am the first person to admit being envious of all you posters who manage to do so well in a secord or third language. However, you might want to consider the possibility that when you read a post in English and the person sounds "silly" or "wrong", the problem might actually be that you simply did not understand what the person meant. I believe that is what happened here.

We were talking about 20-bit wav files that are identified as such in the header, not 24-bit files or files which have 20-bit data in them but are labeled as 24-bit in the header! Read that sentence again. Of course, we have since learned that the thread starter didn't have wav files at all, but that was not known to us then.

I just created such a 20-bit file in CoolEdit 2000 and tried compressing it with WavPack 3.95, FLAC 1.0.3, Monkey's Audio 3.97, Rkau 1.07, LPAC 1.06, OptimFROG 4.21, Shorten 3.4 and LA 0.2, all at their highest compression setting:

Shorten, OptimFROG and LA do not seem to support >16 bits at all.

FLAC said "ERROR unsupported bits per sample 20” but still created (and did not delete) the FLAC file with length zero.

Monkey’s Audio said either “ERROR: insufficient memory” or “ERROR: undefined” depending on whether I had compressed other files first.

Rkau and LPAC did compress the file, but neither as well nor as fast as WavPack:

BPS20    WAV    3,856,856 (100%)
BPS20    RKA    2,231,401 (57.86%, ~69 seconds)
BPS20    PAC    2,228,449 (57.78%, ~13 seconds)
BPS20    WV      2,222,773 (57.63%, ~3 seconds)

So, of the 7 compressors I tested, 5 (including the 2 most popular) were unable to compress the file.

I also created a 24-bit file that has 20-bit data in it and got these results:

BPS20-24 WAV    3,856,856 (100%)
BPS20-24 APE      2,815,552 (73.00%, ~7 seconds)
BPS20-24 WV      2,303,130 (59.72%, ~3 seconds)
BPS20-24 FLAC    2,301,059 (59.66%, ~18 seconds)
BPS20-24 RKA      2,231,401 (57.86%, ~69 seconds)
BPS20-24 PAC      2,228,449 (57.78%, ~13 seconds)

Of course, none of these programs should have trouble with this, but Monkey's Audio does not recognize that the data is only 20 bits and so does relatively poorly.

Finally, on a real 24-bit file, the only interesting thing is how poorly FLAC seems to perform:

BPS24    WAV    3,856,856 (100%)
BPS24    FLAC    3,412,255 (88.47%, ~18 seconds)
BPS24    PAC      2,870,616 (74.43%, ~13 seconds)
BPS24    WV      2,865,567 (74.30%, ~3 seconds)
BPS24    APE      2,815,508 (73.00%, ~7 seconds)
BPS24    RKA      2,806,027 (72.75%, ~69 seconds)

BTW, Frank, here is another thread where you accused me of not using my brain even though you obviously misunderstood my post. When Josh corrected you and you realized your error you apologized to him:

http://www.audio-illumination.org/forums/i...=2&t=2383&st=25

Finally, that WavPack you have is 6 versions old. 

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #16
Quote
Isn't this whole thread (and David's post) about 20 bit, instead of 24 bit?????

20 bit files are valid 24 bit files. There may be 24 bit files looking like 20 bit, although this is very
very unlikely.

When writing mppdec16/24/32 the first version wrote the right number of bits into the header.
The result was that nearly no program was able to play/handle these files.

Also the description of the file format says something in the way "store as xx bit, leave the yy
LSBs zero".
--  Frank Klemm

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #17
Short summary:

*** Files containing 20 valid bits linear PCM can be

1) stored as 24 bit LPCM-WAV files (bits=24, "alignment"=3*channels)
2) stored as 20 bit LPCM-WAV files (bits=20, "alignment"=3*channels)

1) can be read by a majority of programs, 2) only by a very little count
of programs. Most of them are audio compressors, because there it's a problem.
File format guides propose to use 1) mostly without mentioning 2)
Is 2) a valid file format?

The linux situation was that I wrote my own WAV player, because
1) _and_ 2) are hardly correctly handled.


*** Compressors stored files in format 2) can

  3) recognize this situation
  4) not recognize this situation and end up with files with are typically 2.5 MByte/min larger than necessary

LPAC is the only program handling this well. It can also handle well files with changing bit depth.


*** My suggestion is:

  - use file format 1), there 're enough programs having trouble with that
  - Extend every compressor to work in the way of 3)

Otherwise it is very likely that you ended up with files which can only be handled by a few files.
     

*** Problem of discussion was:

The poster forgot to mentioned what he talked about. I would call it "real 20 bit RIFF files".



edit: smilies fixed
--  Frank Klemm

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #18
You are really an ass, Klemm.

You hurt David's feelings, do all kinds of wild claims about him, and don't even apologize after you're proven wrong?

It amazes me. Now that Randar is gone, the title of "Über Troll" should be handed to you.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #19
This discussion is over.

I don't want to see anymore of this crap from anyone in this thread.  OK?  Get it?

Obviously everyone here has gotten out of hand, and I'm tired of these kinds of flames.

If you guys want to argue about this stuff and call eachother names, go somewhere else and do it.

Now, you can either continue the original topic in a civil manner, or I can close this thread.  Your choice.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #20
Quote
Finally, on a real 24-bit file, the only interesting thing is how poorly FLAC seems to perform:

BPS24    WAV     3,856,856 (100%)
BPS24    FLAC     3,412,255 (88.47%, ~18 seconds)
BPS24    PAC      2,870,616 (74.43%, ~13 seconds)
BPS24    WV       2,865,567 (74.30%, ~3 seconds)
BPS24    APE      2,815,508 (73.00%, ~7 seconds)
BPS24    RKA      2,806,027 (72.75%, ~69 seconds)

Yeah, this is based on a limitation in the reference encoder.  It will be fixed in 1.0.5; I didn't have time to do it for 1.0.4.

Josh

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #21
Hi,

I will make some clarifications about the issue, since I was not clear the first time. (Sorry about the delay, if I had done that before all these pointless discussions could have been avoided.)

To make a MP3 of my Roger Waters "In The Flesh" DVD for listening in my car I have two options:
1. AC3->WAV->MP3. Let's forget this option, because AC3 is lossy, and I don't want to reencode it in another lossy format.
2. LPCM->???->MP3. My personal choice, because LPCM is uncompressed audio.

What I tried to do:

(To make it clear: the track I'm trying to convert is 20-bit 48 KHz LPCM.)

1. Ripped the entire DVD to hard disk. Opened the main VOB files with DVD2AVI and tried to convert the LPCM track to a WAV file. It worked (in the sense it generated the file) but the audio was all noise.

2. Used VirtualDub (tried also SmartRipper and DVD Decrypter in stream processing mode) and demultiplexed the LPCM track to a raw file in the hard disk (so without any WAV RIFF header, I suppose). I don't know how the audio in this file is represented internally (if it is 24-bit with 4 zero padded bits or not), will try to check using an hex editor. If I try to play the file using the WAV plugin in WinAmp, it produces noise like the DVD2AVI generated WAV. If I try to encoded this file with LAME --aps, it produces a similar MP3 (full of noise, as expected).

What I think it's happening: the file demultiplexed by method 2 is a real 20-bit encoded raw PCM file being (incorrectly) recognized/processed as a 24-bit (with/without 4-bit padding) PCM file by software players/encoders. (And something similar occurred in method 1.)

The question is: does someone know a tool that can correctly open and convert such beast to a more standard format like 16 or 24-bit (the latter preferred so no loss of quality occurs) so I can encode it with LAME --aps?

Of course I'm assuming I'm ripping the DVD correctly.

dawsoo2222 suggested using GraphEdit and Cyberlink DirectShow filters. I haven't tried that yet (never needed to use GraphEdit before). I will let you know if that works for me.

dawsoo2222: apparently you had success using DVD2AVI. Could you provide me more details? I used DVD2AVI sucessfully before, but in this particular case it didn't work for me (this DVD is the only I have that contains a 20-bit LPCM track).

Thank you in advance,
Leonardo.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #22
Quote
The question is: does someone know a tool that can correctly open and convert such beast to a more standard format like 16 or 24-bit (the latter preferred so no loss of quality occurs) so I can encode it with LAME --aps?

Of course I'm assuming I'm ripping the DVD correctly.

It sounds to me like the trick is to figure out if you actually have 20-bit raw LPCM and how it is formatted. It could be packed completely (i.e. in nybbles), it could be packed in 3 bytes (with 4 pad bits), or it could be packed in 4 bytes, or the program you generated the raw data with could be confused and generating garbage.

The way to tell would be to (like you said) look at the data in a hex editor. An easy way to start would be to look at the very beginning or end where there is probably something close to silence (although keep in mind that in 20-bit audio even "silence" could have 8 bits of noise). You should see some sort of pattern there. If you see all zeros then just scan into the main part of the file until you see something. If you see totally random data all the way to the edges, then you probably have real garbage or some sort of compressed data.

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #23
Quote
Hi,

I will make some clarifications about the issue, since I was not clear the first time. (Sorry about the delay, if I had done that before all these pointless discussions could have been avoided.)

To make a MP3 of my Roger Waters "In The Flesh" DVD for listening in my car I have two options:
1. AC3->WAV->MP3. Let's forget this option, because AC3 is lossy, and I don't want to reencode it in another lossy format.
2. LPCM->???->MP3. My personal choice, because LPCM is uncompressed audio.

What I tried to do:

(To make it clear: the track I'm trying to convert is 20-bit 48 KHz LPCM.)

1. Ripped the entire DVD to hard disk. Opened the main VOB files with DVD2AVI and tried to convert the LPCM track to a WAV file. It worked (in the sense it generated the file) but the audio was all noise.

2. Used VirtualDub (tried also SmartRipper and DVD Decrypter in stream processing mode) and demultiplexed the LPCM track to a raw file in the hard disk (so without any WAV RIFF header, I suppose). I don't know how the audio in this file is represented internally (if it is 24-bit with 4 zero padded bits or not), will try to check using an hex editor. If I try to play the file using the WAV plugin in WinAmp, it produces noise like the DVD2AVI generated WAV. If I try to encoded this file with LAME --aps, it produces a similar MP3 (full of noise, as expected).

What I think it's happening: the file demultiplexed by method 2 is a real 20-bit encoded raw PCM file being (incorrectly) recognized/processed as a 24-bit (with/without 4-bit padding) PCM file by software players/encoders. (And something similar occurred in method 1.)

The question is: does someone know a tool that can correctly open and convert such beast to a more standard format like 16 or 24-bit (the latter preferred so no loss of quality occurs) so I can encode it with LAME --aps?

Of course I'm assuming I'm ripping the DVD correctly.

dawsoo2222 suggested using GraphEdit and Cyberlink DirectShow filters. I haven't tried that yet (never needed to use GraphEdit before). I will let you know if that works for me.

dawsoo2222: apparently you had success using DVD2AVI. Could you provide me more details? I used DVD2AVI sucessfully before, but in this particular case it didn't work for me (this DVD is the only I have that contains a 20-bit LPCM track).

Thank you in advance,
Leonardo.

Oh yes! I own only DVD´s contained AC3+16bitLPCM tracks but same problems decoding it.Try prog. "Vob Snoopy" http://www.digital-digest.com/dvd/download...g_vobutils.html  and Demux all

note ...for 16bit LPCM works fine (M2V+AC3+WAV-output all streams) wave played correctly.You test it for your 20BIT LPCM and reporting it...

hi David

Tool To Convert 20-bit Lpcm To 16-bit Pcm

Reply #24
Yes! I tried GraphEdit (never used it before) and it worked! Steps to complete:

1. Ripped the DVD to one single VOB in the hard disk using DVD Decrypter in stream processing mode and selected only the 20-bit LPCM track. That generated one giant 2GB VOB with only the LPCM track in it.

2. Opened GraphEdit and made the following graph:

[VOB file] ---> [MPEG2 splitter] ---> [InterVideo Audio Decoder] ---> [WAV dest] ---> [File writer]

3. Clicked "Play".

The result was a 48KHz 16-bit WAV file, exactly what I needed. But I have a little concern: I'm not sure about the quality of the 20 to 16-bit conversion done by the InterVideo audio decoder. But I do prefer this file over an AC3 converted one. Do you guys in this board feel the same?

Reply to dawsoo2222: I always had success ripping 16-bit LPCM tracks with DVD2AVI, but not in this case. I think it is not prepared to handle 20-bit audio, maybe because it's such a rare format.

P.S.: in my previous post, when you read "VirtualDub", please read "vStrip" instead.