dizquetv/web/directives/ffmpeg-settings.js
Jordan Koehn 0fe29e7598 Handle stream stream concatination using ffmpeg concat demuxer (ffmpeg 4.2+ required).
Change docker container to use alpine linux, comes with ffmpeg 4.2+ easier.
Encode commercials to be same video codec as programs when channel icons enabled. Resolution/framerate could still be problematic.
2020-06-20 13:26:37 -04:00

48 lines
1.8 KiB
JavaScript

module.exports = function (pseudotv) {
return {
restrict: 'E',
templateUrl: 'templates/ffmpeg-settings.html',
replace: true,
scope: {
},
link: function (scope, element, attrs) {
pseudotv.getFfmpegSettings().then((settings) => {
scope.settings = settings
})
scope.updateSettings = (settings) => {
pseudotv.updateFfmpegSettings(settings).then((_settings) => {
scope.settings = _settings
})
}
scope.resetSettings = (settings) => {
pseudotv.resetFfmpegSettings(settings).then((_settings) => {
scope.settings = _settings
})
}
scope.hideIfNotEnableChannelOverlay = () => {
return scope.settings.enableChannelOverlay != true
};
scope.hideIfNotAutoPlay = () => {
return scope.settings.enableAutoPlay != true
};
scope.resolutionOptions=[
{id:"420",description:"420x420"},
{id:"320",description:"576x320"},
{id:"480",description:"720x480"},
{id:"768",description:"1024x768"},
{id:"720",description:"1280x720"},
{id:"1080",description:"1920x1080"},
{id:"2160",description:"3840x2160"},
{id:"unchanged",description:"Same as source"}
];
scope.muxDelayOptions=[
{id:"0",description:"0 Seconds"},
{id:"1",description:"1 Seconds"},
{id:"2",description:"2 Seconds"},
{id:"3",description:"3 Seconds"},
{id:"4",description:"4 Seconds"},
{id:"5",description:"5 Seconds"}
];
}
}
}