Skip to content

Commit b6d3252

Browse files
authored
Merge pull request #199 from kapodamy/yt-webm-opus
use webm as format for opus audio streams
2 parents 0c6e2c8 + c1d39f6 commit b6d3252

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/MediaFormat.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public enum MediaFormat {
3838
MP3 (0x300, "MP3", "mp3", "audio/mpeg"),
3939
OPUS (0x400, "opus", "opus", "audio/opus"),
4040
OGG (0x500, "ogg", "ogg", "audio/ogg"),
41+
WEBMA_OPUS (0x200, "WebM Opus", "webm", "audio/webm"),
4142
// subtitles formats
4243
VTT (0x1000, "WebVTT", "vtt", "text/vtt"),
4344
TTML (0x2000, "Timed Text Markup Language", "ttml", "application/ttml+xml"),

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/ItagItem.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public class ItagItem {
3939
new ItagItem(139, AUDIO, M4A, 48),
4040
new ItagItem(140, AUDIO, M4A, 128),
4141
new ItagItem(141, AUDIO, M4A, 256),
42-
new ItagItem(249, AUDIO, OPUS, 50),
43-
new ItagItem(250, AUDIO, OPUS, 70),
44-
new ItagItem(251, AUDIO, OPUS, 160),
42+
new ItagItem(249, AUDIO, WEBMA_OPUS, 50),
43+
new ItagItem(250, AUDIO, WEBMA_OPUS, 70),
44+
new ItagItem(251, AUDIO, WEBMA_OPUS, 160),
4545

4646
/// VIDEO ONLY ////////////////////////////////////////////
4747
// ID Type Format Resolution FPS ///

0 commit comments

Comments
 (0)