Looking for a LPCM to wav converter

Discussion in 'Audio' started by squeegs, Jul 15, 2003.

  1. squeegs

    squeegs Member

    Joined:
    Jul 14, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    trying to find one with no luck. i need to get a lpcm file (48k/24bit) extracted from a dvd down to cd (44/16) thanks in advance :)
     
  2. tigre

    tigre Moderator Staff Member

    Joined:
    Feb 18, 2003
    Messages:
    789
    Likes Received:
    0
    Trophy Points:
    26
    You can use SmartRipper to save the LPCM audio to a .wav file (48/96).

    Use foobar2000 for resampling. Free @ very good quality. http://foobar2000.hydrogenaudio.org

    HOWTO:

    (0. Run foobar2000 installer)

    1. Load the audio file(s) you want to convert to playlist (e.g. drag'n'drop to fb2k window)

    2. Highlight the file(s) you want to convert, Right-click -> Convert -> Settings:
    - choose a output directory with enough space
    - leave filename as it is (you'll delete the file anyway after your audio CD is written - right?)
    - choose Output format: WAV (PCM 16bit dithered)
    - check all "Processing" options.

    3. Highlight the file you want to convert, Right-Click -> Replaygain -> Scan per-file track gain

    4. Foobar2000 -> Preferences -> Playback:
    - Replaygain mode: "use Track gain".
    :: The pre-set replaygain preamp value is 89dB which is a good choice to avoid clipping
    :: but might be too low if you want to use your CD e.g. with a too-low powered car stereo.
    :: Best would be to leave it alone, but If you want a "louder" CD and you set it to higher values
    :: you shouldn't go > 95dB.

    - "Use peak info to scale down tracks ..." should be checked

    5. Foobar2000 -> Preferences -> Playback -> DSP manager:
    - Move "Resampler (SSRC)" to active DSPs
    -> Resampler:
    - Target sample rate: 44100 S/s
    - "Slow mode" checked
    - Internal precision: 64bit
    Close Preferences.

    6. Right-click on the highlighted files in playlist again -> Comvert -> Run conversion
     
  3. squeegs

    squeegs Member

    Joined:
    Jul 14, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    thank you for ur response, i got the wav file from smartripper though one problem is that foobar only recognises the file as a 48k 16bit stream, when i am sure is is 48k 24bit. i got this by going to the file info option

    bitrate = 1536
    samplerate = 48000
    channels = 2
    codec = PCM
    bitspersample = 16

    that bitrate seems much to high to be a 48/16 stream which is 187kb/s

    any ideas ?
     
  4. tigre

    tigre Moderator Staff Member

    Joined:
    Feb 18, 2003
    Messages:
    789
    Likes Received:
    0
    Trophy Points:
    26
    48kHz/16bit/stereo:
    1 Sample = 2x16 = 32 bits
    1 Second = 48000 Samples = 1536000 [bold]bits[/bold]

    Seems like you confused bits with bytes.
     
  5. squeegs

    squeegs Member

    Joined:
    Jul 14, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    agreed my bad, but the fact reamains every aplication tends to think this is a 16bit 48k wav file despite

    the output filename from smart ripper is "vts_02_([0xA0]_Audio_English_LPCM(2Ch)_48kHz_24bit__)_Delay_-273ms.wav"

    the track goes 3:49secs or 229 secs

    and the file size is 63.2 meg

    this is all very confusing. i am confident it is 24 bit 48k, when i try and play the file i get harsh static, although i can hear some of the song faintly mixed in

    could it be that smart rippper automatically labels the wav information as 16 bit and something i need to fix, or could the wav be still be multiplexed in an mpg stream ?

    regards keegan
     
  6. tigre

    tigre Moderator Staff Member

    Joined:
    Feb 18, 2003
    Messages:
    789
    Likes Received:
    0
    Trophy Points:
    26
    IIRC there are programs that can convert .wav to .pcm (without header containing information about sampling rate, bit depth, mono/stereo) and pcm back to wav. In this step you have to tell the program sampling rate/bit depth. Unfortunately I can't remember the name, so here's another possibility:

    [bold]0. Create a security copy of the file[/bold]

    1. Open the file in a Hex editor, e.g. XVI32: http://www.chmaas.handshake.de/

    2. The beginning of your file should look like this (Hex view):

    52 49 46 46 mm mm mm mm 57 41 56 45 66 6D 74 20 10 00 00 00 01 00 02 00 nn nn 00 00 oo oo oo 00 pp 00 qq 00 64 61 74 61 rr rr rr rr

    Some Explanations (all numbers are big endian byte order; 00 01 h = 256 d):

    mm ... mm = <file length> (bytes) starting after last m
    nn nn = <Sampling rate> (samples/second). Should be [bold]80 BB[/bold] in your file
    oo oo oo = <Byterate> (Bytes/second). Should be [bold]00 EE 02[/bold] in your file
    pp = <Bytes/sample> (Bytes). Should be [bold]04[/bold] in your file
    qq = <bits/sampe (1 channel)> (bits). Should be [bold]10[/bold] in your file
    rr ... rr = <file length> (bytes) starting after last r

    Now you have to change
    [bold]oo oo oo[/bold] to [bold]00 65 04[/bold]
    [bold]pp[/bold] to [bold]06[/bold] and
    [bold]qq[/bold] to [bold]18[/bold].

    Hope it helps.____X_X_X_X_X_[small]AFTERDAWN FORUM RULES: http://forums.afterdawn.com/thread_view.cfm/2487[/small]
     
    Last edited: Jul 16, 2003
  7. squeegs

    squeegs Member

    Joined:
    Jul 14, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    thanks heaps tigre, although im not there yet

    i used xvi32 to edit the hex on the wav file, i inserted the values and saved the new file

    i tried playing it in windows media and got no audio although the indicator bar moved, this seemed alot better then getting static

    i opened it in a few programs such as foobar, headache and awave and both recognise it as a 48k 24bit wav file (finally)

    but i tried converting with foobar and headache to 48/16 and i still got a wav file of white noise with some audio barely decernable under the noise.

    id liike to view the 24bit wav file with a wav editor to see if it is static or it looks like a normal wav, meybe the converters are doing there job and converting static or maybe the converters cant handle 24bit ???
     
  8. tigre

    tigre Moderator Staff Member

    Joined:
    Feb 18, 2003
    Messages:
    789
    Likes Received:
    0
    Trophy Points:
    26
    foobar2000 is definitely capable of playing back and processing 24/48 audio correctly. So there's something still wrong with the file. Maybe SmartRipper changed the Byte order - but I don't see why there should be silence then.

    Wave editors: give Cool Edit Pro (30 day trial) or Audacity (free) a try.

    If you want you can upload the beginning of the file (~ 1-2 MB) somewhere or email it to me and I'll have a look at it. (PM me if so.)

    Maybe it'd be easier to ask at afterdawn DVD ripping forum if someone knows another program like Smartripper that extracts 24/48 audio stream correctly ...
     
  9. squeegs

    squeegs Member

    Joined:
    Jul 14, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    yeah i got audacity and had a look at the wav ... and no good

    i was going to suggest if i could put some of the files on an ftp or something

    how much can i send u (mb) and what format ?

    i was thinking a complete vob stream to see if u could get anything out of it from scratch
     
  10. tigre

    tigre Moderator Staff Member

    Joined:
    Feb 18, 2003
    Messages:
    789
    Likes Received:
    0
    Trophy Points:
    26
    Don't send me the complete VOB. It should be enough to cut 2 MB from the beginning of the extracted .wav file - use something like Maxsplitter or a Hex Editor (cut + paste to a new file).
     
  11. squeegs

    squeegs Member

    Joined:
    Jul 14, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    sorry tigre had to wait and re hire the dvd as my wav files got corrupted

    i have cleany extracted some new wavs and cut one down

    so where/how can i send u the file ?
     
  12. wilkes

    wilkes Regular member

    Joined:
    May 31, 2003
    Messages:
    922
    Likes Received:
    0
    Trophy Points:
    26
  13. sfgecko

    sfgecko Member

    Joined:
    Aug 2, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    11
    i too am having the same issue when ripping an LPCM track. i use DVD Decrypter to rip the .VOB file to the HD. stream log file info:
    0xA0 - Audio - LPCM / 2ch / 48kHz / 24bit / English / LBA: 234133 / PTS: 00:08:06.803 / Delay: -283ms

    both the picture and audio play fine when i open it w/ my dvd playing software. i use BeSweet to extract the 0xA0(PCM) substream to Wave-Stereo .WAV file. When i try to play the wave file in WinAmp or WMP, all i hear is a loud hiss, and barely audible correct audio.

    i'm not sure why the audio is not converting from LPCM to WAV correctly. any help would be appreciated.
     
  14. noee

    noee Member

    Joined:
    Aug 8, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    11
    You guys ever get a resolution to this? I've got a similar problem, trying to rip 24/96 DVD-video and get to 24/96 WAV. Every ripper I've tried sticks it to 16/48.

    [bold]EDIT:[/bold] Nevermind, figured it out with vStrip(demux) and LPCM24.
     
    Last edited: Aug 8, 2003
  15. squeegs

    squeegs Member

    Joined:
    Jul 14, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    EDIT: Nevermind, figured it out with vStrip(demux) and LPCM24.

    ok i know vstrip but what do u mean by lpcm24 ??? is it a function in vstrip or another program ? thank you ....
     

Share This Page