浏览代码

No transcoding for mime types supported within browsers

Bob Mottram 8 年前
父节点
当前提交
d2427458e1
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11
    0
      src/freedombone-app-mediagoblin

+ 11
- 0
src/freedombone-app-mediagoblin 查看文件

@@ -277,6 +277,8 @@ function install_mediagoblin {
277 277
             gir1.2-gstreamer-1.0 \
278 278
             gir1.2-gst-plugins-base-1.0 \
279 279
             gstreamer1.0-plugins-good \
280
+            gstreamer1.0-plugins-bad \
281
+            gstreamer1.0-plugins-ugly \
280 282
             gstreamer1.0-libav \
281 283
             python-gst-1.0
282 284
     cd $MEDIAGOBLIN_BASE_DIR/mediagoblin
@@ -457,6 +459,15 @@ function install_mediagoblin {
457 459
         sed -i 's|email_smtp_host.*|email_smtp_host = localhost|g' $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini
458 460
     fi
459 461
 
462
+    if ! grep '[[[skip_transcode]]]' $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini; then
463
+        echo '[[[skip_transcode]]]' >> $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini
464
+        echo 'mime_types = video/webm, video/ogg, video/mp4, audio/ogg, application/ogg, application/x-annodex' >> $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini
465
+        echo 'container_formats = Matroska, Ogg, ISO MP4/M4A' >> $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini
466
+        echo 'video_codecs = VP8 video, VP9 video, Theora, H.264, H.264 / AVC, MPEG-4 video' >> $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini
467
+        echo 'audio_codecs = Vorbis, MPEG-4 AAC' >> $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini
468
+        echo 'dimensions_match = false' >> $MEDIAGOBLIN_BASE_DIR/mediagoblin/mediagoblin_local.ini
469
+    fi
470
+
460 471
     systemctl enable mediagoblin
461 472
     systemctl daemon-reload
462 473
     systemctl start mediagoblin