public function getPreviewVideoAction()
 {
     $asset = Asset::getById($this->_getParam("id"));
     $this->view->asset = $asset;
     $config = new Asset_Video_Thumbnail_Config();
     $config->setName("pimcore_video_preview_" . $asset->getId());
     $config->setAudioBitrate(128);
     $config->setVideoBitrate(700);
     $config->setItems(array(array("method" => "scaleByWidth", "arguments" => array("width" => 500))));
     $thumbnail = $asset->getThumbnail($config, array("mp4"));
     if ($thumbnail) {
         $this->view->asset = $asset;
         $this->view->thumbnail = $thumbnail;
         if ($thumbnail["status"] == "finished") {
             $this->render("get-preview-video-display");
         } else {
             $this->render("get-preview-video-error");
         }
     } else {
         $this->render("get-preview-video-error");
     }
 }