user gets notified interatively or by email in case of a CIS error
[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://localhost:31500/';
22 //$config['cis_url'] = 'http://p2p-next-03.grid.pub.ro:31500/';
23
24 /*
25 |--------------------------------------------------------------------------
26 | Video Formats
27 |--------------------------------------------------------------------------
28 |
29 | Formats available for the ingested video. You need to provide an array
30 | of dictionaries as in the following example:
31
32 |       $config['formats'] = array(
33 |               array(
34 |                       'container'=>'ogg',
35 |                       'extension'=>'ogv',
36 |                       'audio_codec'=>'vorbis',
37 |                       'audio_bit_rate'=>'128k',
38 |                       'audio_sampling_rate'=>44100,
39 |                       'audio_channels'=>2,
40 |                       'video_codec'=>'theora',
41 |                       'video_bit_rate'=>'768k',
42 |                       'video_frame_rate'=>25,
43 |                       'video_height'=>600
44 |               )
45 |       );
46 |
47 | For a list of available containers and audio / video codecs see CIS
48 | documentation. The video_height parameter is a desired height resolution.
49 | It may be lower if the uploaded video has a lower resolution.
50 |
51 */
52 // 
53 $config['formats'] = array(
54         array(
55                 'container'=>'ogg',
56                 'extension'=>'ogv',
57                 'audio_codec'=>'vorbis',
58                 'audio_bit_rate'=>'128k',
59                 'audio_sampling_rate'=>44100,
60                 'audio_channels'=>2,
61                 'video_codec'=>'theora',
62                 'video_bit_rate'=>'768k',
63                 'video_frame_rate'=>25,
64                 'video_height'=>600
65         ),
66         array(
67                 'container'=>'ogg',
68                 'extension'=>'ogv',
69                 'audio_codec'=>'vorbis',
70                 'audio_bit_rate'=>'192k',
71                 'audio_sampling_rate'=>44100,
72                 'audio_channels'=>2,
73                 'video_codec'=>'theora',
74                 'video_bit_rate'=>'1536k',
75                 'video_frame_rate'=>25,
76                 'video_height'=>1080
77         )
78 );
79
80 /*
81 |--------------------------------------------------------------------------
82 | Thumnail images count
83 |--------------------------------------------------------------------------
84 |
85 | Number of thumbnail images for a video asset.
86 |
87 */
88 $config['thumbs_count'] = 4;
89
90 /*
91 |--------------------------------------------------------------------------
92 | Eliminate Duplicate Resolutions (DISABLED)
93 |--------------------------------------------------------------------------
94 |
95 | Eliminate consecutive formats with the same resolution after processing
96 | them.
97 |
98 | THIS FEATURE HAS BEEN DISABLED BECAUSE IS CAUSES THE CREATION OF A
99 | MALFORMED CONTENT INGESTION JSON.
100 |
101 */
102 $config['elim_dupl_res'] = TRUE;