revid-cli: using MpegtsRtp to representation packetization under mpegtsrtp packetization

This commit is contained in:
saxon 2018-11-21 12:52:28 +10:30
parent 589ec15259
commit f53c866311
2 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,7 @@ const (
Rtmp
FfmpegRtmp
Udp
MpegtsRtp
Rtp
)

View File

@ -278,7 +278,7 @@ func (r *Revid) reset(config Config) error {
if err != nil {
return err
}
case Rtp:
case MpegtsRtp:
r.config.Logger.Log(smartlogger.Info, pkg+"using RTP packetisation")
frameRate, _ := strconv.Atoi(r.config.FrameRate)
r.encoder = rtp.NewEncoder(&r.packer, frameRate)