Questions tagged [flac]

Questions about the FLAC audio format. FLAC is an acronym for Free Lossless Audio Codec. The codec uses a compression scheme that was designed specifically for audio, resulting in a fast, good compression ratio with no loss of quality.

FLAC stands for Free Lossless Audio Codec, an audio format similar to MP3, but lossless, meaning that audio is compressed in FLAC without any loss in quality. This is similar to how Zip works, except with FLAC you will get much better compression because it is designed specifically for audio, and you can play back compressed FLAC files in your favorite player (or your car or home stereo, see supported devices) just like you would an MP3 file.

FLAC stands out as the fastest and most widely supported lossless audio codec, and the only one that at once is non-proprietary, is unencumbered by patents, has an open-source reference implementation, has a well documented format and API, and has several other independent implementations.

See About FLAC for more, or Using FLAC for how to play FLAC files, rip CDs to FLAC, etc.

NOTE: The above was taken directly from the project's website.

240 questions
4
votes
0 answers

How to encode wav files to flac format on android

I have a bytearray that holds an wav audio stream. Is there a way on android system to convert the wav file to a flac file? I found some example code from FlacEncoder library but this library assumes as far as I see the use of some audio classes…
Subby
  • 1,997
  • 4
  • 22
  • 38
3
votes
2 answers

Compiling Issue with SFBAudioEngine

I want to play Flac files in ios and downloaded code from: SFBAudioEngine I added frameworks for mac os and it build successfully but when I run app it crashes and gives dyld: Library not loaded: @rpath/dumb.framework/Versions/A/dumb Referenced…
DeviPhone26
  • 615
  • 2
  • 10
  • 16
3
votes
1 answer

Cutting FLAC using ffmpeg does not change timestamps accordingly

I am using the following command to cut a FLAC file: ffmpeg -i input.flac -ss 10s -t 10s -c copy output.flac output.flac contains the correct duration of audio. However, all media players show its duration as the duration of input.flac. The only…
George Tian
  • 401
  • 7
  • 16
3
votes
1 answer

Problems piping ffmpeg to flac encoder

I need to encode a flac file with seektables, ffmpeg's flac encoder does not include seektables, so I need to use the flac CLI. I'm trying to make it possible to convert any arbitrary audio file to a seekable flac file by first piping it through…
Sebastian Olsen
  • 10,318
  • 9
  • 46
  • 91
3
votes
0 answers

Wav to Flac audio conversion using C#

I am trying to use google speech to text API . I am stuck converting wav audio file into flac audio format. Here is my code: Here is wav recording code: private void sourceStream_DataAvailable(object sender, NAudio.Wave.WaveInEventArgs e) { …
DIGIT
  • 79
  • 2
  • 11
3
votes
2 answers

Convert Audio files to .flac format using php code

I have audio files on my server and wanted to convert them into flac format in order to convert them into text. Please let me know how can we achieve that..
PrashJ
  • 71
  • 2
  • 6
3
votes
0 answers

Using the flac extension in Exoplayer in Android

I'm trying to use ExoPlayer library with flac extension in my android application. And I faced with the following problems: Not all files can be played (as far as I understand the problem with the files with a high bitrate); not all devices able to…
Andrei
  • 51
  • 5
3
votes
2 answers

Compiling libsndfile, and it does not find FLAC

I am trying to cross-compile libsndfile for use on an intel edison, with flac capabilities. I have successfully compiled FLAC, OGG, and VORBIS into my cross toolchain but when I run ./configure it gives me the following output: checking for…
CrustyAuklet
  • 357
  • 3
  • 16
3
votes
1 answer

PJSIP (PJSUA2) - OPUS codec

Is it possible to configure PJSIP (PJSUA2) to use OPUS codec?
nicolaspanel
  • 943
  • 11
  • 21
3
votes
2 answers

IllegalStateException when reading from ShortBuffer in Unity Android

I'm working on a game in Unity, where i need raw audio data from the media buffer. The following code is being used as a jar plugin in Unity. It's working on android 4.x without problems. But when i try to run it on Android 5.0.1 or 5.1, i get the…
Peter
  • 33
  • 1
  • 4
3
votes
4 answers

python check audio file type, MP3 or FLAC

I want to check if a audio file to see if its MP3 or FLAC the checks only have to be basic but I want to go beyond simply checking the file extensions os.path.splitext Works okay but no good if the file doesn't have an extensions written in or…
twigg
  • 3,753
  • 13
  • 54
  • 96
3
votes
1 answer

Determining the best filter order for linear predictive coding

I am wondering if there is an established method for choosing the best filter order to use when performing linear predictive coding (such as that used in audio file formats like FLAC). My current approach is: Take a chunk of signal Window the…
3
votes
1 answer

jFLAC. Split FLAC File

I need to split flac file to many pieces. I am using jFLAC library to read flac files FLACDecoder decoder = new FLACDecoder(inputStream); then I am trying to decode parent file between to SeekPoints decoder.decode(seekPointFrom, seekPointTo); I…
Georgy Gobozov
  • 13,633
  • 8
  • 72
  • 78
2
votes
1 answer

flac: "ERROR: input file has an ID3v2 tag" (it doesn't)

I'm trying to build a rather longwinded chain of programs and libraries that culminates in using a speech-to-text API to run an mp3 file into human-readable text. I was surprised to find very few APIs that do this online - the only working thing I…
mtrc
  • 1,317
  • 3
  • 16
  • 39
2
votes
1 answer

Extracting RIFF data from both .wav and .flac files

Wave files can contain unofficial metadata, such as Sampler Chunk - "smpl": https://sites.google.com/site/musicgapi/technical-documents/wav-file-format#smpl These are used for audio looping players and samplers avoiding to loading multiple…
Kim T
  • 5,770
  • 1
  • 52
  • 79
1 2
3
15 16