Skip to content

Commit

Permalink
Update mpeg1muxer.js
Browse files Browse the repository at this point in the history
Made it work with https://github.com/phoboslab/jsmpeg by adding "mpegts" parameter.
  • Loading branch information
pushys committed Jul 18, 2018
1 parent 4d4f2ce commit 1a52492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpeg1muxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Mpeg1Muxer extends EventEmitter {

this.url = options.url

this.stream = child_process.spawn("ffmpeg", ["-rtsp_transport", "tcp", "-i", this.url, '-f', 'mpeg1video', '-b:v', '180k', '-r', '30', '-'], {
this.stream = child_process.spawn("ffmpeg", ["-rtsp_transport", "tcp", "-i", this.url, '-f', 'mpegts', '-codec:v', 'mpeg1video', '-b:v', '180k', '-r', '30', '-'], {
detached: false
})

Expand Down

0 comments on commit 1a52492

Please sign in to comment.