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.

220 questions
27
votes
2 answers

ffmpeg to convert from flac to wav

I need to convert a flac file to a wav file without changing sample rate and bit depth. As far as I know changing these properties may distort the audio, so how do i specify them not to be changed? Also, is there any way to prevent metadata to be…
user3580089
  • 349
  • 1
  • 3
  • 7
17
votes
1 answer

Detect if a file is an MP3 file?

I'm writing a C++ library for decoding and encoding audio between different formats/codecs. I have a routine for quickly detecting the format before loading the required codec library. For WAV files one can simple look for the ASCII values "RIFF"…
goocreations
  • 2,622
  • 7
  • 33
  • 50
13
votes
2 answers

How to convert the WAV/OGG file to FLAC file in Android?

EDIT: Incorporated the changed uv001's answer. I can only find that ICS 4.0 support decoding of FLAC, but encode. I need some encoder to convert wav to flac, but currenty I can't find it. I find there is a jFlac avaible , but I don't know how to…
temple
  • 884
  • 12
  • 21
12
votes
2 answers

ffmpeg FLAC 24 bit 96khz to 16 bit 48khz

Trying to figure out ffmpeg, currently working on getting 24bit/96khz FLAC files into 16bit/48khz.
Corey
  • 141
  • 1
  • 1
  • 4
12
votes
2 answers

Is there any crossbrowser solution for playing flac? (or is it possible in theory to make one)

Not interested in silverlight. Flash/javascript/html5 solutions are acceptable. If you do not know such solutions, could you please say is it possible to make such that or not?
avasin
  • 7,370
  • 11
  • 69
  • 116
11
votes
3 answers

How to convert wav to flac from python?

I've just started using Python and am using the PyAudio and Wave modules to take sound from my microphone and convert it to a .wav file. What I'm trying to do is now convert that .wav to a .flac. I've seen a few ways to do this which all involve…
Charles W
  • 1,944
  • 3
  • 19
  • 35
9
votes
2 answers

How can I get FLAC file metadata in Swift on iOS 11?

I need to get metadata of an FLAC file. I tried following code: let item = AVPlayerItem(url: URL(fileURLWithPath: path)) let commonMetadata = item.asset.commonMetadata songInfo[ARTIST_NAME] = "Unknown" songInfo[GENRE_NAME] = "Unknown" …
Return Zero
  • 376
  • 3
  • 13
6
votes
2 answers

Could not find tag for codec h264 in stream #0 codec (ffmpeg flac to alac convert)

I'm rying to convert flac audio file into alac audio file. I'm using ffmpeg command in mac os terminal after installing ffmpeg using command brew install ffmpeg. After running following command for name in *.flac; do ffmpeg -nostdin -i "$name"…
Superkoira
  • 395
  • 2
  • 10
6
votes
1 answer

avconv : flac to ogg conversion with metadata kept

I'm currently writing a command line tool to convert a input music library with various formats (flac / ogg / mp3 / ...) to an output music library of a given format (flac / ogg / mp3). I've based it on avconv (or ffmpeg if avconv is not available)…
Biapy
  • 304
  • 3
  • 8
6
votes
2 answers

.NET: How can I convert an mp3 or a wav file to .flac

I need to write a utility in c# that uses Google Speech Api to convert speech from an audio file into text. As far as I know, Google only accepts .flac format for this api. Unfortunately, I have .wav and .mp3 audio files. So I am trying to find…
Kishore Masand
  • 140
  • 2
  • 12
6
votes
1 answer

Why is FLAC Streaming over HTTP done with Ogg encapsulation instead of natively?

All of the current FLAC streaming implementations (such as Edcast with Icecast) seem to use Ogg as a container for FLAC while streaming. What is the reason for this? What are the drawbacks of not using Ogg, and streaming the "native" FLAC stream…
Brad
  • 146,404
  • 44
  • 300
  • 476
5
votes
1 answer

Flac Converter Objective-C?

Does anyone know how to convert .mp3 to .flac in Objective-C using FFmpeg for iOS? Or other solutions to convert? I want to use Google's speech recognition api and of course they only support .flac audio.
Smoothie
  • 261
  • 4
  • 11
5
votes
2 answers

Google cloud speech syncrecognize "INVALID_ARGUMENT"

I have managed the "overview tutorial" : https://cloud.google.com/speech/docs/getting-started Then I tried to use my own audio file . I uploaded a .flac file with a sample rate of 16000Hz. I only changed the sync-request.json file below with my own…
Damien Romito
  • 8,463
  • 8
  • 57
  • 71
5
votes
1 answer

How to extract just the audio from an MP4 file and convert it to FLAC file in C#?

My goal is to write C# that turns Microsoft LYNC meeting audio into text. Here is my project so far. Initially I was trying to record from microphone, save it to WAV then convert WAV to FLAC and using GoogleSpeechAPI, convert FLAC to text. But I got…
Awesome_girl
  • 434
  • 3
  • 8
  • 28
4
votes
3 answers

Linux script to transfer (ID3) tags from FLAC to MP3

For my media server, I am looking for ways to transfer tags from my FLAC files to MP3. In a bash script, I can extract tags using metaflac to local vars, but when tagging mp3 with id3v2, I seem to lose national characters (guess it must be…
TheRoadrunner
  • 879
  • 9
  • 27
1
2 3
14 15