nareix / joy4

Golang audio/video library and streaming server
MIT License
2.66k stars 501 forks source link

Would be so cool if i can to get some advice how to generate rtmp stream from mp4 files... #66

Closed VLZH closed 2 years ago

VLZH commented 5 years ago

Firstly ... Sorry for my English For more information, you can visit my repo The main point in my code: reader.go for reading files and sending av.Packet to channel writer.go send packets to rtmp server. On the first file, the server work correctly, but on the next file, the twitch (for example) show a spinner I thought, this behavior because time in packets of next files is skipped, and I started to change time in packets (reader.go (53- ~ 70)), but this decision is incorrect. Does somebody have some idea how can I do this? P.S Also I can`t to work with nginx-rtmp-module. Seems like server close connection. Nginx docker image