Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Wav And Raw Audio
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
malky
Posted: Nov 27 2011, 11:51 AM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



What's the difference (except for the file extension) between:
File > Save Wav.
and
File > Export > Raw audio.

 
    Top
dloneranger
Posted: Nov 27 2011, 12:43 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Wav is a file format, with headers etc about whats in the file itself (Hz, channels etc) and it's usually saved as uncompressed pcm (that is, users, normally save wavs in uncompressed pcm format)

Raw audio is just a straight dump of whatever the audio stream is

If the video already had mp3 audio in it and the audio processing mode was full processing
save as wav would give a valid wav file in whatever format selected in the processing mode
export raw audio would just be the raw audio in whatever format selected in the processing mode

If the video already had mp3 audio in it and the audio processing mode was direct stream copy
save as wav would give a valid wav file with an mp3 in it (this file may be unusable depending on the importing program)
export raw audio would just be the raw mp3 file

etc

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
ale5000
Posted: Nov 27 2011, 03:39 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



@dloneranger: If the audio is mp3, "save as wav" add wav headers to mp3 audio.
To get uncompressed PCM audio you must select Audio => Full processing mode before "save as wav".

Yes - that's why I said 'its usually saved as pcm'
I meant, that people usually save wavs as uncompressed pcm
It didn't really read that way, so I've edited the post for accuracy and readability (I hope)

If it still sounds off, let me know and I'll have a go at re-editing


--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
malky
Posted: Nov 28 2011, 01:22 AM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



QUOTE
RAW Audio file does not include any header information -
(sampling rate, bit depth, endian, or number of channels).
http://en.wikipedia.org/wiki/Raw_audio_format


Yet the raw mp3 file from VirtualDub does contain information (according to mediaInfo).
So in what sense is it 'raw'.

user posted image
 
    Top
dloneranger
Posted: Nov 28 2011, 07:28 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Raw, as in, no extra bits added or taken away

Yes - that's right, thats an mp3 file, so it has the mp3 information
the save raw file saved the audio stream directly out of the file
it doesnt have the wav header around it that save as wav would have done
if it was pcm audio, it would look like gibberish, if it was an ac3 file it would have ac3 information etc
If you do the same with save as wav, you'll have a wav file with an mp3 in it

Mp3's have their information in them already, but if you'd chosen to convert the audio to pcm uncompressed, then you'd have a gibberish looking file, as it would be the raw pcm bytes, and pcm doesn't have any information about it actually in it (channels, duration, frequency etc),
So for pcm, you'd normally save as wav, to put the wav header on it, which would have the frrequency, duration etc in it

raw audio - the audio stream extracted from the avi (depending of the format, it may or may not have useful information)
save as wav - the same thing wrapped in a wav container http://en.wikipedia.org/wiki/WAV

here's an idea
you know what a .zip file is yeah?
well... save as wav is like that, the wav information is wrapped around the audio stream
and raw audio - is the audio stream

I might give up trying to explain this any further, as I'm obviously doing a bad job smile.gif

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
malky
Posted: Nov 28 2011, 10:35 AM


Advanced Member


Group: Members
Posts: 290
Member No.: 22386
Joined: 6-November 07



QUOTE
Mp3's have their information in them already, but if you'd chosen to convert the audio to pcm uncompressed, then you'd have a gibberish looking file, as it would be the raw pcm bytes, and pcm doesn't have any information about it actually in it (channels, duration, frequency etc),


So I did that and opened it in Audacity and it was a collection of squeaks.
I like the cut of your gibberish - thanks for the assist.
 
    Top
ale5000
Posted: Nov 28 2011, 01:12 PM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



To be sure to have a file that work everywhere select "Audio => Full processing mode" and then "File > Save Wav".

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
6 replies since Nov 27 2011, 11:51 AM Track this topic | Email this topic | Print this topic

<< Back to General Discussion