Brion VIBBER has uploaded a new change for review. https://gerrit.wikimedia.org/r/227155
Change subject: Increase quality of Ogg Theora video transcodes ...................................................................... Increase quality of Ogg Theora video transcodes "Shifts" the current video bitrates on Ogg Theora video transcodes to twice the birate used for WebM/VP8 and H.264, hugely increasing picture quality in scenes with moderate to high amounts of motion. Adds a 240p transcode for Ogg Theora with the same bitrate as the old 360p transcode, so there's still a middle-bandwidth step above 160p15, that will often look better than the old 360p due to having less artifacting. Future adaptive streaming with ogv.js will be able to select these based on available bandwidth (and for WebM using native Media Source Extensions in Firefox/Chrome). Bug: T106995 Change-Id: Id6abbe93e1fa7f6c95231e6615874ddd44dade6e --- M WebVideoTranscode/WebVideoTranscode.php M i18n/en.json M i18n/qqq.json 3 files changed, 21 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TimedMediaHandler refs/changes/55/227155/1 diff --git a/WebVideoTranscode/WebVideoTranscode.php b/WebVideoTranscode/WebVideoTranscode.php index 856621e..2716b72 100644 --- a/WebVideoTranscode/WebVideoTranscode.php +++ b/WebVideoTranscode/WebVideoTranscode.php @@ -27,6 +27,7 @@ // Ogg Profiles const ENC_OGV_160P = '160p.ogv'; + const ENC_OGV_240P = '240p.ogv'; const ENC_OGV_360P = '360p.ogv'; const ENC_OGV_480P = '480p.ogv'; const ENC_OGV_720P = '720p.ogv'; @@ -77,10 +78,24 @@ 'videoCodec' => 'theora', 'type' => 'video/ogg; codecs="theora, vorbis"', ), + WebVideoTranscode::ENC_OGV_240P => + array( + 'maxSize' => '426x240', + 'videoBitrate' => '512', + 'audioQuality' => '0', + 'samplerate' => '44100', + 'channels' => '2', + 'noUpscaling' => 'true', + //'twopass' => 'true', + 'keyframeInterval' => '128', + 'bufDelay' => '256', + 'videoCodec' => 'theora', + 'type' => 'video/ogg; codecs="theora, vorbis"', + ), WebVideoTranscode::ENC_OGV_360P => array( 'maxSize' => '640x360', - 'videoBitrate' => '512', + 'videoBitrate' => '1024', 'audioQuality' => '1', 'samplerate' => '44100', 'channels' => '2', @@ -94,7 +109,7 @@ WebVideoTranscode::ENC_OGV_480P => array( 'maxSize' => '854x480', - 'videoBitrate' => '1024', + 'videoBitrate' => '2048', 'audioQuality' => '2', 'samplerate' => '44100', 'channels' => '2', diff --git a/i18n/en.json b/i18n/en.json index 9ca0993..382dfce 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -60,6 +60,8 @@ "timedmedia-source-audio-file-desc": "Original $1 file ($2)", "timedmedia-derivative-160p.ogv": "Ogg 160P", "timedmedia-derivative-desc-160p.ogv": "Low bandwidth Ogg video (160P)", + "timedmedia-derivative-240p.ogv": "Ogg 240P", + "timedmedia-derivative-desc-240p.ogv": "Web streamable Ogg video (240P)", "timedmedia-derivative-360p.ogv": "Ogg 360P", "timedmedia-derivative-desc-360p.ogv": "Web streamable Ogg video (360P)", "timedmedia-derivative-480p.ogv": "Ogg 480P", diff --git a/i18n/qqq.json b/i18n/qqq.json index 40034b5..ac38305 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -76,6 +76,8 @@ "timedmedia-source-audio-file-desc": "Source file description. Parameters:\n* $1 - file type; any one of the following messages:\n** {{msg-mw|Timedmedia-ogg}}\n** {{msg-mw|Timedmedia-webm}}\n** {{msg-mw|Timedmedia-mp4}}\n** {{msg-mw|Timedmedia-flac}}\n** {{msg-mw|Timedmedia-wav}}\n* $2 - human readable bitrate\nSee also:\n* {{msg-mw|Timedmedia-source-file-desc}} - for video file", "timedmedia-derivative-160p.ogv": "{{optional}} A type of media format encoding", "timedmedia-derivative-desc-160p.ogv": "{{optional}} A type of media format encoding", + "timedmedia-derivative-240p.ogv": "{{optional}} A type of media format encoding", + "timedmedia-derivative-desc-240p.ogv": "{{optional}} A type of media format encoding", "timedmedia-derivative-360p.ogv": "{{optional}} A type of media format encoding", "timedmedia-derivative-desc-360p.ogv": "{{optional}} A type of media format encoding", "timedmedia-derivative-480p.ogv": "{{optional}} A type of media format encoding", -- To view, visit https://gerrit.wikimedia.org/r/227155 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id6abbe93e1fa7f6c95231e6615874ddd44dade6e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TimedMediaHandler Gerrit-Branch: master Gerrit-Owner: Brion VIBBER <br...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits