2020-12-11, 18:24
Hi
it's hard to compress a long question into the small subject text field.. :-)
Here are more details:
Here in germany you can get small Sat>IP servers, which stream SAT TV as rtsp stream. In fact they are just promised to do so, but the reality is different.
I tried to receive such a rtsp:// stream with Kodi, but neither Kodi nor ffmpeg nor curl nor... is able to receive it, only VLC is able to show such a stream, and after much to much WireSharking, googleing and specification reading I now ended up with a functional python script, which does the necessary protocol handshake and starts Kodi to receive the stream by the jsonRPC call Player.Open()
But there are 2 problems left:
So I'm now searching for the right way to do
![Confused Confused](https://forum.kodi.tv/images/smilies/confused.png)
Maybe you have a good hint how to make this?
thanks in advance
Steffen
it's hard to compress a long question into the small subject text field.. :-)
Here are more details:
Here in germany you can get small Sat>IP servers, which stream SAT TV as rtsp stream. In fact they are just promised to do so, but the reality is different.
I tried to receive such a rtsp:// stream with Kodi, but neither Kodi nor ffmpeg nor curl nor... is able to receive it, only VLC is able to show such a stream, and after much to much WireSharking, googleing and specification reading I now ended up with a functional python script, which does the necessary protocol handshake and starts Kodi to receive the stream by the jsonRPC call Player.Open()
But there are 2 problems left:
- Because of Sat>IP specification limitations I've to initiate the handshake from the same machine (= ip address) on which also the player is running
- I've to send a regular keep alive message, so I can not simply end the starting script after starting up the Kodi player
So I'm now searching for the right way to do
- starting my script via jsonRPC. This works already via Addons.ExecuteAddon()
- let my script run in the background to send the regular keep alive message to the Sat>IP server - no problem on that
- But how to make that script to stop again with another jsonRPC command
- most prefered somehow linked to the player itself, because if the user stops the player anyhow, I would need to stop the keepalive signal and to send additonal termination commands to the Sat>IP server to release the locked channel resource again.. Does Kodi have a kind of internal event messaging on which my script could get a notification that the Player has stopped?
![Confused Confused](https://forum.kodi.tv/images/smilies/confused.png)
Maybe you have a good hint how to make this?
thanks in advance
Steffen