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

Streaming some audio format files on iOS device

Just would like to know: is there any iOS native framework/SDK supports the streaming of HE-AAC (AAC+) audio files? And any iOS framework/SDK to stream .wav and FLAC (Free Lossless Audio Codec) audio files? Thanks a lot in advance.
stspb
  • 193
  • 2
  • 12
0
votes
1 answer

Gstreamer FLAC pipeline creation Error

I keep getting this error: $ ./test recit24bit.flac Now playing: recit24bit.flac Running... Error: Internal data flow error. Returned, stopping playback Deleting pipeline When compiling this code: #include #include static…
0
votes
1 answer

Android record in FLAC file

How can I make a record with a microphone in FLAC file? I have tried this: import javaFlacEncoder.FLAC_FileEncoder; FLAC_FileEncoder flacEncoder = new FLAC_FileEncoder(); File outputFile = new File(dir + "/flac1.flac"); flacEncoder.encode(file,…
0
votes
0 answers

Ogg FLAC demuxer for Aurora/flac.js

The Aurora project with flac.js provides FLAC decoding and playback with JavaScript. The demuxer in flac.js appears to only support native FLAC. Before I go off and re-invent the wheel, is there a JavaScript demuxer for FLAC within an Ogg stream?
Brad
  • 159,648
  • 54
  • 349
  • 530
0
votes
1 answer

using libFLAC to convert the output of AudioContext to FLAC format

I am trying to convert the PCM output of HTML5 audiocontext (e.g. buffer.getChannelData(0), ...) to PCM data that is required by "FLAC__stream_encoder_process_interleaved" The weird thing is FLAC requires data as int32 buffer (const FLAC__int32…
Belaviyo
  • 177
  • 2
  • 11
0
votes
1 answer

Packging LEFT and RIGHT channel data

I am decoding FLAC audio into memory, and passing the decoded audio data to the OpenAL: void alBufferData (ALuint bufferName, ALenum format, const ALvoid *data, ALsizei size, ALsizei frequency); The data from the decoded audio goes into mine…
8-bitButterfly
  • 203
  • 2
  • 13
0
votes
1 answer

libFLAC symbols not found and vtable errors

I have compiled libFLAC from source code under macintosh os x 10.6.8 and tested WAV to FLAC conversion with success (from the command line). I have also used the default build as such: ./configure --prefix="$base/flac/more/"…
8-bitButterfly
  • 203
  • 2
  • 13
0
votes
1 answer

Windowing and lossless compression

I'm studying how FLAC works, although my question is valid for any lossless codec. I wonder how may a codec be lossless if the original signal is multiplied by a window which is not rectangular. I think this operation will modify the stream that we…
baister
  • 283
  • 2
  • 9
0
votes
0 answers

Play cue sheets in Android

I want to add playing cue sheets to my music app. I saw some apps like Poweramp and AndLess that can do this, but I have no idea how do they read cue files. Maybe there is some way to parse cue sheet and make a link to specific point in the flac…
HellCat2405
  • 752
  • 7
  • 16
0
votes
1 answer

Java audio conversion fails, Unsupported conversion: FLAC from MPEG2L3 22050.0 Hz

I have an AudioInputStream, and I want a FLAC AudioInputStream. I am using the FlacEncoding.FLAC from the jflac library. I added the mp3plugin.jar to the classpath to handle mp3. import javax.sound.sampled.AudioInputStream; import…
yzernik
  • 1,161
  • 2
  • 13
  • 19
0
votes
0 answers

bash script using multiple while loops and read line

I am trying to write a bash script to create some playlists of music. The part that has me stuck is the while loop for read line. I figure I am over thinking this so I turned to stackoverflow for assistance. # The first while loop is how many…
Greg Kuhn
  • 35
  • 5
0
votes
1 answer

What are those 32 bits near the start of a FLAC file?

I am trying to write a parser to extract information from the following FLAC file: $ hd audio.flac | head -n 6 00000000 66 4c 61 43 00 00 00 22 12 00 12 00 00 00 00 00 |fLaC..."........| 00000010 00 00 0a c4 42 f0 00 78 9f 30 00 00 00 00 00 00 …
authchir
  • 1,605
  • 14
  • 26
0
votes
2 answers

Running command line on multiple music files

I am using a CLI program called metaflac (http://flac.sourceforge.net/documentation_tools_metaflac.html) to remove padding from various FLAC music files on my computer. Using the following command in a batch file (with metaflac.exe in the same…
L22
  • 1
0
votes
2 answers

More elegant use of find for passing files grouped by directory?

This script has taken me too long (!!) to compile, but I finally have a reasonably nice script which does what I want: find "$@" -type d -print0 | while IFS= read -r -d $'\0' dir; do find "$dir" -iname '*.flac' -maxdepth 1 ! -exec bash -c ' …
0
votes
1 answer

PCM sample position [byte offset] in flac

I have a flac file and I have to do some analysis on the waveform looking for a particular sample. So I decompressed them in PCM data, but then I need to know, where is that particular sample in the flac file. So: I know the byte offset in the PCM…
fortea
  • 345
  • 4
  • 15
1 2 3
15
16