1.5.7 • Published 1 year ago

rtsp2mjpeg v1.5.7

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

rtsp2mjpeg

This is a simple RTSP to MJPEG proxy server. It can be used to convert an RTSP stream to MJPEG stream. The stream works with jsmpeg.

rtsp2mjpeg

Installation

[sudo] npm install -g rtsp2mjpeg

Install ffmpeg: https://ffmpeg.org/download.html

Usage

 rtsp2mjpeg <rtsp-stream-url> \
           <ws-url> (optional; default=null) \
           <test-port> (optional; default=3000) \
           <internalPort> (optional; default=9999) \ 
           <fps> (optional; default=30) \
           <size> (optional; default=1920x1080)

Example

rtsp2mjpeg rtsp://192.168.0.247:8554/live \
           ws://localhost:3000 \
           3000 \
           9999 \
           30 \
           1920x1080

Dependencies

  • ffmpeg
  • nodejs
  • npm
  • forever-monitor

Running in Background

nohup rtsp2mjpeg rtsp://........... &

To view nohup output:

tail -f nohup.out -f

To see nohup jobs:

jobs

To kill a nohup job:

kill %1

Integration into any website via jsmpeg

<!DOCTYPE html>
<html>
<head>
    <title>RTSP to MJPEG</title>
</head>
<body>
    <canvas id="video-canvas"></canvas>
    <script src="https://cdn.jsdelivr.net/npm/jsmpeg@2"></script>
    <script>
        var canvas = document.getElementById('video-canvas');
        var player = new JSMpeg.Player('ws://localhost:[WebSocket Port]', {canvas: canvas});
    </script>
</body>
</html>

Known Issues

  • May need to install forever-monitor globally
[sudo] npm install -g forever-monitor
1.5.7

1 year ago

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.4.4

1 year ago

1.4.3

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.8

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago