Browse Source

Additional log msg

pull/53/head
Gabe Kangas 5 years ago
parent
commit
873e2535f8
  1. 1
      core/ffmpeg/transcoder.go
  2. 2
      core/rtmp/rtmp.go

1
core/ffmpeg/transcoder.go

@ -64,6 +64,7 @@ func (v *VideoSize) getString() string { @@ -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)

2
core/rtmp/rtmp.go

@ -109,6 +109,8 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { @@ -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 {

Loading…
Cancel
Save