Questions tagged [riff]

RIFF(Resource Interchange File Format) is a generic file container format for storing data in tagged chunks. It is primarily used to store multimedia such as sound and video, though it may also be used to store any arbitrary data.

RIFF(Resource Interchange File Format) is a generic file container format for storing data in tagged chunks. It is primarily used to store multimedia such as sound and video, though it may also be used to store any arbitrary data.

More information at http://en.wikipedia.org/wiki/Resource_Interchange_File_Format

51 questions
11
votes
4 answers

Failed to open file file.wav as a WAV due to: file does not start with RIFF id

I am getting this error when trying to open a RIFF file (which as I understand it is a type of WAV) in Python. Failed to open file file.wav as a WAV due to: file does not start with RIFF id When I inspect the file with various tools, it leads me…
Alex
  • 1,891
  • 3
  • 23
  • 39
7
votes
2 answers

How to extract frequency out of WAV sample data?

I'm developing an application in c to read simple PCM WAV files. My question is, how should I interpret the samples from the data chunk, so that I can extract the sample's frequency? Given a WAV example, how can the original data represent…
ikyr9999
  • 115
  • 1
  • 1
  • 6
4
votes
1 answer

What is a "LIST" chunk in a RIFF/Wav header?

I am writing a wav player and I am using this file format specification: http://soundfile.sapp.org/doc/WaveFormat/. As you can see, it expects: an initial "Riff Chunk" (which tells us whether this is a wav file or some other RIFF file…
Grumblesaurus
  • 3,021
  • 3
  • 31
  • 61
4
votes
1 answer

Reading writing WAV/RIFF Tags

I'm writing a simple audio recording utility which I want also to be able to tag the resulting files with meta data. It's pretty easy to find libraries to tag MP3 files with ID3 tags, but I'm more interested in lossless codecs like WAV and possibly…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
3
votes
1 answer

Incorrect wav header generated by sox

I was using sox to convert a 2 channels, 48000Hz, 24bits wav file (new.wav) to a mono wav file (post.wav). Here are the related commands and outputs: [Farmer@Ubuntu recording]$ soxi new.wav Input File : 'new.wav' Channels : 2 Sample Rate …
FarmerLi
  • 330
  • 1
  • 3
  • 12
3
votes
1 answer

RIFF WAV header format 2014 update?

I'm trying to decode and play WAV files in perl for further operations, I have found some references about format, and some interesting q+a What does a audio frame contain? error in reading a wav file with C++ Writing musical notes to a wav file I…
FarDarkMist
  • 298
  • 2
  • 10
2
votes
2 answers

How to pack OGG audio file to RIFF container?

I have an ogg audio file and some information which is saved as sequence of bytes. I need to pack this audio and information in a single container such as RIFF or something else. I'm searching solutions which can be written under .NET.
2
votes
1 answer

Converting Bytes read to seconds read

I am reading data from a Riff wav fmt file, I have an array of the data chunk DataBuffer of the wav file, how can I convert the number of bytes read of the data to the number of seconds read from the wav file. int size_buffer = (Subchunk2Size /…
Omar
  • 164
  • 10
2
votes
1 answer

How do I manually write a .wav file using PCM data?

I've been following tutorials like these (1, 2) to try to build a .wav file. However, I can't seem to get it to work because the wav file will open properly but be listed as 0 seconds and not play anything. Code (it's bad because it's merely a test…
Andrew
  • 21
  • 1
2
votes
0 answers

Creating a .wav file in JS - "Not a WAVE file - no RIFF header"

I'm trying to record audio from the browser's microphone, and save it as a .wav file (to be sent to an API) I've got the binary blocks of what I'm after, and I can convert it to a .wav file that plays in VLC (and also in the browser) let blob = new…
Ollie
  • 1,104
  • 7
  • 24
  • 45
2
votes
1 answer

Need help manipulating WAV (RIFF) Files at a byte level

I'm writing an an application in C# that will record audio files (*.wav) and automatically tag and name them. Wave files are RIFF files (like AVI) which can contain meta data chunks in addition to the waveform data chunks. So now I'm trying to…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
2
votes
1 answer

Issue with .Wav Speex header content

I have installed Speex Voice ACM Codec 1.0.1.1 codec and they seem to have DIFFERENT .wav header then one described in C# code in this NSpeex(C#) package. I can read .wav files created with “Speex Voice ACM Codec 1.0.1.1”, and decode them…
Mark_55
  • 155
  • 1
  • 9
2
votes
1 answer

Simple Java-library for writing wav file from binary

I'm supposed to implement an sinus-generator in java. As an input you give the frequency, amplitute and phase and as an output a .wav file is supposed to be generated. private static byte[] generateSineWavefreq(int frequencyOfSignal, int seconds)…
Weedjo
  • 335
  • 1
  • 6
  • 17
1
vote
0 answers

Source code available that shows how to load a .ani file?

Is there a .NET library or source code available somewhere that would allow me to get the internals of a .ani file? Most loaders just allow me to pass a cursor object to other interfaces but I need to query a cursor object about the icons, timings,…
Michael Kelley
  • 3,579
  • 4
  • 37
  • 41
1
vote
1 answer

How to read and write VP8L and ALPH chunks of Webp images

I am trying these classes written in pure java code which used for encode the animated WEBP from list of static images. It is based on Google's Webp container specification. I tried to modify the codes to fix some errors. Now Problem: If image…
CrackerKSR
  • 1,380
  • 1
  • 11
  • 29
1
2 3 4