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 Rtmp
FfmpegRtmp FfmpegRtmp
Udp Udp
MpegtsRtp
Rtp Rtp
) )

View File

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