ionorg / ion-sfu

Pure Go WebRTC SFU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Need Suggestion] What's the ideal way to record video?

tubzby opened this issue · comments

Currently ion-sfu polling packet from UpTrack and writing to DownTrack in

func (w *WebRTCReceiver) writeRTP(layer int) {
  ...
}

I want to record the UpTrack into a mp4 file, should I add my code in this function, or add a new callback in pkg/buffer/buffer.go?
Are there other alternatives?

Hello, how did you solve this issue?

@reg2005, I haven't tried it yet.
I'm thinking of doing it in another process, might be simple and less intrutive.