LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert WAV to FLAC

Solved!
Go to solution

Hi!

 

I have this problem, that I don't know how to convert my recorded Wave into FLAC format. Is there any way I can do it easily?

0 Kudos
Message 1 of 14
(3,772 Views)

Not sure if this a spam bot, where the the next reply will be with a link to some commerical software that has a trial.

 

In either case one of the first links was Xrecode

 

http://xrecode.com/

 

It looks like they have a portable version (so no installer needed) and it works with the command line.

 

http://xrecode.com/cmdline.txt

 

That's the quick and dirty solution.  There is probably a better one using some .Net/ActiveX product

0 Kudos
Message 2 of 14
(3,766 Views)

I have been probably misunderstood. I need to do this in my app in LabVIEW, so it would be great if someone had some .dll's that are know to work with LV and that I can use in my VI. A site with well described coding algorithm would be ok too (even better because I could make the encoding myself). 🙂 Though thank You for help. 🙂

0 Kudos
Message 3 of 14
(3,759 Views)

@FLACConverter wrote:

I have been probably misunderstood. I need to do this in my app in LabVIEW, so it would be great if someone had some .dll's that are know to work with LV and that I can use in my VI. A site with well described coding algorithm would be ok too (even better because I could make the encoding myself). 🙂 Though thank You for help. 🙂


Why reinvent the wheel?  If someone has a commandline program that will do the converting, why not call that program from the commandline using LabVIEW?

0 Kudos
Message 4 of 14
(3,750 Views)

He's probably unaware that you can do this.

 

OP, use System Exec.vi to call the aforementioned tool from cmd line. 

0 Kudos
Message 5 of 14
(3,741 Views)

I'm trying to use the System Exec, but i get a quite annoying error:

C:\Programs is not recognized as an internal or external command, operable program or batch file.

 

While I try to use command:

C:\Users\xxxxx\Documents\LabView Projects\flac.exe -f abc.wav

 

I also got this VorbisEnc.dll for FLAC encoding, but I have no idea how to use the .NET connectivity tools to use it (or maybe else - I don't know what arguments should I pass to the dll to get the conversion). Anyone has some experience with stuff like this?

http://speedy.sh/2ywwY/VorbisEnc.dll

 

The flac.exe was downloaded from here:

http://sourceforge.net/projects/flac/files/flac-win/flac-1.2.1-win/

 

Thank You for help in advance!

0 Kudos
Message 6 of 14
(3,688 Views)

Put the command in quotes.

0 Kudos
Message 7 of 14
(3,681 Views)

Already tried it in many different options... Still nothing.

 

The thing I don't get most, is why it's referencing to directory C:\Programs while I do not refer to it in any means. The message with the error is written in the standard error field. At the NI offcial help I found that it's something with 32 and 64 bit apps but it doesn't work for me because my exe is not a system one... Maybe I'm doing something wrong...

 

http://forums.ni.com/t5/LabVIEW/Problem-Using-quot-msg-quot-command-with-quot-System-Exec-vi/td-p/15...

http://digital.ni.com/public.nsf/allkb/7B275F835074A31F8625788000569993

0 Kudos
Message 8 of 14
(3,676 Views)

Post the VI you're trying to run... you're probably just hitting a syntax error.

0 Kudos
Message 9 of 14
(3,661 Views)

I've deleted some stuff from string inputs just not to pass my personal directories... 🙂

0 Kudos
Message 10 of 14
(3,638 Views)