Additional log msg
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user