Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions internal/isapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,18 @@ streams:
- rtsp://admin:password@192.168.1.123:554/Streaming/Channels/101
- isapi://admin:password@192.168.1.123:80/
```

## Codecs

| Camera TwoWayAudio | Support |
|--------------------|---------|
| G.711ulaw / G.711alaw | Raw PCMU/PCMA (classic path) |
| AAC | Length-prefixed ADTS over `/audioData` (`[u32be len][ADTS]`). WebRTC mic (PCMU/PCMA) is transcoded to AAC via `ffmpeg` |

Requires `ffmpeg` on PATH when the camera is set to AAC and the browser sends G.711.

## Notes

- Session: `close` → brief settle → `open` → `PUT .../audioData?sessionId=...`
- AAC sample rate is read from `audioSamplingRate` (typically 16 kHz)
- Some firmware lists G.711 in capabilities but rejects `open` while AAC works — leave the camera on AAC
7 changes: 5 additions & 2 deletions internal/isapi/init.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package isapi

import (
"github.com/AlexxIT/go2rtc/internal/app"
"github.com/AlexxIT/go2rtc/internal/streams"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/isapi"
pkg "github.com/AlexxIT/go2rtc/pkg/isapi"
)

func Init() {
pkg.SetLogger(app.GetLogger("isapi"))

streams.HandleFunc("isapi", func(source string) (core.Producer, error) {
return isapi.Dial(source)
return pkg.Dial(source)
})
}
69 changes: 0 additions & 69 deletions pkg/isapi/backchannel.go

This file was deleted.

Loading