Created
July 20, 2019 19:34
-
-
Save koush/35265807ef950153d30d2b3b93064427 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('http').createServer( | |
(req, res) => require('child_process').spawn('/usr/local/bin/ffmpeg', [ | |
'-i', | |
'rtsp://192.168.2.11:7447/fXbuD6HqIV9y8BKL', | |
'-vcodec', | |
'copy', | |
'-f', | |
'mpegts', | |
'pipe:1', | |
]).stdout.pipe(res) | |
).listen(8000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment