From 08457de7631253a23ba57cd547fe056c00eebc21 Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Wed, 12 Apr 2017 02:35:39 -0300 Subject: [PATCH] Disable audios with Opus codec --- services/youtube/YoutubeStreamExtractor.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/services/youtube/YoutubeStreamExtractor.java b/services/youtube/YoutubeStreamExtractor.java index 543c1fe0e..443f741d5 100644 --- a/services/youtube/YoutubeStreamExtractor.java +++ b/services/youtube/YoutubeStreamExtractor.java @@ -147,9 +147,10 @@ public class YoutubeStreamExtractor extends StreamExtractor { ////////////////////////////////////////////////////////////////////////////////////////// // AUDIO ID ItagType Format Bitrate SamplingR Bandwidth /// //////////////////////////////////////////////////////////////////////////////////////// - new ItagItem(249, ItagType.AUDIO, MediaFormat.WEBMA, 50, 0, 0), - new ItagItem(250, ItagType.AUDIO, MediaFormat.WEBMA, 70, 0, 0), - new ItagItem(251, ItagType.AUDIO, MediaFormat.WEBMA, 160, 0, 0), + // Disable Opus codec as it's not well supported in older devices +// new ItagItem(249, ItagType.AUDIO, MediaFormat.WEBMA, 50, 0, 0), +// new ItagItem(250, ItagType.AUDIO, MediaFormat.WEBMA, 70, 0, 0), +// new ItagItem(251, ItagType.AUDIO, MediaFormat.WEBMA, 160, 0, 0), new ItagItem(171, ItagType.AUDIO, MediaFormat.WEBMA, 128, 0, 0), new ItagItem(172, ItagType.AUDIO, MediaFormat.WEBMA, 256, 0, 0), new ItagItem(140, ItagType.AUDIO, MediaFormat.M4A, 128, 0, 0),