Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
TYPO3 4.3 Multimedia Cookbook

You're reading from   TYPO3 4.3 Multimedia Cookbook Over 50 great recipes for effectively managing multimedia content to create an organized web site in TYPO3

Arrow left icon
Product type Paperback
Published in Feb 2010
Publisher Packt
ISBN-13 9781847198488
Length 228 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (13) Chapters Close

TYPO3 4.3 Multimedia Cookbook
Credits
About the Author
About the Reviewers
1. Preface
1. Getting Started 2. Managing Digital Assets FREE CHAPTER 3. Operating with Metadata in Media Files 4. Rendering Images 5. Rendering Video and Audio 6. Connecting to External APIs 7. Creating Services 8. Automating Processes

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image