https://github.com/angrycoding/xm-pcm-audio-player
XM DVRIP Audio player
https://github.com/angrycoding/xm-pcm-audio-player
Last synced: 5 days ago
JSON representation
XM DVRIP Audio player
- Host: GitHub
- URL: https://github.com/angrycoding/xm-pcm-audio-player
- Owner: angrycoding
- Created: 2020-08-06T05:42:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-06T06:07:33.000Z (over 5 years ago)
- Last Synced: 2025-04-09T18:54:16.116Z (10 months ago)
- Language: HTML
- Size: 162 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xm-pcm-audio-player
Plays PCM audio recorded from DVRIP stream (NAL - frames), or RTSP from XM ip cameras.
# installation
```npm install```
# play locally
Just open index.html in the browser and click "Play prerecorded sample", this will start playing
prerecorded audio sample (see index.html), previously obtained from DVRIP protocol stream or from
archive .h264 file.
# play rtsp
Open server.js and change RTSP url used to connect to your camera.
Make sure that audio stream is enabled on your camera, server doesnt check stream presense nor
handling any kind of exceptions. So if you'll here some rubish instead of audio from camera,
then you've probably listening video stream instead of audio, if so try to swap trackID=3 and trackID=4
(server doesnt read sdp and doesnt know which of the streams is actual audio track).
Run server: ```node server.js```
Open browser http://localhost:9999/ and click "Play live". Server grabs PCM data from RTSP stream of your camera,
then forwards it to socket.io connection. Web browser receives the data and plays it in absolutelly the same
manner as it comes to place with the prerecorded fragments as it's described previously.
Have fun!