Skip to content
/ RstpToWs Public
forked from webver/RstpToWs

RTSP Stream to WebBrowser MSE over WebSocket based MP4f segments

Notifications You must be signed in to change notification settings

ddevz/RstpToWs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RstpToWs

https://github.com/deepch/RTSPtoWSMP4f fork

Configuration

Edit file config.json

format:

{
  "server": {
    "http_port": ":8083"
  },
  "streams": {
    "testCam0": {
      "url": "rtsp://admin:[email protected]:554/h264"
    },
    "testCam1": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    },
    "testCam2": {
      "url": "rtsp://170.93.143.139/rtplive/470011e600ef003a004ee33696235daa"
    }
  }
}

Status

GET /status

{
   "server":{
      "http_port":":8083"
   },
   "streams":{
      "testCam0":{ //suuid камеры
         "url":"rtsp://admin:[email protected]:554/h264",
         "status":true, //Есть коннект к камере или нет
         "Codecs":[
            {
               "Record":"AU0AH//hADBnTQAfmmQCgC3/gLcBAQFAAAD6AAAw1DoYACFTAACFSa7y40MABCpgABCpNd5cKAABAARo7jyA",
               "RecordInfo":{
                  "AVCProfileIndication":77,
                  "ProfileCompatibility":0,
                  "AVCLevelIndication":31,
                  "LengthSizeMinusOne":3,
                  "SPS":[
                     "Z00AH5pkAoAt/4C3AQEBQAAA+gAAMNQ6GAAhUwAAhUmu8uNDAAQqYAAQqTXeXCgA"
                  ],
                  "PPS":[
                     "aO48gA=="
                  ]
               },
               "SPSInfo":{
                  "ProfileIdc":77,
                  "LevelIdc":31,
                  "MbWidth":80,
                  "MbHeight":45,
                  "CropLeft":0,
                  "CropRight":0,
                  "CropTop":0,
                  "CropBottom":0,
                  "Width":1280,
                  "Height":720
               }
            }
         ],
         "Clients":{ //Кто смотрит камеру
            "14DB9D02-4D01-D8AA-9EED-C6BA848A7BBC":{

            }
         }
      }
   }
}

Limitations

Video Codecs Supported: H264 all profiles

Audio Codecs Supported: AAC mono

Test

CPU usage 0.2% one core cpu intel core i7 / stream

About

RTSP Stream to WebBrowser MSE over WebSocket based MP4f segments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%