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

Which is the "correct" content-type for FLAC?

Some software uses audio/flac. Some uses audio/x-flac. MDN suggests that x-flac is "non-standard". But based on what? But this appears to be the official registry for audio/ types... and audio/flac doesn't appear on it. Has nobody ever registered…
jrochkind
  • 22,799
  • 12
  • 59
  • 74
5
votes
2 answers

Split audio file into several files, each below a size threshold

I have a FLAC file which I need to split into several distinct FLAC files, each of which must be below 100 MB in size. Are there any UNIX tools which can do this for me? Can I implement this logic myself? Side-note: since FLAC is compressed, I…
Ben Sandler
  • 2,223
  • 5
  • 26
  • 36
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
  • 484
  • 3
  • 9
  • 30
4
votes
5 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
  • 1,281
  • 14
  • 34
4
votes
1 answer

Error while decoding/encoding flac to/from wav

I have added LibFlac in xcode project . Then I added decode/main.c from Libflac in my project. I passed infile.flac and run executable of project but it is giving following error decoding: FAILED state: FLAC__STREAM_DECODER_END_OF_STREAM…
iProgrammer
  • 3,099
  • 3
  • 33
  • 59
4
votes
1 answer

FFMPEG: flac audio file duration in metadata is 0

I have a flac audio file with incorrect duration in the metadata. The audio has a length of 55 minutes but the metadata has a duration of 0. Is it possible to use an ffmpeg command to fix this? Below are the outputs of an ffprobe: Duration: N/A,…
Chognificent
  • 393
  • 6
  • 20
4
votes
2 answers

Google speech API - php does not return anything

My code is inspired by this php version of full duplex google speech API for speech-to-text : http://mikepultz.com/2013/07/google-speech-api-full-duplex-php-version/ I have few flac files that do work and give the array output as explained on Mike's…
asmicapri
  • 83
  • 6
4
votes
1 answer

How to convert WAV audio file to FLAC format in javascript or php

I am recording audio in wav format using recorder.js https://github.com/mattdiamond/Recorderjs but google's speech API accept only FLAC format of audio. Could anyone guide me either to a FLAC recorder or how to convert the recorded wav file to a…
Vikash
  • 45
  • 4
4
votes
1 answer

how to install flac support (flac libraries) to sox in Windows

when I try to work on flac files I got "no handler for file extension flac" error. is there any way to solve this problem in windows.
4
votes
0 answers

How accurate is mutagen track length info

I'm doing some auditing of my music library (using Mutagen/Python), including looking for duplicates. In particular, I am writing a program to look for duplicates and I am using track-length as part of the way I compare two tracks. In the process of…
RFlack
  • 436
  • 1
  • 5
  • 19
4
votes
4 answers

Recursively test all flac files in a folder

I wish to have a command or script that will execute the test feature of flac on all flac files in a folder and its sub-folders. (i.e. $ flac -t music_file.flac) I've tried using find . -name "*.flac" -exec flac -t '{}' \; and it works, however…
farmerdave
  • 43
  • 3
4
votes
2 answers

ruby - IO.popen not working lame stdin and stdout encoding

I've been working with pipes and IO.popen specifically in Ruby and have come across a problem that I can't figure out. I am trying to write binary data from the flac process to the lame process into a file. The code structure I am using is below. #…
Hans
  • 259
  • 6
  • 12
4
votes
3 answers

Convert raw PCM to FLAC?

EDIT: I've updated the code below to resemble the progress I have made. I'm trying to write the .wav header myself. The code does not work properly as of now, the audio is not being written to the file properly. The code does not contain any…
syb0rg
  • 8,057
  • 9
  • 41
  • 81
4
votes
4 answers

How convert audio raw to flac in Android

I recording audio with class audoiRecord. Now I want convert audio raw file to *flac format. I convert *raw file to wav next way: private void copyWaveFile(String inFilename,String outFilename){ FileInputStream in = null; FileOutputStream…
user1755546
  • 1,049
  • 2
  • 13
  • 27
4
votes
1 answer

Can't play ogg and flac

Qt 5.0.1 QMediaPlayer on 32 bit Windows XP can only play MP3 and WAV files. How can I extend it to play OGG and FLAC files too?
Dibo
  • 1,159
  • 17
  • 34
1
2
3
15 16