detect
KeyView can provide information about a very large number of file formats. This sample program makes use of the file format detection API method.
The sample program takes a path to a file and prints the information reported by the API. For example, the following output is produced when you run the program with an mp3
file:
$ ./detect my_file Format: 270 Description: MPEG Audio Version: 3000 Category: 9 Category Name: Audio Encrypted: false
The Format
and Category
values are from the C++ enum defined in the Keyview_Enumerations.hpp
file. See Enumerations for more information.