message: "Key "levelName" for array with keys "id, accessKey, secretKey, enabled, locked, edition, level, hasProvidePermission, copyright, hasStorage, hasLive, hasMobile, mobileCode, hasConsulting, startDate, endDate, siteName, siteUrl, licenseDomains, licenseIps, licenseName, licenseNumber, contact, phone, mobile, qq, email, locationId, mobileLocation, address, source, note, salesman, createdTime, createdIp, time, licenseDomainCount" does not exist in "TopxiaAdminBundle:CloudSetting:key-license-info.html.twig" at line 34" 编辑器中的图片上传: * fileSizeLimit * exts 资料库本地上传: * fileSizeLimit {chunk: xxxx, direct: xxx} * exts 资料库云端上传: * class-hreader after role-{{member.role}} uploader.on('uploadSuccess', function(file) { var $li = $('#' + file.id); $li.find('.file-status').html('已上传'); $li.find('.file-progress-bar').css('width', '0%'); $.post($uploader.data('finishedUrl'), {fileId:file.gid}, function() { console.log('finished'); var item = { id: file.gid, status: 'waiting', type: 'video', source: 'self', name: file.name, length: 98 }; self.trigger("change", item); }); }); {"convertor":"HLSEncryptedVideo","segtime":10,"videoQuality":"low","audioQuality":"low","hlsKey":"ev4pNnccfh8okbGu"} {"convertor":"HLSEncryptedVideo","segtime":10,"videoQuality":"low","audioQuality":"low"} { "sd":{"type":"sd","cmd":"{\"videoQuality\":\"low\",\"audioQuality\":\"low\",\"hlsKey\":\"ev4pNnccfh8okbGu\",\"hlsKeyUrl\":\"http:\\\/\\\/hlskey.edusoho.net\\\/placeholder\"}","key":"courselesson-11\/20150707100654-rbzlib43hiscgcoc\/8bd2abf10005b002_sd"}, "hd":{"type":"hd","cmd":"{\"videoQuality\":\"low\",\"audioQuality\":\"low\",\"hlsKey\":\"ev4pNnccfh8okbGu\",\"hlsKeyUrl\":\"http:\\\/\\\/hlskey.edusoho.net\\\/placeholder\"}","key":"courselesson-11\/20150707100654-rbzlib43hiscgcoc\/8bd2abf10005b002_md"}, "shd":{"type":"shd","cmd":"{\"videoQuality\":\"low\",\"audioQuality\":\"low\",\"hlsKey\":\"ev4pNnccfh8okbGu\",\"hlsKeyUrl\":\"http:\\\/\\\/hlskey.edusoho.net\\\/placeholder\"}","key":"courselesson-11\/20150707100654-rbzlib43hiscgcoc\/8bd2abf10005b002_hd"} {"requestId":"C0936728-7F4B-8238-0638-1A63470511AE","data":"{\"m3u8s\":[\"2015\\\/07-23\\\/9477AB53-7C05-0E9C-B4BC-F920A86F4FEE\\\/9477AB53-7C05-0E9C-B4BC-F920A86F4FEE_54\",\"2015\\\/07-23\\\/9477AB53-7C05-0E9C-B4BC-F920A86F4FEE\\\/9477AB53-7C05-0E9C-B4BC-F920A86F4FEE_55\",\"2015\\\/07-23\\\/9477AB53-7C05-0E9C-B4BC-F920A86F4FEE\\\/9477AB53-7C05-0E9C-B4BC-F920A86F4FEE_56\"],\"report\":{\"dispatchTime\":1437591838,\"downloadingCost\":0,\"downloadingFileSize\":11299151,\"metadata\":{\"duration\":\"00:01:08.65\",\"seconds\":68.65,\"start\":\"0.000000\",\"bitrate\":\"1316\",\"vcodec\":\"h264 (High) (avc1 \\\/ 0x31637661)\",\"vformat\":\"yuv420p\",\"resolution\":\"1280x720\",\"width\":\"1280\",\"height\":\"720\",\"vb\":\"1198\",\"fps\":\"20\",\"ab\":\"116\",\"play_time\":68.65,\"size\":11299151},\"convert\":{\"sd\":{\"convertingCost\":6,\"originFileSize\":11299151,\"convertedFileSize\":3756804,\"segmentNum\":7},\"md\":{\"convertingCost\":6,\"originFileSize\":11299151,\"convertedFileSize\":5014524,\"segmentNum\":7},\"hd\":{\"convertingCost\":8,\"originFileSize\":11299151,\"convertedFileSize\":10579700,\"segmentNum\":7}},\"uploadingCost\":0,\"finishedTime\":1437591858}}","globalId":"102"} server { listen 80; server_name file.escloud.com; root /var/www/escloud/FileServer/web; access_log /var/log/nginx/file.escloud.com.access.log; error_log /var/log/nginx/file.escloud.com.error.log; location / { index index_dev.php; try_files $uri @rewriteapp; } location @rewriteapp { rewrite ^(.*)$ /index.php/$1 last; } location ~ ^/(index|index_dev)\.php(/|$) { fastcgi_pass /var/run/php5-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_buffer_size 128k; fastcgi_buffers 8 128k; } } docker run \ -e CI_SERVER_URL=http://gitlab-ci.topxia.com \ -e REGISTRATION_TOKEN=replaceme \ -e HOME=/root \ -e GITLAB_SERVER_FQDN=gitlab.howzhi.net \ -v /root/.ssh/id_rsa:/root/.ssh/id_rsa:ro \ bobey/docker-gitlab-ci-runner-php5.4 转码:/Users/Wellming/Downloads/playlist.m3u8 ffmpeg -i video1.mp4 -b:a 32k -ar 44100 -r 25 -b:v 2000k -vcodec libx264 -c:a libvo_aacenc -s 640*360 -pix_fmt yuv420p -level 3.0 -f mp4 -v warning -partitions +parti4x4+partp8x8+partb8x8 -map_metadata 0:g -preset superfast -movflags faststart -qmax 51 -qmin 20 -trellis 1 -bufsize 1500k -y video1_360p.mp4 ffmpeg -i video1.mp4 -b:a 64k -ar 44100 -r 25 -b:v 2000k -vcodec libx264 -c:a libvo_aacenc -s 850*480 -pix_fmt yuv420p -level 3.0 -f mp4 -v warning -partitions +parti4x4+partp8x8+partb8x8 -map_metadata 0:g -preset superfast -movflags faststart -qmax 51 -qmin 20 -trellis 1 -bufsize 1500k -y video1_480p.mp4 ffmpeg -i video1.mp4 -b:a 64k -ar 44100 -r 25 -b:v 2000k -vcodec libx264 -c:a libvo_aacenc -s 1280*720 -pix_fmt yuv420p -level 3.0 -f mp4 -v warning -partitions +parti4x4+partp8x8+partb8x8 -map_metadata 0:g -preset superfast -movflags faststart -qmax 51 -qmin 20 -trellis 1 -bufsize 1500k -y video1_720p.mp4 切片: ffmpeg -analyzeduration 1000M -i video1_360p.mp4 -codec copy -map 0 -bsf:v h264_mp4toannexb -v warning -f segment -segment_list video1_360p.m3u8 -segment_list_flags +live -segment_time 10 video1_360p_seg_%d.ts ./ffmpeg -analyzeduration 1000M -i video1_480p.mp4 -codec copy -map 0 -bsf:v h264_mp4toannexb -v warning -f segment -segment_list video1_480p.m3u8 -segment_list_flags +live -segment_time 10 video1_480p_seg_%d.ts ./ffmpeg -analyzeduration 1000M -i video1_720p.mp4 -codec copy -map 0 -bsf:v h264_mp4toannexb -v warning -f segment -segment_list video1_720p.m3u8 -segment_list_flags +live -segment_time 10 video1_720p_seg_%d.ts 加密: $cmd = "openssl enc -e -aes-128-cbc -in " . $inputFile . " -out ". $outputFile . " -nosalt -iv ". $initializationVector . " -K " . $encryptionKey; #!/bin/bash keyFile=”video1_360p.key” openssl rand 16 > $encyptionKeyFile encryptionKey=`cat $keyFile | hexdump -e ’16/1 “%02x”‘` splitFilePrefix=”video1_360p_seg_” encryptedSplitFilePrefix=”enc/${splitFilePrefix}” numberOfTsFiles=`ls ${splitFilePrefix}*.ts | wc -l` for (( i=1; i<$numberOfTsFiles; i++ )) do initializationVector=`printf ‘%032x’ $i` openssl aes-128-cbc -e -in ${splitFilePrefix}$i.ts -out ${encryptedSplitFilePrefix}$i.ts -nosalt -iv $initializationVector -K $encryptionKey done