not1337 / libsatip

SAT>IP library for Linux, including example applications
5 stars 5 forks source link

Examples #1

Open sinuswave opened 8 years ago

sinuswave commented 8 years ago

I am having some difficulties getting satiploop up and running. Can you add an example to the config file, please?

lars18th commented 8 years ago

Yes, please!

9000h commented 5 years ago

this is from a test with a Fritz!Box 6490 as Server satiploopd did create the /dev/dvb/adapter9/frontend0 via cuse and when doing a scan with "w_scan -a 9 -fc -cDE -v" it did connect to the Fritz!Box via SAT>IP but it did not work /etc/satiploopd.conf

[global]
level=0          0=IPv4, 1=0+IPv6 link layer, 2=1+IPv6 ULA addresses
dev=enp1s0               ethernet device, no default
#
[tuner]
deviceid=1       SAT>IP tuner device id, mandatory
source=1      source group(s) the tuner belongs to
#
[device]
adapter=9                CUSE dvb adapter number, default 0
mode=5           device operation mode, 1/2=DVBS/2,3/4=DVBT/2,5/6=DVBC/2
host=192.168.178.1      SATT>IP server host name or IP

from tcpdump port 554 sr=690000 seems to be to big should it be 6900 https://github.com/not1337/libsatip/blob/22865e0d2f5eb54c2fef4463fba8009769031883/loop/satiploopd.c#L2273

        SETUP rtsp://192.168.178.1/?freq=73.000&msys=dvbc&sr=6900000&pids=none RTSP/1.0
        CSeq: 1
        Transport: RTP/AVP;unicast;client_port=40416-40417

13:19:43.967155 IP (tos 0x0, ttl 64, id 12875, offset 0, flags [DF], proto TCP (6), length 52)
    192.168.178.1.554 > 192.168.178.129.45528: Flags [.], cksum 0xe143 (correct), ack 145, win 972, options [nop,nop,TS val 1698050461 ecr 739155620], length 0
13:19:43.967264 IP (tos 0x0, ttl 64, id 28170, offset 0, flags [DF], proto TCP (6), length 52)
    192.168.178.1.554 > 192.168.178.129.45526: Flags [F.], cksum 0xd3de (correct), seq 317, ack 294, win 972, options [nop,nop,TS val 1698050461 ecr 739155619], length 0
13:19:43.967302 IP (tos 0x0, ttl 64, id 64347, offset 0, flags [DF], proto TCP (6), length 52)
    192.168.178.129.45526 > 192.168.178.1.554: Flags [.], cksum 0xd76d (correct), ack 318, win 60, options [nop,nop,TS val 739155620 ecr 1698050461], length 0
13:19:43.968806 IP (tos 0x0, ttl 64, id 12876, offset 0, flags [DF], proto TCP (6), length 223)
    192.168.178.1.554 > 192.168.178.129.45528: Flags [P.], cksum 0x61fd (correct), seq 1:172, ack 145, win 972, options [nop,nop,TS val 1698050461 ecr 739155620], length 171: RTSP, length: 171
        RTSP/1.0 200 OK
        CSeq: 1
        Session: 553;timeout=60
        Transport: RTP/AVP;unicast;client_port=40416-40417;source=192.168.178.1;server_port=5000-5001
        com.ses.streamID: 553

13:19:43.968849 IP (tos 0x0, ttl 64, id 36982, offset 0, flags [DF], proto TCP (6), length 52)
    192.168.178.129.45528 > 192.168.178.1.554: Flags [.], cksum 0xe426 (correct), ack 172, win 60, options [nop,nop,TS val 739155622 ecr 1698050461], length 0
13:19:43.968989 IP (tos 0x0, ttl 64, id 36983, offset 0, flags [DF], proto TCP (6), length 124)
    192.168.178.129.45528 > 192.168.178.1.554: Flags [P.], cksum 0xcca3 (correct), seq 145:217, ack 172, win 60, options [nop,nop,TS val 739155622 ecr 1698050461], length 72: RTSP, length: 72
        PLAY rtsp://192.168.178.1/stream=553 RTSP/1.0
        CSeq: 2
        Session: 553

13:19:43.970443 IP (tos 0x0, ttl 64, id 12877, offset 0, flags [DF], proto TCP (6), length 155)
    192.168.178.1.554 > 192.168.178.129.45528: Flags [P.], cksum 0x6ccb (correct), seq 172:275, ack 217, win 972, options [nop,nop,TS val 1698050461 ecr 739155622], length 103: RTSP, length: 103
        RTSP/1.0 408 Request Time-out
        CSeq: 2
        Session: 553
        RTP-Info: url=rtsp://192.168.178.1/stream=553

13:19:43.970690 IP (tos 0x0, ttl 64, id 36984, offset 0, flags [DF], proto TCP (6), length 128)
    192.168.178.129.45528 > 192.168.178.1.554: Flags [P.], cksum 0x2c5f (correct), seq 217:293, ack 275, win 60, options [nop,nop,TS val 739155623 ecr 1698050461], length 76: RTSP, length: 76
        TEARDOWN rtsp://192.168.178.1/stream=553 RTSP/1.0
        CSeq: 3
        Session: 553

any hint's ? with which SAT>IP Server is it tested?

9000h commented 5 years ago

btw. there is a bug with satiploopd when it is started on a system without any dvb hardware as there is a call to fe_info in hw.c which will fail

lars18th commented 5 years ago

btw. there is a bug with satiploopd when it is started on a system without any dvb hardware as there is a call to fe_info in hw.c which will fail

So, any idea about how to solve it?

Can you add an example to the config file, please?

And, can someone write a Wiki or Readme with more descriptive examples? For example, how to use satiploopd to simulate a Linux DVB tuner using a remote SAT>IP server.

9000h commented 5 years ago

for now I still use https://github.com/lecotex/vtuner.linux-driver with a little patch to run on newer kernels and https://github.com/Leatherface75/satip as client with some own tweaks to get DVB-T2 working. @not1337 it would be great if you could tell us if the project is still active

lars18th commented 5 years ago

for now I still use https://github.com/lecotex/vtuner.linux-driver with a little patch to run on newer kernels and https://github.com/Leatherface75/satip as client with some own tweaks to get DVB-T2 working.

Me too! :laughing:

@not1337 it would be great if you could tell us if the project is still active

Yes! I feel this is a good project.