@videopeer/segmenter
Version:
MP4 video file segmenter for MPEG-DASH usage, based on MP4Box
27 lines • 630 B
JavaScript
module.exports = {
input: [
{
id: 'high',
type: 'fs',
options: { filePath: '/var/media/source/high.mp4' }
},
{
id: 'low',
type: 'fs',
options: { filePath: '/var/media/source/low.mp4' }
}
],
output: [
{
type: 'fs',
options: {
outDir: '/var/media'
}
}
],
framesPerSegment: function(track) { return track.type === 'video' ? 100 : 125 },
mpd: {
type: 'static',
minBufferTime: 'PT30S',
}
};