Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Cool Edit filter for FLAC (Read 9421 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cool Edit filter for FLAC

I couldn't find Cool Edit filter for FLAC so I wrote a simple one. If someone is interested in testing you can download it here. Sources are also available. Not tested on anything but 16 bit stereo files and config isn't done yet.

Edit: oh, and saved file has extension .fla, Cool Edit didn't like .flac...

Cool Edit filter for FLAC

Reply #1
You da man, thx so much for this!!
Proud member of the FLAC and MPC evangelism

Cool Edit filter for FLAC

Reply #2
I'll give it a whirl for you m8, another reason to tempt me into changing from ape
< w o g o n e . c o m / l o l >

 

Cool Edit filter for FLAC

Reply #3
When I try to save using this filter, I get an error message:
"File is probably in use by another application. Please close the other application and try saving again."

But, the file is not open in any other application.  Using CoolEdit Pro 2.0 on Win 2000 pro.

Edit --  It does create an output file, but it is always only 86 bytes long (looks like just a header).

Cool Edit filter for FLAC

Reply #4
Quote
When I try to save using this filter, I get an error message:
"File is probably in use by another application. Please close the other application and try saving again."

But, the file is not open in any other application.  Using CoolEdit Pro 2.0 on Win 2000 pro.

Edit --  It does create an output file, but it is always only 86 bytes long (looks like just a header).

Sorry about that, one function required by file writing was completely missing. I opened FLAC file with the filter and saved the same file to other location and Cool Edit apparently just directly copied the source flac to destination so I didn't notice the problem immediately. Version 0.1.1 uploaded which fixes this.

I could use some help from someone who is familiar with FLAC encoding libraries, when I change some encoding settings from defaults I get artifacts in the encode, namely with these settings:
Code: [Select]
FLAC__seekable_stream_encoder_set_blocksize ( encoder, 4608 );
FLAC__seekable_stream_encoder_set_max_lpc_order ( encoder, 8 );
FLAC__seekable_stream_encoder_set_do_exhaustive_model_search ( encoder, false );
FLAC__seekable_stream_encoder_set_min_residual_partition_order ( encoder, 3 );
FLAC__seekable_stream_encoder_set_max_residual_partition_order ( encoder, 3 );

Cool Edit filter for FLAC

Reply #5
Great plugin, I missed it.

Cool Edit filter for FLAC

Reply #6
0.1.1 version  works like a charm - thanks for this!

Cool Edit filter for FLAC

Reply #7
Hello, Case.

Maybe you can come up with something for us WavPackers too?

Regards;

Roberto.

Cool Edit filter for FLAC

Reply #8
Glad someone else spotted the saving bug


Also, in CEP2 I get a message warning me that I'm saving to a lossy format which is not of as high a fidelity, I get the same saving to ogg or mp3..  Guess that needs turning off

I also guess you know this, but some options on compression level would be cool

Thanks for the filter
< w o g o n e . c o m / l o l >

Cool Edit filter for FLAC

Reply #9
Quote
I could use some help from someone who is familiar with FLAC encoding libraries, when I change some encoding settings from defaults I get artifacts in the encode, namely with these settings:
Code: [Select]
FLAC__seekable_stream_encoder_set_blocksize ( encoder, 4608 );
FLAC__seekable_stream_encoder_set_max_lpc_order ( encoder, 8 );
FLAC__seekable_stream_encoder_set_do_exhaustive_model_search ( encoder, false );
FLAC__seekable_stream_encoder_set_min_residual_partition_order ( encoder, 3 );
FLAC__seekable_stream_encoder_set_max_residual_partition_order ( encoder, 3 );

Do you have some more specifics?  Those settings are OK, but when you call these do any of them return false?  If not, is FLAC__seekable_stream_encoder_init() returning FLAC__SEEKABLE_STREAM_ENCODER_OK?

Josh

Cool Edit filter for FLAC

Reply #10
Quote
Do you have some more specifics?  Those settings are OK, but when you call these do any of them return false?  If not, is FLAC__seekable_stream_encoder_init() returning FLAC__SEEKABLE_STREAM_ENCODER_OK?

Josh

Other than those settings I had 'FLAC__seekable_stream_encoder_set_do_mid_side_stereo ( encoder, true );' when file was stereo. None of the functions return false and init returns OK status.
I did some more testing now and only the blocksize setting seems to cause problems, and it seems to be working properly when mid side stereo is disabled. Seems weird...

Cool Edit filter for FLAC

Reply #11
Uploaded 0.1.2 which fixes some bugs and supports all bitdepths. I don't recommend using it for writing files though as it appears to create much larger files than flac.exe.

Cool Edit filter for FLAC

Reply #12
Quote
I did some more testing now and only the blocksize setting seems to cause problems, and it seems to be working properly when mid side stereo is disabled. Seems weird...

Very odd.  What artifacts do you get?  Does the resulting flac file pass a 'flac -t'?  If you have a flac sample I can take a look at it.

Also, you could also try recompiling libFLAC in debug mode; many assertions will be enabled, not sure if you can get a console window for cooledit in which to see them though.

Josh

Cool Edit filter for FLAC

Reply #13
Any progress on this?
< w o g o n e . c o m / l o l >

Cool Edit filter for FLAC

Reply #14
Well, here's my filter+src. I didn't realise at the time I was duplicating something Case had already done 
Still, maybe you'll find it useful.
http://www.vuplayer.com/files/ce_flac.zip

Jim

Cool Edit filter for FLAC

Reply #15
Quote
Any progress on this?

Fixed now.

Cool Edit filter for FLAC

Reply #16
As in it's safe for saving with and creates identical files to the command line encoder?
< w o g o n e . c o m / l o l >

Cool Edit filter for FLAC

Reply #17
Quote
As in it's safe for saving with and creates identical files to the command line encoder?

It created a bit larger files than flac.exe because it added seektable. Apparently this was totally unnecessary and new version doesn't write it anymore, files are now bit-identical with flac.exe's output. And it is safe to use, it has verify mode enabled which constantly checks that output is uncorrupted and you'll see a message box telling you about any problems that may possibly occur.

Cool Edit filter for FLAC

Reply #18
Cool 

Does it save using -5 or -8 as default btw, as I don't get the options box to decide?
< w o g o n e . c o m / l o l >

Cool Edit filter for FLAC

Reply #19
It uses same default settings as flac.exe which means -5. I may add options later but other quality settings don't make much sense with FLAC.

Cool Edit filter for FLAC

Reply #20
Uploaded filter version 0.1.5, code has received major cleanup and users can notice changes in option box and added support for OggFLAC.

Cool Edit filter for FLAC

Reply #21
Hi, Case

Was extensively using your filter with CEP2.0 and 32bit files. Great job! Worked flawlessly, although I've never seen any info on FLAC supporting 32bit ...

Until recently. Nothing changed in the system (at least what I'm aware of), but occasionally FLACed CEP now refuses to save 32bit with "not supported file format" message. I cannot figure out exact curcumstances when the problem pops up, but it seems that this might be somehow connected with Registry entries (WinXP) for CEP filters. When I've deleted these entries for FLAC, sometimes I manage to make it work. But not for long

You might want to look into it yourself in your spare time