-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changing freq sometimes not working correctly when tuner source is external sat>ip server #1130
Comments
Can you post logs from your minisatip instance when doing the channel change sequence you described? Use |
I am attaching log where I open ZDF HD (works) and then change channel to new transponder BR HD (not working) |
I add new log where I change channels ZDF HD (OK) -> BR HD (NOK) -> phoenix HD (OK) -> BR HD (OK) |
In the last log I do the long test: When I do the 100% same test (same channels, same change order) directly connected to the Xoro 8100 and without minisatip in between - all works |
on freq change old adapter is not freed fast enough, no adapters are available? get_adapter returns NULL for adapter_id -1 |
@lars18th have you experienced this before (adapter not freed quickly enough)? |
The problem has existed for ages, for years. I'm not talking about the exact error (get_adapter returns NULL for adapter_id -1) because I never looked the log files, but the problem description is the same for years. Maybe nobody else complains because they are not using virtual sat>ip tuners as signal source or it is a specific minisatip <-> Xoro 8100 communication problem. One little theory Is that when the end-client is using TCP instead of UDP then the problem seems to increase. Every first transponder change fails, but the second is success. Some kind of time-out problem between opening&relasing the adapters... |
I haven't experienced this myself, so could be that it's specific to the Xoro 8100. |
Hi to all! From my experience:
I'm sorry but at time I don't have sufficient time to provide a solution. |
I have a big dream. I bought total of eight Xoro 8100 satip servers... For 8 different satellite positsions 8 tuner per satellite... Basically 64 tuners in total. Big-big system. :) But then there was the first problem - most Enigma satip clients (i.e VU+ Zero) have only 2 virtual satip client tuners. So I can ony connect directly to 2 satip server and you can only watch 2 different satellite positions (i.e 13E and 19E) I found minisatip to act as a proxy: take care of the decoding with oscam and act as a virtual diseqc to get all the 8 different satellite positsions covered (each satellite positsion has his own quattro LNB and own satip server) Soo far minisatip almost does the job - decoding and virtual disqc work, but channel change is buggy - I have to tune to some channels twice. there also seems to be a problem with max tunders minisatip can handle... When I configure 64 tuners, minisatip nevers shows 64 tuners, a lot go missing. Dont know why, but this is not a case for this topic. |
Hi @jyrts , God luck with the Xoro 8100 servers if you want to drive 64 tuners. In any case you will need to use Unicable II LNBs (programable for two sat positions). Where have you bought them? Regarding the limitations of tuners for minisatip, I feel the current limit is 64 but perhaps it's 32. I'll check it in the future. Regards. |
This you can open a new issue for, sounds like a bug |
I am using DUR-line +Ultra Quattro LNB's on my Toroidal T90 antenna to feed all my SAT>IP servers. Anyway. If you need anybody to test new fixes/relases - I'm all yours! :) |
Made some more testing and it seems this problem is not that Xoro 8100 specific. By modifying the channel list in the Engima2 client box (stream url from http:// to rtsp:// ) then there is no freq change problem anymore. The downside is that the video picture in the Enigma2 box then opens a lot slower. But at least no picture freeze when going from channel ZDF HD to BR HD. I hope this info helps In HTTP mode channel change is under 1 second, but freq change problems occur... In RTSP mode channel change is ~5-10 second but no freq change problem. The slowness is probably caused by the Enigma2 box client itself, soo minisatip has time to free old used adapter... |
Have you tried using https://github.com/oe-alliance/satip-client instead? |
Hi @jyrts ,
Are you using the HTTP client mode to play? Then your problem is a known bug. I've reported time ago. When more than one client requests a channel over the HTTP protocol in some cases the client doesn't obtains a free tuner. That's in my TODO list. Another different question is your "delay" when using the RTSP transport. In this case I suspect that your client is using a large buffer. If this is true, then try to reduce the size. I hope it helps. |
Yes, I am using HTTP client mode to play. The channelist list on the Enigma2 client looks like: The problem occours when there are two conditions at the same time: 1. the minisatip adapter source is not a local hardware tuner but a remote sat-ip server (xoro 8100) 2. when i change channel and the transponder frequency is not the same as it was on the old channel Seems I found another temporary solution to this on the Enigma2 client side: When the delay is 0/10/50/100ms then no good but starting at 500ms and bigger delay - channel change with transponder change works all good. The whole problem has magically disappeared. Seems with 500ms channel change delay minisatip has enough time to free the old remote sati>ip tuner to change freq and use the same tuner again |
I looked at the first log and it looks like this: This shows that the stream 0 (which uses the adapter 0) is closed AFTER the new stream is requested. As a result minisatip cannot assign the adapter to the new request. One option is to use a new client (like the satip client in enigma) |
Hi @jyrts and @catalinii , I've done some review of the logs shared by @jyrts (as I've been having some problems with channel switching using HTTP clients for a long time now), but I need to say that @catalinii have the reason:
I copy another time some part of the LOG:
What you can see here is that minisatip is streaming (over HTTP) the channel ZFD HD in the frequency 11362000 (stream 0). And then a NEW HTTP request calls for the channel BR HD in the frequency 11583000 (stream 1). But the problem is that the stream 0 (the current streaming) is NOT closed before the new request. Therefore, as @catalinii indicates it's impossible that the tuner will be free for the second call. In this case the problem is the CLIENT that makes new requests before closing the previous one. However, perhaps some workaround can be implemented... if @catalinii will agree with that. From my point of view the HTTP client functionality is a must-have of minisatip. And we can provide some smart streaming to it. For example, we can control if the same client (based on IP or user-agent or a cookie) makes multiple requests. In this case we can cancel previous streamings and serve a new request. What you think about that, @catalinii ? Too much effort for nothing? |
I'm categorically against hacks for broken clients |
Yeah I agree with @Jalle19 here. If we do it that way we will get to the point that a fix for a broken client will break another broken client fix. We can maybe dig into enigma cliebt implementation to see why is done, but one reason could be that the existing channel (ZDF) is stopped only when the new channel can be played. Of course the other solution is to have 2 or more adapters with unicable |
Help me out here... Why are you talking about broken client and why the 500ms delay between channel changes on the client side fixes the whole problem here? I can make a new test, by adding more adapters to minisatip. and try what happens. The Xoro 8100 has 8 tuners I can use with no problem (when using directly without minisatip) |
Hi @catalinii , The idea is not to provide workarounds for broken clients. If a client requests a new channel before closing the previous, the only reason (that it has sense) is because the client it's assuming that more than one tuner exist and then it wants to provide a fast channel change. This is a common behaviour of clients using IPTV servers. And this works because all the channels are available at the same time. However, when using real tuners this is false. And therefore it's mandatory to close (aka free) any channel before requesting another one. From my experience, good HTTP clients provide a method to configure if you want to use concurrent channel requests (good for IPTV) or not (for TUNERS). And then I suggest to @jyrts to try to configure in this way if the client support it. However, my idea is to provide a convenient behaviour to auto-close channels. The reason it's because using the HTTP interface the user doesn't have any information about the number of tuners. And then it can't open multiple channels smartly, bucause it doesn't knows if tuners are shared and the number of them. So, my suggestion it's about a SMART method. However, perhaps it's preferable to not add the complexity of it. Regards. |
Hi @jyrts ,
As I've commented the problem is because your client is requesting more than one channel at the same time. If you configure minisatip with multiple tuners, then one tuner could be unused when the client requests the next channel. And then your problem will be solved. However, it's preferable to configure your client to not do "fast channel tunning". This will definitively solve the issue. Regards. |
This bug may be a bit related to: "BUG: Not free adapters when fast changes #813" I have been using temporary fix for a long time now. |
I think we can close this issue. Both fixes work. |
Have SAT>IP server Xoro 8100 (running on IP 192.168.2.24)
basically I am using minisatip as a satip proxy for the Xoro 8100. Main purpuse is oscam decoding (running on IP 192.168.2.50)
/usr/bin/minisatip -f -o 192.168.2.50:9000 --disable-dvb --disable-ssdp -s 192.168.2.24
I have 4 channels on my enigma2 client (running on IP 192.168.2.50)
#NAME TEST
#SERVICE 1:0:19:2b7a:0:0:0:0:0:0:http%3a//192.168.2.50%3a8080/?src=1&freq=11362&pol=h&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=22000&fec=23&pids=0,17,18,6300,6310,6320,6330:ZDF neo HD
#DESCRIPTION ZDF neo HD
#SERVICE 1:0:19:2b66:0:0:0:0:0:0:http%3a//192.168.2.50%3a8080/?src=1&freq=11362&pol=h&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=22000&fec=23&pids=0,17,18,6100,6110,6120,6130:ZDF HD
#DESCRIPTION ZDF HD
#SERVICE 1:0:19:2856:0:0:0:0:0:0:http%3a//192.168.2.50%3a8080/?src=1&freq=11583&pol=h&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=22000&fec=23&pids=0,17,18,5201,5202,5210,5204:BR HD
#DESCRIPTION BR HD
#SERVICE 1:0:19:285b:0:0:0:0:0:0:http%3a//192.168.2.50%3a8080/?src=1&freq=11583&pol=h&ro=0.35&msys=dvbs2&mtype=8psk&plts=on&sr=22000&fec=23&pids=0,17,18,5260,5261,5262:phoenix HD
#DESCRIPTION phoenix HD
NOTES:
first, second channel are on transponder freq 11362 and third, fourth channel are on frec 11583.
minisatip is running in the enigma2 client, latest version (minisatip server, oscam server and the client is "all-in-one" IP 192.168.2.50)
PROBLEM DESCRIPTION:
MORE INFO
Seems like when there is a transporder freq change, then at the first attempt I get no picture
Only one client is using only one channel. So I am not using multiple clients or multiple channels at the same time here...
When the channels are on the same transponder, i can change up down as I want - No frees.
when I use directly Xoro 8100 (in channel list I replace 192.168.2.50:8080 -> 192.168.2.24) all works perfectly. No freeze on transponder change
The text was updated successfully, but these errors were encountered: