Metadata of avi files - mp3

I used the od tool in Linux to look the metadata of mp3 files and avi files by using the command
od -c filename.avi
For mp3 files it is showing all the fields very properly even in sequence. But for avi files it is not showing the metadata fields.
Whether is there is any difference in the way the metadata fields are stored in avi and mp3 files?
Can somebody tell me some good way of extracting metadata fields of avi files.

GNU lib extractor might be good for what you're looking for:
http://www.gnu.org/software/libextractor/

Related

TIMIT Corpus. Cant play .WAV audiofile but can play it if I convert it into .mp3

I downloaded the files from the timit speech corpus found here: https://github.com/philipperemy/timit
When I try playing the .WAV files with groove music or windows media player I get an error saying the file cannot be played.
However after converting the file to mp3 using an online converter, the file suddenly works.
The .WAV files are only around 100-200KB in size.
Does anyone know what the reason for this problem might be?
Found the answer here: reading a WAV file from TIMIT database in python
Apparently it is not actually a .WAV file but a NIST file.

error regarding ffmpeg while using python to access a wav file

When I used python audio segment to open a .wav file and divide it into many .wav files i am getting this error
"C:\Python27\lib\site-packages\pydub\utils.py:165: RuntimeWarning: Couldn't find
ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work"
, RuntimeWarning)"
It seems like you don't have ffmpeg, which is listed in the dependencies section of the Pydub GitHub. However, it is only required if you wish to load or save non-WAV files.
This message is just a warning, if you're using Pydub solely for WAV files, it is safe to simply ignore it.

How to compress a folder to .ngz

I like to think of myself as reasonably computer and google literate (I'm OK ar searching the web). However I've recently had the need to compress into .ngz format and for the life of me I can't find a program that will allow me to compress into that format. I can open the files with 7zip, but it wont allow me to create an ngz archive. Any help appreciated.
It is likely a gzipped cpio file. Try cpio -i < whatever.ngz. It will automatically recognize the gzip compression and decompress it, as well as extract the archive. cpio -oz < list > archive.ngz will make a new archive given the list of files in list.

Amazon S3 Compressing Files?

A few years ago I uploaded some photos to S3. When I try to retrieve them today, the files seem to be corrupted, as I am unable to open them in the browser or with a photo editor. Looking at the file properties, it seems the files have been compressed, as there is a x-amz-meta-compression-algorithm key with the value zlib and a x-amz-meta-compression-original-size with a value of 53890. However, the size of the file on S3 is 53761. I did not compress the files before uploading them. How can I uncompress these files?
Did you download the file and determine its type using file command?
If it is indeed zlib compressed or if file command says data, try the accepted answer in this link: https://unix.stackexchange.com/questions/22834/how-to-uncompress-zlib-data-in-unix
printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" |cat - zlib.raw |gzip -dc > myfile

Blank acoustic fingerprint when using Chromaprint

I am trying to differentiate between multiple wav files using acoustic fingerprinting. I am using Chromaprint from AcoustID. I am using 32 bit windows. I have downloaded the file fpcalc.exe and am trying to run it on multiple wav files. The problem is, it is generating blank FINGERPRINT for those wav files.
I am running the command
fpcalc.exe -raw <FILENAME>.wav
The files are in wav format and the size of the files is 1 SEC. I am running the same command on bigger files, then the FINGERPRINT is working fine.
Any pointers?
The Chromaprint library only works for larger files, I think the files should have at least 10 seconds to fingerprint.
Maybe you should look for alternatives like Python and Ruby who have libraries to fingerprint small audio files (if you search a bit).
You can use the gem that I made for wav files:
https://rubygems.org/gems/audio-fingerprint