Additional log msg

This commit is contained in:
Gabe Kangas
2020-07-11 17:22:10 -07:00
parent 1409477dce
commit 873e2535f8
2 changed files with 3 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ func (v *VideoSize) getString() string {
} }
func (t *Transcoder) Stop() { func (t *Transcoder) Stop() {
log.Traceln("Transcoder STOP requested.")
error := _commandExec.Process.Kill() error := _commandExec.Process.Kill()
if error != nil { if error != nil {
log.Errorln(error) log.Errorln(error)

View File

@@ -109,6 +109,8 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) {
annexb := h264.JoinNALUsAnnexb(nalus) annexb := h264.JoinNALUsAnnexb(nalus)
avcc := h264.JoinNALUsAVCC([][]byte{annexb}) avcc := h264.JoinNALUsAVCC([][]byte{annexb})
pkt.Data = avcc pkt.Data = avcc
} else if pkt.Type == av.Metadata {
log.Traceln(string(pkt.Data))
} }
if err := w.WritePacket(pkt); err != nil { if err := w.WritePacket(pkt); err != nil {