zhangpeihao / gortmp

Implement RTMP protocol by golang
MIT License
523 stars 162 forks source link

pull from live server and publish to another server #23

Closed thesyncim closed 7 years ago

thesyncim commented 8 years ago

Im trying to pull a stream and publish(push) to another server, but video/audio is out of sync. How should delta timestamp be calculated? thanks

zhangpeihao commented 8 years ago

RTMP transfers the audio and video in different logical streams(Chunk). Every chunk package has a timestamp field and an extended timestamp field.

So, maybe you can check those timestamps.