1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Send vp8 and vp9 over vpx as transcode profiles

This commit is contained in:
Chris Tam 2021-08-20 17:48:14 -04:00
parent 68fe8eb24b
commit f624326eb4
2 changed files with 28 additions and 1 deletions

View file

@ -668,10 +668,11 @@ import browser from './browser';
}
if (canPlayVp8) {
// TODO: Remove vpx entry once servers are migrated
profile.TranscodingProfiles.push({
Container: 'webm',
Type: 'Video',
AudioCodec: 'vorbis',
AudioCodec: webmAudioCodecs.includes('opus') ? 'opus' : 'vorbis',
VideoCodec: 'vpx',
Context: 'Streaming',
Protocol: 'http',
@ -679,6 +680,31 @@ import browser from './browser';
// Trying to transcode to 5 channels when there are only 2 speakers generally does not sound good
MaxAudioChannels: physicalAudioChannels.toString()
});
profile.TranscodingProfiles.push({
Container: 'webm',
Type: 'Video',
AudioCodec: webmAudioCodecs.includes('opus') ? 'opus' : 'vorbis',
VideoCodec: 'vp8',
Context: 'Streaming',
Protocol: 'http',
// If audio transcoding is needed, limit channels to number of physical audio channels
// Trying to transcode to 5 channels when there are only 2 speakers generally does not sound good
MaxAudioChannels: physicalAudioChannels.toString()
});
}
if (canPlayVp9) {
profile.TranscodingProfiles.push({
Container: 'webm',
Type: 'Video',
AudioCodec: webmAudioCodecs.includes('opus') ? 'opus' : 'vorbis',
VideoCodec: 'vp9',
Context: 'Streaming',
Protocol: 'http',
// If audio transcoding is needed, limit channels to number of physical audio channels
// Trying to transcode to 5 channels when there are only 2 speakers generally does not sound good
MaxAudioChannels: physicalAudioChannels.toString()
});
}
profile.TranscodingProfiles.push({