Name

media_scan — Scan the specified media file for attributes

Synopsis

use Wacs;
use Wacs::WacsId;
scalar media_scan(pathname); 
scalar pathname;
 

Summary

The media_scan function initiates a scan of the specified file path for it's detailed attributes. This should include height and width, codec, etc for all types of media, and additional information where appropriate like duration for video files. The initial implementation uses the perl Image::ExifTool library for this purpose but that may change in time. On completion of the scan, the filename is returned by the function - this can then be used as the parameter to media_get_attr to select the specific media object and attribute to query.

Availability

media_scan is available in Wacs 0.9.2 and later.