@videopeer/segmenter
Version:
MP4 video file segmenter for MPEG-DASH usage, based on MP4Box
35 lines • 880 B
JavaScript
module.exports = {
input: [
{
id: 'high',
type: 'tcp',
options: { port: '4000' }
},
{
id: 'mid',
type: 'tcp',
options: { port: '4001' }
},
{
id: 'low',
type: 'tcp',
options: { port: '4002' }
}
],
output: [
{
type: 'fs',
options: {
outDir: '/var/media'
}
}
],
framesPerSegment: function(track) { return track.type === 'video' ? 100 : 125 },
timeBuffer: function() { return 30 },
mpd: {
type: 'dynamic',
minBufferTime: 'PT4S',
minimumUpdatePeriod: 'PT60S',
segmentsDuration: function (file, track) { return track.type === 'video' ? 4000 : 4000 }
}
};