IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
problem with convertion, [moved from General Audio/TOS #6]
#FatalError
post Nov 21 2013, 19:02
Post #1





Group: Members
Posts: 3
Joined: 17-November 13
Member No.: 112277



hi i have a problem I want to convert a wav file to FLAC with output in RAW format, one channel and 8000 kbps i used this code

QUOTE
sox file.wav -c1 -r8000 -t wav - | sox -t wav - out.raw

i tried to convert the same file with this code and the program vlc, with vlc the output file size is 8 kbts with the sox script is 20 kb
how can i fix it?

This post has been edited by #FatalError: Nov 21 2013, 19:16
Go to the top of the page
+Quote Post
DVDdoug
post Nov 21 2013, 22:35
Post #2





Group: Members
Posts: 2610
Joined: 24-August 07
From: Silicon Valley
Member No.: 46454



I don't know what a RAW FLAC is, and I don't use SOX... Or, are you trying to say your input is RAW?

Where's the FLAC command?

But if you have more details, including the bit depth (i.e. 16-bits), the number of channels (mono or stereo) and the playing time, I can take a guess about which file size seems right.

For an uncompressed file:
File size in bytes = Playing time in seconds x (bit depth/8) x number of channels x sample rate in kHz.
A FLAC file is typically around 60% of that.

(Plus, the header and any tags take a little space, and any embedded images can add quite a bit to the file size.)

Do both of these files play?

That should be 8000kHz, not 8000kbps. I assume your original file is 8000kHz mono? And with a WAV file, you shouldn't need the -r8000 or -c1 in your command, because SOX can read that information from the WAV header.

P.S.
If you are not happy with VLC, maybe you can use TAudioConverter and avoid the command line confusion.

This post has been edited by DVDdoug: Nov 21 2013, 22:51
Go to the top of the page
+Quote Post
saratoga
post Nov 22 2013, 00:22
Post #3





Group: Members
Posts: 5001
Joined: 2-September 02
Member No.: 3264



In the last thread asking this question you said you wanted RAW PCM. In this one you're saying FLAC.

Which do you actually want?
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: 1st October 2014 - 16:59