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
1
vote
2 answers

How to ignore corrupted files?

How to loop through a directory in Python and open wave files that are good whilst ignoring bad (corrupted) ones? I want to open various wave files from a directory. However, some of these files may be corrupted, some may not be to specification. In…
Boris Reif
  • 123
  • 1
  • 10
1
vote
0 answers

Confused with meaning of reinterpret_cast

Clarification is needed with reinterpret_cast. I am building .wav file where various data is inputted as 2 or 4 bytes in hexadecimal bits (if I am correct). Then, I came across a simple function like this: void writeToFile(std::ofstream &file, int…
Sakesfar
  • 21
  • 4
1
vote
0 answers

How to read alpha A.L.P.H. chunks for webp having transparency?

Encoding webp image with transparency cause the no vp8 error. I came to know that if there is no transparent area then there is no error at all and Also the author of the encoder have added the Alpha channle as TODO. But using the encoder in its…
UHS
  • 584
  • 4
  • 8
1
vote
1 answer

Assigning an array with std::fgetc() return

I am trying to store the first 4 chars of a .awv file using the std::fgetc function This is what I have FILE* WAVF = fopen(FName, "rb"); std::vector ID; ID[4]; for (int i = 0; i < 4; i++) { ID[i] = fgetc(WAVF); } I keep getting…
Omar
  • 164
  • 10
1
vote
1 answer

How to read correct Riff Wav fmt Header data correctly for all wav files

I have a program that reads header information like the number of channels etc, from .wav files that use RIFF wav fmt. I want to make it compatible with any .wav extension file that follows the riff wav fmt. This is the code I have so…
Omar
  • 164
  • 10
1
vote
1 answer

PCM / WAVE file sample to actual sound/frequency

i started to get into digital audio and the wave file format / pcm i think i understood it. But i did not understood the part how you translate from the values in the file to "actual" audio get a frequency. And could not find it on the internet. So…
user7476082
1
vote
0 answers

Processing image files in pure Javascript of type "RIFF (little-endian) data"

I'm a server side dev learning the ropes of pure JS these days. One practical example I'm working through is image processing. This question is about exploring how to support loading (in pure JS) image files that are of the type RIFF…
Hassan Baig
  • 15,055
  • 27
  • 102
  • 205
1
vote
0 answers

Java: parsing of RIFF containers without resorting to Object and typecasting

I'm writing some code to parse RIFF containers in Java (for educational purposes, I know that there are tons of libraries for Java that load .wav or other RIFF files). My design aim is to stick to format as close as possible. The basic RIFF format…
vitdubi
  • 11
  • 3
1
vote
0 answers

Are there any modern alternatives to the RIFF file format standard?

I like the RIFF standards but I don't like that file length is limited to 4GB. Is there a good modern file format standard for storing binary data that is like RIFF? I see that for long WAV files Adobe programs will essentially just ignore the file…
CorlinP
  • 169
  • 1
  • 2
  • 15
1
vote
2 answers

Get frames and samples of a wav file

First, I'm trying to do this without any proprietary libraries so that it is more portable, and I get a better/hands-dirty understanding of what's going on here. I'm ok writing my own classes and libraries to handle repetitive functionality…
user3064209
  • 147
  • 4
  • 14
1
vote
1 answer

error in reading a wav file with C++

I have a .wav file and I want to read it in C++. I have done some research on the RIFF file header and wrote a code to load it. #include #include #include #include #include using namespace…
user3027774
  • 43
  • 1
  • 4
1
vote
0 answers

libsndfile: Read wav skipping JUNK chunk

I had been using libsndfile library. But only recently, I found some of my wav files have this extra JUNK section inside and libsndfile is not categorizing it as JUNK but simply reading this as data. The structure of my wav file is shown here: . I…
user1082170
  • 323
  • 2
  • 13
1
vote
1 answer

How to decode WAV/RIFF audio data?

I'm trying to create a program to generate random audio which can be written to a WAV/RIFF file. I'm able to understand the header easily thanks to this, and I've found how to write byte data to a WAV/RIFF file here but what I can't find is…
user3064209
  • 147
  • 4
  • 14
1
vote
1 answer

RIFF Wave File Format: FourCC values and HEX conversion

Context: I am parsing Riff/Wave files. There is documentation identifying the FourCC values within Riff chunks. Here are the more important chunks for wave files. FourCC ID for two .wav specific chunks: Chunk ID "fmt " (0x666D7420) Chunk ID …
Chadd
  • 636
  • 7
  • 30
1
vote
2 answers

Fail to generate correct wav file from raw stream

I captured raw audio data stream together with its WAVEFORMATEXTENSIBLE struct. WAVEFORMATEXTENSIBLE is shown in the figure below: Following the standard of wav file, I tried to write the raw bits into a wav file. What I do is: write…
Min Lin
  • 3,177
  • 2
  • 19
  • 32