upload facility now works in single CIS mode; some simple command-line video moderati...
[living-lab-site.git] / application / config / content_ingestion.php
1 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
3 /**
4  * Content ingestion configuration; CIS interoperability configuration. 
5  * 
6  * Content ingestion is provided by a CIS (Content Ingestion Server).
7  * Communication is provided through web services directly or in a transparent
8  * manner through a CIS-LB (CIS - Load Balancer).
9  */
10
11 /*
12 |--------------------------------------------------------------------------
13 | CIS / CIS-LB URL
14 |--------------------------------------------------------------------------
15 |
16 | CIS web service URL (ended with '/'). For example:
17
18 |       http://cis.org:31500/
19 |
20 */
21 $config['cis_url'] = 'http://p2p-next-03.grid.pub.ro:31500/';
22
23 /*
24 |--------------------------------------------------------------------------
25 | Video Formats
26 |--------------------------------------------------------------------------
27 |
28 | Formats available for the ingested video. You need to provide an array
29 | of dictionaries as in the following example:
30
31 |       $config['formats'] = array(
32 |               array(
33 |                       'container'=>'ogg',
34 |                       'extension'=>'ogv',
35 |                       'audio_codec'=>'vorbis',
36 |                       'audio_bit_rate'=>'128k',
37 |                       'audio_sampling_rate'=>44100,
38 |                       'audio_channels'=>2,
39 |                       'video_codec'=>'theora',
40 |                       'video_bit_rate'=>'768k',
41 |                       'video_frame_rate'=>25,
42 |                       'video_height'=>600
43 |               )
44 |       );
45 |
46 | For a list of available containers and audio / video codecs see CIS
47 | documentation. The video_height parameter is a desired height resolution.
48 | It may be lower if the uploaded video has a lower resolution.
49 |
50 */
51 // 
52 $config['formats'] = array(
53         array(
54                 'container'=>'ogg',
55                 'extension'=>'ogv',
56                 'audio_codec'=>'vorbis',
57                 'audio_bit_rate'=>'128k',
58                 'audio_sampling_rate'=>44100,
59                 'audio_channels'=>2,
60                 'video_codec'=>'theora',
61                 'video_bit_rate'=>'768k',
62                 'video_frame_rate'=>25,
63                 'video_height'=>600
64         ),
65         array(
66                 'container'=>'ogg',
67                 'extension'=>'ogv',
68                 'audio_codec'=>'vorbis',
69                 'audio_bit_rate'=>'192k',
70                 'audio_sampling_rate'=>44100,
71                 'audio_channels'=>2,
72                 'video_codec'=>'theora',
73                 'video_bit_rate'=>'1536k',
74                 'video_frame_rate'=>25,
75                 'video_height'=>1080
76         )
77 );
78
79 /*
80 |--------------------------------------------------------------------------
81 | Thumnail images count
82 |--------------------------------------------------------------------------
83 |
84 | Number of thumbnail images for a video asset.
85 |
86 */
87 $config['thumbs_count'] = 4;
88
89 /*
90 |--------------------------------------------------------------------------
91 | Eliminate Duplicate Resolutions
92 |--------------------------------------------------------------------------
93 |
94 | Eliminate consecutive formats with the same resolution after processing
95 | them.
96 |
97 */
98 $config['elim_dupl_res'] = TRUE;