IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
How to encode WAV to FLAC, encode
useiee
post May 17 2009, 12:16
Post #1





Group: Members
Posts: 11
Joined: 13-May 09
Member No.: 69758



I am interesting in the course of FLAC encoding. I wonder how to specify the wav's frames and the corresponding flac's frame. I encounter a little trouble while reading the introduction of FLAC format.
Thank u for helping me!
Ur replies will all do me a favor:)


--------------------
All my will
Go to the top of the page
+Quote Post
quadamage
post May 17 2009, 15:02
Post #2





Group: Members
Posts: 28
Joined: 22-September 07
Member No.: 47256



Foobar2k will do the job for you.
Go to the top of the page
+Quote Post
ktf
post May 17 2009, 19:11
Post #3





Group: Members
Posts: 436
Joined: 22-March 09
From: The Netherlands
Member No.: 68263



QUOTE (useiee @ May 17 2009, 13:16) *
I wonder how to specify the wav's frames and the corresponding flac's frame.


What do you mean with that? Do you want to write FLAC files by hand? :S Anyway, transcoding from WAV to FLAC goes fine with the flac commandline utility, for Windows you can search for FLAC Frontend.


--------------------
Music: sounds arranged such that they construct feelings.
Go to the top of the page
+Quote Post
Nick.C
post May 17 2009, 19:31
Post #4


lossyWAV Developer


Group: Developer
Posts: 1815
Joined: 11-April 07
From: Wherever here is
Member No.: 42400



WAV files have no frames per se. PCM contained in a RIFF WAV container is a stream of interleaved samples, the interleave corresponding to the number of channels in the content.


--------------------
lossyWAV -q X -a 4 --feedback 4| FLAC -8 ~= 320kbps
Go to the top of the page
+Quote Post
useiee
post May 18 2009, 03:34
Post #5





Group: Members
Posts: 11
Joined: 13-May 09
Member No.: 69758



QUOTE (ktf @ May 18 2009, 02:11) *
QUOTE (useiee @ May 17 2009, 13:16) *
I wonder how to specify the wav's frames and the corresponding flac's frame.


What do you mean with that? Do you want to write FLAC files by hand? :S Anyway, transcoding from WAV to FLAC goes fine with the flac commandline utility, for Windows you can search for FLAC Frontend.


coz i've been trying to encode the WAV myself in some other language while there is FLAC's source code written in C/C++. i am doing a big task and it's more difficult than i imagine.....ohmy.gif wish somebody help me..


--------------------
All my will
Go to the top of the page
+Quote Post
useiee
post May 18 2009, 04:00
Post #6





Group: Members
Posts: 11
Joined: 13-May 09
Member No.: 69758



QUOTE (Nick.C @ May 18 2009, 02:31) *
WAV files have no frames per se. PCM contained in a RIFF WAV container is a stream of interleaved samples, the interleave corresponding to the number of channels in the content.


woow met a master! smile.gif Thank u for reminding me that!
When i use an IDE to read the wav file in binarycode-mode, i found the return is an N*1 array and all of them is data. It made me guess there is no signal of bit to indicate the begining or end of each sample. So how to identify WAV file sample by sample?
Another question is that i dont know what's the corresponding relationship between a WAV file's block and a FLAC file's frame. That is to say, how does transcoding specify its frame length? defined by me, or, the FLAC's work has done this?
Thank u so much !


--------------------
All my will
Go to the top of the page
+Quote Post
Nick.C
post May 18 2009, 09:35
Post #7


lossyWAV Developer


Group: Developer
Posts: 1815
Joined: 11-April 07
From: Wherever here is
Member No.: 42400



There's a good explanation of the RIFF:WAVE format here it helped me a lot when I was learning about WAV files. Once you understand the various chunks then you will be able to determine where the samples are.


--------------------
lossyWAV -q X -a 4 --feedback 4| FLAC -8 ~= 320kbps
Go to the top of the page
+Quote Post
useiee
post May 19 2009, 17:55
Post #8





Group: Members
Posts: 11
Joined: 13-May 09
Member No.: 69758



QUOTE (Nick.C @ May 18 2009, 16:35) *
There's a good explanation of the RIFF:WAVE format here it helped me a lot when I was learning about WAV files. Once you understand the various chunks then you will be able to determine where the samples are.


Many THX! benefit a lot))


--------------------
All my will
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th December 2014 - 08:06