problems with setting up minisatip

Support forum for minisatip
iridium
Posts: 5
Joined: Thu Nov 02, 2017 10:22 pm

problems with setting up minisatip

Post by iridium »

Perhaps it is a silly question—but how does one start minisatip?

I have a Telestar Digibit TwinTuner in my LAN. One channel feeds a set-top box, hence I know that the thing is working.

I want to use minisatip to access the second channel. I compiled via "configure --enable-satipc" and "make" without problems. Then I entered "./minisatip -s TUNER_IP", and nothing happened. The program quitted immediately with status 0 and without reporting anything. What should have happened instead? And what is the proper way to start the program?
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: problems with setting up minisatip

Post by cata »

Hi,

Starting minisatip as you did makes it run as a daemon. So most likely you can use it. -f makes it run in foreground.
Thanks
iridium
Posts: 5
Joined: Thu Nov 02, 2017 10:22 pm

Re: problems with setting up minisatip

Post by iridium »

> Starting minisatip as you did makes it run as a daemon.

... which would have made sense. But my system does not return a process number, nor do I see a minisatip process after doing “ps -ef”.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: problems with setting up minisatip

Post by cata »

Run

./minisatip -f -s ....
iridium
Posts: 5
Joined: Thu Nov 02, 2017 10:22 pm

Re: problems with setting up minisatip

Post by iridium »

My command was ./minisatip -s 192.168.178.35, where the last item is the IP address of the tuner. I also tried the “-f” option, but there was neither a confirmation nor an error message from mysatip; it simply quitted with error code 0. I also tried “… 2@192.168.178.35”, with the same result.
I am probably making a silly mistake somewhere. But if minisatip cannot access the tuner because of a wrong/garbled IP address or a permission problem, I should expect an error message.
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: problems with setting up minisatip

Post by cata »

please provide the output of:

./minisatip -s 192.168.178.35 -f -l http

Thank you
iridium
Posts: 5
Joined: Thu Nov 02, 2017 10:22 pm

Re: problems with setting up minisatip

Post by iridium »

> please provide the output of:

… with pleasure:

[03/11 21:31:28.945 main]: minisatip version 0.7.10, compiled with s2api version: 050A
[03/11 21:31:28.945 main]: Built without dvbcsa
[03/11 21:31:28.945 main]: Built without CI
[03/11 21:31:28.945 main]: Built with dvbapi
[03/11 21:31:28.945 main]: Built without AES (OpenSSL)
[03/11 21:31:28.945 main]: Built with tables processing
[03/11 21:31:28.945 main]: Built with pmt processing
[03/11 21:31:28.945 main]: Built with satip client
[03/11 21:31:28.945 main]: Built with linux dvb client
[03/11 21:31:28.945 main]: Built with backtrace
[03/11 21:31:28.945 main]: Built without netceiver
[03/11 21:31:28.946 main]: New UDP socket 4 bound to 0.0.0.0:1900
[03/11 21:31:28.946 main]: setting multicast for 239.255.255.250
[03/11 21:31:28.946 main]: New UDP socket 5 bound to 239.255.255.250:1900
[03/11 21:31:28.946 main]: tcp_listen: failed: bind() on address: ANY, port 554 : error Permission denied
cata
Site Admin
Posts: 768
Joined: Tue May 12, 2015 1:01 am

Re: problems with setting up minisatip

Post by cata »

You have another application listening on 554


netstat -antp |grep 554
iridium
Posts: 5
Joined: Thu Nov 02, 2017 10:22 pm

Re: problems with setting up minisatip

Post by iridium »

netstat -antp does not indicate anything.

But if I run minisatip as superuser, it "daemonizes" correctly and generates a lot of HTTP output. I conclude that I must check my device permissions,
i.e., this problem is on my side.

The minisatip log output shows it when I let my vlc program access the server (using the examples from README_footer), but so far no video or audio signal comes through. I guess this is another problem.
DXler
Posts: 1
Joined: Mon Dec 04, 2017 10:03 am

Re: problems with setting up minisatip

Post by DXler »

To solve the problem "tcp_listen: failed: bind() on address: ANY, port 554 : error Permission denied" simply execute the following command one time:

sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/binary


Example: sudo setcap CAP_NET_BIND_SERVICE=+eip $HOME/minisatip/minisatip (the last "minisatip" is the binary file itself!)

The problem is: Linux don't allow access to low-numbered ports for security reasons.

The above command allow minisatip to bind to low-numbered ports without root! If the command executed it is durable valid.
Post Reply