An open API service indexing awesome lists of open source software.

https://github.com/notedit/rtp-streamer

rtp record and rtp streamer
https://github.com/notedit/rtp-streamer

ffmpeg recorder rtmp rtp rtsp webrtc

Last synced: 4 months ago
JSON representation

rtp record and rtp streamer

Awesome Lists containing this project

README

          

# rtpstreamer
nodejs rtp streamer

it is used to record webrtc stream.

the file is save to .mkv file.

## fetures

- save to mkv file
- stream to rtmp

## install

```

npm install rtprecorder

```

## demo code

```

let videoCodec =
{
kind : 'audio',
name : 'audio/opus',
payloadType : 100,
clockRate : 48000
};

let audioCodec =
{
kind : 'video',
name : 'video/vp8',
payloadType : 110,
clockRate : 90000
};

let streamId = 'some streamId';

let stream = recorder.create(streamId);

await stream.enableVideo(videoCodec);
await stream.enableAudio(audioCodec);

// some audio/video port forward

// after port forwarding now we can record

stream.startRecording();
```