diff --git a/app/config/renditions.php b/app/config/renditions.php new file mode 100644 index 0000000000..de6d09c930 --- /dev/null +++ b/app/config/renditions.php @@ -0,0 +1,29 @@ + 1, + 'name' => '360p', + 'videoBitrate' => 890, //video bitrate in Kbps + 'audioBitrate' => 64, //audio bitrate in Kbps + 'width' => 640, //width resolution in px + 'height' => 360, //height resolution in px + ], + [ + 'id' => 2, + 'name' => '576p', + 'videoBitrate' => 2538, + 'audioBitrate' => 128, + 'width' => 1024, + 'height' => 576, + ], + [ + 'id' => 3, + 'name' => '720p', + 'videoBitrate' => 3551, + 'audioBitrate' => 128, + 'width' => 1280, + 'height' => 720, + ], + +]; diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index f3081445df..9af792d503 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -149,7 +149,7 @@ App::post('/v1/projects') 'orders' => $index['orders'], ]); } - + var_dump($key); $dbForProject->createCollection($key, $attributes, $indexes); }