From 873e2535f87392f1f5f924fe57f6dbb3328e10d8 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 11 Jul 2020 17:22:10 -0700 Subject: [PATCH] Additional log msg --- core/ffmpeg/transcoder.go | 1 + core/rtmp/rtmp.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/core/ffmpeg/transcoder.go b/core/ffmpeg/transcoder.go index c0bb2a8d8..502a66959 100644 --- a/core/ffmpeg/transcoder.go +++ b/core/ffmpeg/transcoder.go @@ -64,6 +64,7 @@ func (v *VideoSize) getString() string { } func (t *Transcoder) Stop() { + log.Traceln("Transcoder STOP requested.") error := _commandExec.Process.Kill() if error != nil { log.Errorln(error) diff --git a/core/rtmp/rtmp.go b/core/rtmp/rtmp.go index 880b77aa1..3bd3ad51d 100644 --- a/core/rtmp/rtmp.go +++ b/core/rtmp/rtmp.go @@ -109,6 +109,8 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { annexb := h264.JoinNALUsAnnexb(nalus) avcc := h264.JoinNALUsAVCC([][]byte{annexb}) pkt.Data = avcc + } else if pkt.Type == av.Metadata { + log.Traceln(string(pkt.Data)) } if err := w.WritePacket(pkt); err != nil {