Skip to content

Commit

Permalink
adds possibility to add multiple tasks to the ffmpeg transcoder with …
Browse files Browse the repository at this point in the history
…different names
  • Loading branch information
datagutt committed Aug 28, 2019
1 parent 8496e2a commit 057ba92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_trans_session.js
Expand Up @@ -43,14 +43,14 @@ class NodeTransSession extends EventEmitter {
}
if (this.conf.hls) {
this.conf.hlsFlags = this.conf.hlsFlags ? this.conf.hlsFlags : '';
let hlsFileName = 'index.m3u8';
let hlsFileName = this.conf.name ? `${this.conf.name}.m3u8` : 'index.m3u8';
let mapHls = `[${this.conf.hlsFlags}:hls_segment_filename=\'${ouPath}/guaclive_${random}_%d.ts\']${ouPath}/${hlsFileName}|`;
mapStr += mapHls;
Logger.log('[Transmuxing HLS] ' + this.conf.streamPath + ' to ' + ouPath + '/' + hlsFileName);
}
if (this.conf.dash) {
this.conf.dashFlags = this.conf.dashFlags ? this.conf.dashFlags : '';
let dashFileName = 'index.mpd';
let dashFileName = this.conf.name ? `${this.conf.name}.mpd` : 'index.mpd';
let mapDash = `${this.conf.dashFlags}${ouPath}/${dashFileName}`;
mapStr += mapDash;
Logger.log('[Transmuxing DASH] ' + this.conf.streamPath + ' to ' + ouPath + '/' + dashFileName);
Expand Down

0 comments on commit 057ba92

Please sign in to comment.