Is compress available from homebrew? - compression

It is hard to search for "compress". Could anybody let me know where compress is availabe on homebrew? Thanks.
https://www.computerhope.com/unix/ucompres.htm

Related

Compressing LMDB files

I am wondering if anyone has tried using compression techniques for their LMDB files? Typically, lmdb files typically do not use any compression. I am wondering if anyone has successfully stored data in an lmdb using jpeg compression on lmdb and then used it for caffe. I need this because I am working on a developer board with very limited storage space. If so, can you please provide steps/code to do this?
thanks
Caffe also supports HDF5 which supports compression. If your dataset is smth like mnist - it may be a good choice.

Working on zip archives with c++

has anyone of you got some experience with working on zip-archives? I have a programm which searches on a filesystem and searches for keywords in XML files. But the XML files are stored in zip64 archives. So every time I want to search something I have to unzip the files. Since I'm working with Qt the first thing I tried was Quazip but just like libarchive it doesn't seem to support zip64. Than I found libraries like the poco-library or zipstream, but having trouble getting it going.
Now I wanted to ask if anyone can tell how much longer it might take to perform a search on zipped files. Because the search already takes up to 15min. And if it is a lot slower it might not be worth the effort( e.g. if it takes more than 20minutes afterwards I wouldn't use it).
Is it possible to make a prognosis about the additional time to work with the zipped files?
Thanks in advance for any help!
InfoZip supports zip64. However, anyway to search in compressed XML you should decompress them and this takes most of your time.

How to tell if an exectuable (in any format) is compressed

My question is, are there any tools out there that can detect what compression tool was used to compress an exeutable?
It doesn't matter what executable format the executableis in.(http://en.wikipedia.org/wiki/Category:Executable_file_formats)
I'm looking for a tool that can recognize what compression tools were used to compress the executable.
For example: say an executable was compressed with UPX: The Ultimate Packer For executables but I had no idea this compressor was used. Can I somehow determine that compressor was used to compress it through the use of a tool?
If you have any recommendations or can point me in the right direction it would be greatly appreciated! I would like to find a tool that can detect various compressors.
A start is: try to compress it with something like gzip. Something already compressed will not compress much, or at all, or perhaps expand a smidge. If the executable compresses a fair bit, then it was not compressed in the first place. A quick check shows that most of my executables compress by a factor of almost two.
Then at least you'll know whether or not it's compressed.
From there, you can try compressing executables using the candidates, and look for common sequences in the prefix executable, which is the decompressor.
On Unix, use the file command. It tries to determine what kind of data is in a file by matching it against various signatures. It's not specific to executables or compression, those are just some of the kinds of files it can recognize.

Algorithm to extract audio from an flv video(or any other video). How to go about it?

i currently want to write a program which can extract audio from an FLV video using either python or c++. I have no idea how to go about it? Is there some kind of a tutorial or anything that would help me? Please help me out here learn this.
Thanks!
Actually you can use MPlayer to do this, e.g.
mplayer video.flv -vo null -ao pcm:file=file.wav
So, you can use this in combination with calls from python (or C). Another way is to use FFmpeg which MPlayer uses internally.

How to extract audio/video file duration?

I need to find the duration of numerous formats of audio and video files, in milliseconds. I've been searching around for a while, but I can't find anything that will let me do this. I'm using C/++ in Linux. Thanks in advance.
There is a MediaInfo SourceFourge project that shows this info. You can look in its code for that.