You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if this is a stupid question. I need to stream video that I’m receiving via RTSP (H.264) to an RTMP server (e.g., using joy4 or go-rtmp). How can I do this? Right now, I’ve written code that records the video to a *.ts file.
rtspClient.OnPacketRTP(medi, forma, func(pkt *rtp.Packet) {
log.Printf("RTP packet from media %v\n", medi)
// decode timestamp
pts, ok := rtspClient.PacketPTS2(medi, pkt)
if !ok {
log.Printf("waiting for timestamp")
return
}
// extract access unit from RTP packets
au, err := rtpDec.Decode(pkt)
if err != nil {
if err != rtph264.ErrNonStartingPacketAndNoPrevious && err != rtph264.ErrMorePacketsNeeded {
log.Printf("ERR: %v", err)
}
return
}
// here I need to mux (?) h264 to rtmp packets
The text was updated successfully, but these errors were encountered:
Sorry if this is a stupid question. I need to stream video that I’m receiving via RTSP (H.264) to an RTMP server (e.g., using joy4 or go-rtmp). How can I do this? Right now, I’ve written code that records the video to a *.ts file.
The text was updated successfully, but these errors were encountered: