mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Include all WebM codecs in transcode profile (squash me on submit)
This commit is contained in:
parent
f624326eb4
commit
78cf009713
@ -667,38 +667,13 @@ import browser from './browser';
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canPlayVp8) {
|
if (webmAudioCodecs.length && webmVideoCodecs.length) {
|
||||||
// TODO: Remove vpx entry once servers are migrated
|
|
||||||
profile.TranscodingProfiles.push({
|
profile.TranscodingProfiles.push({
|
||||||
Container: 'webm',
|
Container: 'webm',
|
||||||
Type: 'Video',
|
Type: 'Video',
|
||||||
AudioCodec: webmAudioCodecs.includes('opus') ? 'opus' : 'vorbis',
|
AudioCodec: webmAudioCodecs.join(','),
|
||||||
VideoCodec: 'vpx',
|
// TODO: Remove workaround when servers migrate away from 'vpx' for transcoding profiles.
|
||||||
Context: 'Streaming',
|
VideoCodec: (canPlayVp8 ? webmVideoCodecs.concat('vpx') : webmVideoCodecs).join(','),
|
||||||
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({
|
|
||||||
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',
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user