mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix refFrames not being recorded
This commit is contained in:
parent
5edc464eea
commit
2032762b30
2 changed files with 32 additions and 10 deletions
|
@ -1317,7 +1317,7 @@
|
||||||
if (stream.ChannelLayout) {
|
if (stream.ChannelLayout) {
|
||||||
attributes.push(createAttribute(Globalize.translate('MediaInfoLayout'), stream.ChannelLayout));
|
attributes.push(createAttribute(Globalize.translate('MediaInfoLayout'), stream.ChannelLayout));
|
||||||
}
|
}
|
||||||
else if (stream.Channels) {
|
if (stream.Channels) {
|
||||||
attributes.push(createAttribute(Globalize.translate('MediaInfoChannels'), stream.Channels + ' ch'));
|
attributes.push(createAttribute(Globalize.translate('MediaInfoChannels'), stream.Channels + ' ch'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,12 +208,19 @@
|
||||||
profile.ContainerProfiles = [];
|
profile.ContainerProfiles = [];
|
||||||
|
|
||||||
var audioConditions = [];
|
var audioConditions = [];
|
||||||
|
var videoAudioAacConditions = [];
|
||||||
|
var videoAudioMp3Conditions = [];
|
||||||
|
|
||||||
if ($.browser.msie) {
|
if ($.browser.msie) {
|
||||||
audioConditions.push({
|
var channelCondition = {
|
||||||
Condition: 'LessThanEqual',
|
Condition: 'LessThanEqual',
|
||||||
Property: 'AudioChannels',
|
Property: 'AudioChannels',
|
||||||
Value: '2'
|
Value: '2'
|
||||||
});
|
};
|
||||||
|
|
||||||
|
audioConditions.push(channelCondition);
|
||||||
|
videoAudioAacConditions.push(channelCondition);
|
||||||
|
videoAudioMp3Conditions.push(channelCondition);
|
||||||
}
|
}
|
||||||
|
|
||||||
profile.CodecProfiles = [];
|
profile.CodecProfiles = [];
|
||||||
|
@ -222,21 +229,36 @@
|
||||||
Conditions: audioConditions
|
Conditions: audioConditions
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (videoAudioMp3Conditions.length) {
|
||||||
profile.CodecProfiles.push({
|
profile.CodecProfiles.push({
|
||||||
Type: 'VideoAudio',
|
Type: 'VideoAudio',
|
||||||
Conditions: audioConditions
|
Codec: 'mp3',
|
||||||
|
Conditions: videoAudioMp3Conditions
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
videoAudioAacConditions.push({
|
||||||
|
Condition: 'NotEquals',
|
||||||
|
Property: 'AudioProfile',
|
||||||
|
Value: 'LC'
|
||||||
|
});
|
||||||
|
|
||||||
|
videoAudioAacConditions.push({
|
||||||
|
Condition: 'NotEquals',
|
||||||
|
Property: 'AudioProfile',
|
||||||
|
Value: 'HE-AAC'
|
||||||
|
});
|
||||||
|
|
||||||
|
profile.CodecProfiles.push({
|
||||||
|
Type: 'VideoAudio',
|
||||||
|
Codec: 'aac',
|
||||||
|
Conditions: videoAudioAacConditions
|
||||||
});
|
});
|
||||||
|
|
||||||
profile.CodecProfiles.push({
|
profile.CodecProfiles.push({
|
||||||
Type: 'Video',
|
Type: 'Video',
|
||||||
Codec: 'h264',
|
Codec: 'h264',
|
||||||
Conditions: [
|
Conditions: [
|
||||||
{
|
|
||||||
Condition: 'Equals',
|
|
||||||
Property: 'IsCabac',
|
|
||||||
Value: 'true',
|
|
||||||
IsRequired: false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Condition: 'NotEquals',
|
Condition: 'NotEquals',
|
||||||
Property: 'IsAnamorphic',
|
Property: 'IsAnamorphic',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue