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
0
votes
0 answers

Understanding the meaning and implication of Blending and disposal method stated in Google's WebP Container Specification

I am working with aniamted webp. I am referring google's documentation called WebP Container Specification The doc says the following things about blending and disposal methods Blending Method: Blending method (B): 1 bit Indicates how transparent…
CrackerKSR
  • 1,380
  • 1
  • 11
  • 29
0
votes
0 answers

How to encode an INFO+LIST subchunk according to RIFF and defacto standards?

I'm trying to correctly encode a LIST chunk of the INFO type such that it follows standards. The original 1.0 IBM/Microsoft spec for RIFF (https://www.aelius.com/njh/wavemetatools/doc/riffmci.pdf) is confusing me. The spec says: The chunks listed…
Erik Hermansen
  • 2,200
  • 3
  • 21
  • 41
0
votes
0 answers

What is the 8 byte header/tag before the main ID3v2 header in .WAV files?

I am trying to implement some of the ID3v2.4 specification, e.g. some documentation from here. When editing the tags for some .WAV files via the software Audacity or MP3tag, inspecting the byte stream afterwards I can see there is actually a small…
Usernamed
  • 41
  • 5
0
votes
1 answer

write COMMENT tag to WAV and M4A

I have an audio app and I need to read and write the COMMENT tag of WAV and M4A files. This is all I need. I had struggled for hours without success. The closest I arrived is using com.github.goxr3plus:jaudiotagger:2.2.7. I had success with WAV…
Luis A. Florit
  • 2,169
  • 1
  • 33
  • 58
0
votes
1 answer

Parsing a Riff wav header

I have a program that should read the metadata of all wav files. I used the following parsed struct and fread functions. The issue this code runs into is that with some .wav RIFF header fmt files the meta data read is incorrect even after paring the…
Omar
  • 164
  • 10
0
votes
1 answer

Compress AVI video stream, while blindly copying another stream

I have a bunch of video files with a slightly weird format. There's a regular video stream, and there's also a text stream, which is being used to store precise time stamps of the video frames (from a GPS-synchronized hardware clock). Here's an…
rescdsk
  • 8,739
  • 4
  • 36
  • 32
0
votes
1 answer

How to remove the riff headers from wav file in Swift?

I want to just have the data chunk of the .wav file and exclude all other chunks i.e the riff headers. let voiceData = try? Data(contentsOf: soundUrl).advanced(by: 44) I did try this but for some reason, there is still some baggage left…
0
votes
4 answers

distorted output during processing .wav file

I want to process a .wav file for example reducing amplitude; when i use following code the output becomes distorted and that's not pleasant. #include #include #include using namespace std; int main() { char*…
Filthy Man
  • 71
  • 1
  • 11
0
votes
0 answers

How does twos complement work for bytes in the data chunk of the AIFF format?

I know the data chunk is supposed to hold the audio samples. It says in the spec that they are in twos complement but i cant work out how that works in the context. Does anyone know how this works for AIFF files?
WalleyM
  • 172
  • 7
0
votes
1 answer

How to write RIFF chunk header when store image from url?

I just tried to download webp image from url, but I found something different when I try to process the stored image. If I download the image from the browser, it can be decoded using x/image/webp package, but if I store the image using http.Get()…
0
votes
1 answer

Extract WAV file from Bytes Array

After sending a REST request the server brings back a really long string like this: RIFF\nt WAVEfmt ...(a lot of extra characters) This is supposed to be a .wav file. From there I get a byte array using Java: byte[] audio =…
Mikel SS
  • 13
  • 2
0
votes
1 answer

RIFF ICMT tag size doesn't seem to match data

I am trying to read the data stored in an ICMT tag on a WAV file generated by a noise monitoring device. The RIFF parsing code all seems to work fine, except for the fact that the ICMT tag seems to have data after the declared size. As luck would…
Whelkaholism
  • 1,551
  • 3
  • 18
  • 28
0
votes
1 answer

I have a file that is encoded in RIFF. How can I send this file through an ajax post response?

I am trying to preserve the RIFF encoding of the file while sending it back as a response, as shown below. router.post('/someroute', function(req,res,next){ var riff1= fs.readFileSync(somefilepath); res.send(riff1); } When I…
agita
  • 29
  • 5
0
votes
1 answer

How to determine samples count in ADPCM wav file?

I see no such field in canonical WAV structure, but maybe it possible to use existing fields for that? I know that we can calc samples count for PCM stream easy (raw_sound_data_size / (bits_pers_sample / 8)), but what to do with ADPCM?
Kosmo零
  • 4,001
  • 9
  • 45
  • 88
0
votes
1 answer

Generate WAV and add a second (stereo) channel

I found the following incedibly code on stackoverflow. Please can anybody help me adding a second channel (stereo) There will be nchannels = 2 The file size must (somehow) be increased and the 2. array (i.e. samples2) must be added. When I try I…
Umbrella Brothers
  • 327
  • 1
  • 5
  • 15