Book Image

TYPO3 4.3 Multimedia Cookbook

Book Image

TYPO3 4.3 Multimedia Cookbook

Overview of this book

TYPO3 is one of the world's leading open source content management systems, written in PHP, which can be used to create and customize your web site. Along with text content, you can display high quality images, audio, and video to your site's visitors by using TYPO3. It is essential to manage various types of multimedia files in content management systems for both editors and the users on the frontend of the site.The book gives you a step-by-step process for organizing an effective multimedia system. It also gives solutions to commonly encountered problems, and offers a variety of tools for dealing with multimedia content. The author's experience in large-scale systems enables him to share his effective solutions to these problems.If you choose to work through all the recipes from the beginning, you will start by setting up a basic web site set up, aimed at future expansion and scalability. Next, you will cover the basics of digital asset management—a major topic important in all enterprises. You can organize user groups because next you will be creating accounts for users and assigning permissions. Then you will jump into metadata—text information describing the multimedia objects—and learn how it can be manipulated in TYPO3. You will embed multimedia on your site when you have read the various methods for embedding mentioned in this book. Before you finish the book you will learn about some advanced topics, such as external API integrations and process automation.
Table of Contents (13 chapters)
TYPO3 4.3 Multimedia Cookbook
Credits
About the Author
About the Reviewers
Preface

Converting a video to FLV upon import


One of the most popular formats for videos online is FLV. FLV stands for Flash Video, and integrates easily with the Adobe Flash Player and other SWF players, which has led to its success.

At this time, most video capture is done using other formats—predominantly AVI, but also MPG and MOV. In this tutorial, we will create an extension that will convert uploaded videos into FLV format.

Getting ready

We assume that DAM is installed for this extension.

The first step in approaching this kind of problem is to find a suitable place to hook into. The best place for this task is in class.tx_dam_tce_extfilefunc.php:

foreach($TYPO3_CONF_VARS['EXTCONF']['dam']['fileTriggerClasses']
as $classKey => $classRef) {
if (is_object($obj = &t3lib_div::getUserObj($classRef))) {
if (method_exists($obj, 'filePostTrigger')) {
$obj->filePostTrigger($action,
$this->log['cmd'][$action][$id]);
}
}
}

We will now create a class to utilize this hook.

How to do it...

  1. 1. Install...