NAME

scan_anime - retrive video/audio info from anime files


SYNOPSIS

scan_anime-r ] [ -v ] [ -u ] [ -o output file ] [ -c cache file ] [ -f format string ] [ path... ]


DESCRIPTION

scan_anime scans files and directories and retrives video and audio information using MPlayer (http://mplayerhq.hu/) movie player. Additionally crc sums are retrived from sfv files. Output format for extracted information can be specified by giving format string argument. The data can be stored in and read from cache file(s), which can greatly speed up scanning process, for periodical incremental updates.

For example, to scan *.ogm and *.avi files in current directory, you might say

        scan_anime *.ogm *.avi

To scan recursively Anime1/ directory, using cache files cache*.csv and to update cache3.csv file, you'd use

        scan_anime -c cache3.csv -c "cache*.csv" -u -r Anime1/


OPTIONS

-r, --recursive
Recursive: scan all files under each directory, recursively.

-v, --verbose
Verbose: turn on verbose output. The default output is non verbose.

-o, --output-file output file
Output: output extracted info to the specified file.

-c, --cache-file cache file
Cache: read info from cache file. cache file file can contain wildcards, also multiple options -c can be specified.

-u, --update
Update: update the first specified cache file.

-f, --format-string format string
Format: print format string on the standard output, interpreting `\' escapes and `%' directives. The escapes and directives are:
        \n
                Newline.
        \r
                Carriage return.
        \t
                Horizontal tab.
        \\
                A literal backslash (`\').
        %path
                File's name.
        %filename
                File's name with any leading directories removed (only the last element).
        %dirname
                Leading directories of file's name (all but the last element).
        %size
                File's size in bytes.
        %mtime
                File's modification time.
        %crc
                SFV (simple file verification) CRC sum.
        %width
                Width of the video in pixels.
        %height
                Height of the video in pixels.
        %vcodec
                Video codec.
        %length
                Video length.
        %fps
                Video framerate (frames per second).
        %vbitrate
                Video bitrate in kBits/second (1kBit = 1000 Bits.).
        %acodec
                Audio codec.
        %acodecraw
                Audio codec ID.
        %abitrate
                Audio bitrate in kBits/second.
        %afrequency
                Audio frequency in Hz.


ENVIRONMENT

PATH

        Used to find mplayer executable.


AUTHOR

Aleksey


SEE ALSO

perl(1), Video::Info(3)


BUGS

You are welcome to fix all bugs in this script. ;)