Merge pull request #2872 from GodTamIt/vp8-vp9

Send vp8 and vp9 over vpx as transcode profiles
This commit is contained in:
dkanada 2021-09-05 00:30:26 +09:00 committed by GitHub
commit f5ea7bc830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -47,6 +47,7 @@
- [Stephane Senart](https://github.com/ssenart) - [Stephane Senart](https://github.com/ssenart)
- [Ömer Erdinç Yağmurlu](https://github.com/omeryagmurlu) - [Ömer Erdinç Yağmurlu](https://github.com/omeryagmurlu)
- [Keegan Dahm](https://github.com/keegandahm) - [Keegan Dahm](https://github.com/keegandahm)
- [GodTamIt](https://github.com/GodTamIt)
# Emby Contributors # Emby Contributors

View file

@ -667,12 +667,13 @@ import browser from './browser';
} }
} }
if (canPlayVp8) { if (webmAudioCodecs.length && webmVideoCodecs.length) {
profile.TranscodingProfiles.push({ profile.TranscodingProfiles.push({
Container: 'webm', Container: 'webm',
Type: 'Video', Type: 'Video',
AudioCodec: 'vorbis', AudioCodec: webmAudioCodecs.join(','),
VideoCodec: 'vpx', // TODO: Remove workaround when servers migrate away from 'vpx' for transcoding profiles.
VideoCodec: (canPlayVp8 ? webmVideoCodecs.concat('vpx') : webmVideoCodecs).join(','),
Context: 'Streaming', Context: 'Streaming',
Protocol: 'http', Protocol: 'http',
// If audio transcoding is needed, limit channels to number of physical audio channels // If audio transcoding is needed, limit channels to number of physical audio channels