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
0 answers

HLS FLAC stream using FFMPEG

I have created a HLS stream from a FLAC file with an output of FLAC using the following command: ffmpeg -i 10-brass-in-pocket.flac -map 0:a -c:a:0 flac -f hls -hls_playlist_type vod -master_pl_name master.m3u8 -hls_time…
Myles McDonnell
  • 12,943
  • 17
  • 66
  • 116
2
votes
1 answer

How does Audible achieve 300MB file sizes for an audio file that is 24 hours long (FLAC vs Opus vs AA vs AAC)?

Does anyone know how audible can get a file to be 300MB when it is 24 hours long? I have been looking into different codecs and I just do not understand how they can compress such a long audio file into a small size. I have read about FLAC vs Opus…
ChannelJuanNews
  • 406
  • 3
  • 11
2
votes
1 answer

Getting cover from flac in iOS with AVFoundation and AudioToolbox

With the help of this SO, I successfully read metadata from my flac file. It seems however that the metadata is in one block, and the cover image is in a different. With the help of metaflac --list my.flac, I've located that there is at least one…
Inuk
  • 31
  • 5
2
votes
1 answer

Python convert stereo .flac to mono

I am struggling with manipulation of audio channels in Python. Specifically, how to convert stereo .flac into mono .flac file in Python? I know this method: https://trac.ffmpeg.org/wiki/AudioChannelManipulation#stereomonostream but i am looking for…
piernik
  • 177
  • 1
  • 12
2
votes
2 answers

Finding and deleting files with same prefix but different extension (i.e., *.flac and *.mp3)

In my music directory I have multiple duplicate files of both .mp3 and .flac format. Consider: /dir1/music1.flac /dir1/music1.mp3 /dir2/music1.mp3 /dir2/music2.MP3 /dir2/music2.flac /dir2/music3.mp3 music1.flac and music1.mp3 in dir1 are the same…
doogie
  • 23
  • 3
2
votes
0 answers

FLAC Recording from iPhone not getting Converted Using Google Speech API

I have Configured AVAudioRecorder as below to record Audio in Flac Format Recorder Configuration let settings: [String: Any] = [ AVFormatIDKey: Int(kAudioFormatFLAC), AVSampleRateKey: 16000, AVNumberOfChannelsKey:…
iOS Geek
  • 4,825
  • 1
  • 9
  • 30
2
votes
1 answer

How to record FLAC format in iOS 11+

I changed the code in AudioController.swift to: ... // Set format for mic input (bus 1) on RemoteIO's output scope var asbd = AudioStreamBasicDescription() ... asbd.mFormatID = kAudioFormatFLAC asbd.mFormatFlags =…
Raviteja
  • 101
  • 1
  • 8
2
votes
1 answer

Streaming OGG Flac to Icecast with libshout

I have a simple streamer developed in C++ using LibFlac and LibShout to stream to Icecast server. The flac Encoder is created in the following way: m_encoder = FLAC__stream_encoder_new(); FLAC__stream_encoder_set_channels(m_encoder, 2); …
Alex Paramonov
  • 2,630
  • 2
  • 23
  • 27
2
votes
1 answer

What APIs in iOS 11 support FLAC?

I'm trying to play back FLAC files in an app, but when I create an AVURLAsset, the isPlayable property is false for FLAC files. A number of sources have reported that the Files app in iOS 11 is able to Preview FLAC files, so I'm wondering if there's…
Jeff V
  • 571
  • 1
  • 5
  • 17
2
votes
5 answers

Codec comparison compression/quality

So I'm rebuilding my video library from my file archives (I have my DVDs/Blurays already decoded on my disk) and I want to ensure that I have the best quality files and compression. I know that lossless is not practical for saving space but I do…
Techie Android
  • 69
  • 1
  • 2
  • 6
2
votes
1 answer

FFMPEG's FLAC Compression Levels & Defaults Settings

I have searched for the documentation on this but found no information. I'm using the latest FFMPEG nightly build in Windows 10 Insider Build (also latest) 64 Bit. I need to know how to define the compression level of FLAC files. Also, by default…
Techie Android
  • 69
  • 1
  • 2
  • 6
2
votes
1 answer

convert video/webm;codecs=vp9 to .flac

I have a file in the video/webm;codecs=vp9 format and would like to convert it to .flac audio format? Is this possible? Thanks
BC00
  • 1,589
  • 3
  • 29
  • 47
2
votes
1 answer

build static sox with lame and flac support for AWS lambda

I'm trying to use sox in a AWS lambda function for conversion of FLAC file to MP3, but I cannot seem to build a version of sox with FLAC support. I have found this great solution that I have been using but it doesn't support FLAC. I've searched the…
2
votes
1 answer

Use of google speech API, issu with audio file format

Hope you're all well, I'm trying to use google speech API to convert interview I give directly into text files. I'm trying to get the environment up and running, so I'm testing it with a file : I'm really new with audio, so I converted a test file…
ilellouch
  • 79
  • 7
2
votes
0 answers

.wav vs .flac format for short game sound effects

I'm upgrading about twenty .mp3 sound effect files in an android game application. The files are all about 2 seconds long so the size difference per file is about 30 KB for .wav, 22 KB for .flac, and 6 KB for .mp3. My minimum sdk is 19 (Android 4.4)…
Androidcoder
  • 4,389
  • 5
  • 35
  • 50