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: converting .flac to .mp3 with the SDK (Read 3066 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

converting .flac to .mp3 with the SDK

Converting files is a feature of foobar2000 that it seems to me should be accessible through the SDK, for example, if you have a pointer to a file that's in FLAC format you can call a built-in function to write it to an output in a MP3 codec file.

Is this possible?? have I missed this entirely?

Re: converting .flac to .mp3 with the SDK

Reply #1
Does FB2K include any codecs built in??  Why would it?  Just call FFMPEG.
It's your privilege to disagree, but that doesn't make you right and me wrong.

 

Re: converting .flac to .mp3 with the SDK

Reply #2
Does FB2K include any codecs built in??  Why would it?  Just call FFMPEG.

well (i was under the impression) it does, because you can use foobar to convert files. If you right click on a track or a set of tracks, you can go to convert > select output type.

It's true that you can use ffmpeg as an external encoder from the normal foobar program. You can also call ffmpeg or lame from c++ or use the libffmpeg libraries from c++.

Re: converting .flac to .mp3 with the SDK

Reply #3
If you have installed Foobar with the conversion option you can install and use the Free Encoder Pack (https://www.foobar2000.org/encoderpack) to set you up with a range of encoders that are called up/selected as you described.

Re: converting .flac to .mp3 with the SDK

Reply #4
If you right click on a track or a set of tracks, you can go to convert > select output type.
That's as maybe, but it's only calling up standard library routines to do that (eg LAME).
It's your privilege to disagree, but that doesn't make you right and me wrong.

Re: converting .flac to .mp3 with the SDK

Reply #5
The file format conversion is provided by a component and none of its features are exposed by the SDK. And without optional third party encoder binaries the Converter can only write WAV files.

If you need to encode audio yourself, for example to make a streaming component, you'll need to include the required encoding library and functionality in your component.

Re: converting .flac to .mp3 with the SDK

Reply #6
The file format conversion is provided by a component and none of its features are exposed by the SDK. And without optional third party encoder binaries the Converter can only write WAV files.

If you need to encode audio yourself, for example to make a streaming component, you'll need to include the required encoding library and functionality in your component.

gotcha that makes sense.