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
2
votes
1 answer

Convert audio into FLAC using libsox

I am trying to programmatically convert audio in memory buffer using libSoX API. It worked fine for changing the sampling rate, for instance, but with conversion between PCM and FLAC I have certain troubles. QByteArray inData = [...]; sox_effect_t…
Dmytro Prylipko
  • 4,762
  • 2
  • 25
  • 44
2
votes
1 answer

why ffmpeg encodes a ogg file with flac encoder?

I want to convert an audio into an ogg file, my command is: ffmpeg -i in.wav out.ogg I found that the output stream encoder is flac instead of ogg or vorbis ! The ffmpeg output message shows below: ffmpeg version 3.1.2 Copyright (c) 2000-2016 the…
tangshi
  • 58
  • 7
2
votes
1 answer

Playing audio using ffmpeg and AVAudioPlayer

I am trying to read an audio file (that is not supported by iOS) with ffmpeg and then play it using AVAudioPlayer. It took me a while to get ffmpeg built inside an iOS project, but I finally did using kewlbear/FFmpeg-iOS-build-script. This is the…
Mr EdgarP
  • 151
  • 5
2
votes
1 answer

How to get FLAC frame length

I'm study FLAC decode problem, but can't figure out how to get FLAC frame length. Please help. https://xiph.org/flac/format.html I docoded METADATA_BLOCK_STREAMINFO, and get below data: mMinBlock: 4096 mMaxBlock: 4096 mMinFrame: 1201 mMaxFrame:…
Dongfu He
  • 41
  • 5
2
votes
0 answers

Media codec - convert wav to flac

I use Audio Record to record audio and Media Codec to convert raw .WAV data buffer to Flac buffer. This Flac buffers are then written to a file which is not playable. As I looked at Flac file format, it requires file header and frame header/footer…
Bao Le
  • 16,643
  • 9
  • 65
  • 68
2
votes
1 answer

QtMultimedia flac support

im trying to use Qt library QtMultiMedia to play music. I want it to support .flac format as well. I'm running Windows 8.1, i installed flac codecs from http://xiph.org/dshow/ . BTW it works perfectly with mp3s . Sample code: QMediaPlaylist…
Walto
  • 21
  • 3
2
votes
0 answers

How can I convert Android recorded audio input to flac in Xamarin

We are creating an andoid app with Xamarin that needs to work under lock screen. In particular, to be able to recognize voice that comes in via mic.Under lock screen we are unable to use an "on-board" Google Voice recognition APIs. Google provides…
2
votes
1 answer

Reading metadata from FLAC files with Java

I want my users to upload their flac files and be able to read their metadata. After reading what type of tagging system flac uses (vorbis comments, http://en.wikipedia.org/wiki/FLAC) i am looking for a library that allows me to read and write…
Juan Diego
  • 1,396
  • 4
  • 19
  • 52
2
votes
0 answers

Convert WAV to FLAC with libFLAC in C#

I've tried to port the libFLAC encoding example to C# and came up with this code: public class LibFLAC { public static void Test() { string inputPath = Path.Combine("D:\\", "_", "test.pcm"); string outputPath =…
2
votes
3 answers

Is it possible to play FLAC files in Phonon?

I'm trying to play some .flac files using PySide's Phonon module (on Mac if it makes a difference) but it's not an available mimetype for playback. Is there a way to enable this or a plugin I need to install?
Luke Hansford
  • 565
  • 1
  • 8
  • 24
2
votes
3 answers

Chunked Encoding using Flac on iOS

I found a library that helps to convert WAV file to Flac: https://github.com/jhurt/wav_to_flac Also succeed to compile Flac to the platform and it works fine. I've been using this library after capturing the audio on wav format to convert it to Flac…
Idan
  • 9,880
  • 10
  • 47
  • 76
2
votes
1 answer

Delete Music File Metadata Tag

How do I delete a metadata tag from a FLAC file or MP3 ID3 tag? I can use mutagen to edit information, but how would I delete a single portion of information? I need to delete a tag entitled fmps_playcount, but not the rest of the metadata.
mh00h
  • 1,824
  • 3
  • 25
  • 45
2
votes
1 answer

How to build Flac for BlackBerry Cascade?

I want to build Flac for a project I'm working on in Cascades on a Mac in Mometics. http://sourceforge.net/projects/flac/files/flac-src/ I have in the past successfully built LAME and Ogg by just dragging the c and h files into my Workspace src…
Dave
  • 477
  • 2
  • 5
  • 18
2
votes
1 answer

Python: Check mp3 file is fully downloaded

I wrote a small python script that's monitor user music library and add new files info (mp3, aac, flac) to sqllite db. If user download music from torrents, how can i check that it is fully downloaded and is not corrupted?
ste1inbeck
  • 315
  • 4
  • 13
2
votes
2 answers

How to convert FLAC file to wav file in ios?

I want to create a audio player that support Flac format of audio files.For this i tried to implement the algorithm of flac to wav conversion which is as follow Please help me. All time it gives me error ERROR: initializing decoder:…
user1531494