mirror of https://bitbucket.org/ausocean/av.git
revid-cli: using MpegtsRtp to representation packetization under mpegtsrtp packetization
This commit is contained in:
parent
589ec15259
commit
f53c866311
|
@ -83,6 +83,7 @@ const (
|
||||||
Rtmp
|
Rtmp
|
||||||
FfmpegRtmp
|
FfmpegRtmp
|
||||||
Udp
|
Udp
|
||||||
|
MpegtsRtp
|
||||||
Rtp
|
Rtp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue