#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <cmml.h>
Defines | |
#define | BUFSIZE 100000 |
Functions | |
void | PrintUsage (char *prog) |
int | read_stream (CMML *cmml, const CMML_Stream *stream, void *user_data) |
int | read_head (CMML *cmml, const CMML_Head *head, void *user_data) |
int | read_clip (CMML *cmml, const CMML_Clip *clip, void *user_data) |
int | main (int argc, char *argv[]) |
Variables | |
FILE * | outfile |
double | secs |
Usage: cmml-timeshift [options] filename Apply a timeshift to all the clip tags. Possible options: -s offset, --sec offset Specify the offset in seconds to add to clip tags -o filename, --output filename Specify the output filename. The file is written to standard output by default. -h, --help Display this help information -v, --version Display version information
|
the size of the print buffer |
|
PrintUsage: prints out help on how to use this program
|
|
read_stream: the callback for a stream element
|
|
read_head: the callback for a head element
|
|
read_clip: the callback for a clip element
|
|
main function of cmml-timeshift, which opens the CMML file, seeks to any given offsets, registers the callbacks, and then steps through the file in chunks of BUFSIZE size, during which the callbacks get activated as the relevant elements get parsed. |
|
outfile: defines FILE pointer to print output to |
|
secs: number of seconds to offset the clip start/end times |