Media input filtering

Table of contents

The following settings allow us to filter what media files are to be processed by Tremendum Transcoder.

 

file_extensions

Type: Optional
Default: (empty)
Accepts: Comma separated list of extensions
Example: file_extensions = avi, wmv, mpg
Description: Limit the media files that we want to process from the source_folder to the ones that have a file extension of the command separated list provided. If no extensions are specified, all files are considered for processing regardless of their extensions. Extensions are case insensitive.

 

file_input_regex

Type: Optional
Default: (empty)
Accepts: Regular expression without modifiers
Example: file_input_regex = /web/.+\.(mp4|MP4)$
Description: Advanced filtering of input files to process using Perl Compatible Regular Expressions. Note that the match is performed against the full path of the file, not just the filename. Set the regular expression without delimiters or modifiers. All matches are case sensitive.

Examples:

Process files that are like: episode1.wmv, episode3.AVI etc.
/episode[1-5]\.(wmv|WMV|mpg|MPG|avi|AVI)$

Process files that are under a subfolder called "web". ie. foo/web/video.mp4
/web/.+\.(mp4|MP4)$

For a detailed explanation or Perl Compatible Regular Expressions visit:
http://www.php.net/manual/en/reference.pcre.pattern.syntax.php

You can test your regular expressions with a program like The Regex Coach:
http://weitz.de/regex-coach/

 

skip_file_regex

Type: Optional
Default: (empty)
Accepts: Regular expression without modifiers
Example: skip_file_regex = /bad/
Description: Advanced filtering of input files to exclude using Perl Compatible Regular Expressions. Note that the match is performed against the full path of the file, not just the filename. Set the regular expression without delimiters or modifiers. All matches are case sensitive. This test is performed after file_input_regex, and provides a powerful method to exclude files using regular expressions.

Example:

Exclude any files that contain "/bad/" in their path: /videos/bad/episode1.wmv
/bad/