Jump to content
Калькуляторы

IPTV, несколько DVB

Уважаемые гуру.

Вот собрали сервер с 5 картами. Запускали на одной, все сделали, заработало. Приступили к остальным и появилась проблема, а именно:

при запущенном vlc на 0 карте, пытаемся стартануть еще один, но возникает проблема с program ID, у нас на 3-х нужных нам транспондерах они идут от 1 до 11.

 

Собственно вопрос, как их сделать уникальными, я так понимаю что проблема именно в этом.

 

Вот лог того что происходит, с учетом что запущен уже один VLC.

 

diver@diver-desktop:~/IPTV/working04$ ./startvlc_amos2.sh
./startvlc_amos2.sh: line 1: п»ї#!/bin/sh: No such file or directory
scanning Amos2.txt
using '/dev/dvb/adapter1/frontend0' and '/dev/dvb/adapter1/demux0'
initial transponder 10759000 H 30000000 3
>>> tune to: 10759:h:0:30000
Network Name 'NET'
0x0000 0x0001: pmt_pid 0x0020 Spacecom -- KIEV STB (running, scrambled)
0x0000 0x0002: pmt_pid 0x0030 Spacecom -- M1 (running, scrambled)
0x0000 0x0003: pmt_pid 0x0040 Spacecom -- TONIS (running, scrambled)
0x0000 0x0004: pmt_pid 0x0050 Spacecom -- CiTi (running, scrambled)
0x0000 0x0005: pmt_pid 0x0060 Spacecom -- ICTV (running, scrambled)
0x0000 0x0006: pmt_pid 0x0070 Spacecom -- M2 (running, scrambled)
0x0000 0x0008: pmt_pid 0x1079 Spacecom -- NEWS 24 (running, scrambled)
0x0000 0x000a: pmt_pid 0x0100 Spacecom -- Pervy delovoy (running, scrambled)
0x0000 0x000b: pmt_pid 0x0080 Spacecom -- QTV (running, scrambled)
dumping lists (9 services)
Done.
reading channels from file './channels_amos2.conf'
zapping to 1 'KIEV STB':
sat 0, frequency = 10759 MHz H, symbolrate 30000000, vpid = 0x0021, apid = 0x0022
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
opening frontend failed: Device or resource busy
reading channels from file './channels_amos2.conf'
zapping to 2 'M1':
sat 0, frequency = 10759 MHz H, symbolrate 30000000, vpid = 0x0031, apid = 0x0032
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
opening frontend failed: Device or resource busy
reading channels from file './channels_amos2.conf'
zapping to 3 'TONIS':
sat 0, frequency = 10759 MHz H, symbolrate 30000000, vpid = 0x0041, apid = 0x0042
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
opening frontend failed: Device or resource busy
reading channels from file './channels_amos2.conf'
zapping to 4 'CiTi':
sat 0, frequency = 10759 MHz H, symbolrate 30000000, vpid = 0x0051, apid = 0x0052
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
opening frontend failed: Device or resource busy
reading channels from file './channels_amos2.conf'
zapping to 5 'ICTV':
sat 0, frequency = 10759 MHz H, symbolrate 30000000, vpid = 0x0061, apid = 0x0062
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
opening frontend failed: Device or resource busy
reading channels from file './channels_amos2.conf'
zapping to 6 'M2':
sat 0, frequency = 10759 MHz H, symbolrate 30000000, vpid = 0x0071, apid = 0x0072
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
opening frontend failed: Device or resource busy
reading channels from file './channels_amos2.conf'
zapping to 8 'Pervy delovoy':
sat 0, frequency = 10759 MHz H, symbolrate 30000000, vpid = 0x0101, apid = 0x0102
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
opening frontend failed: Device or resource busy
reading channels from file './channels_amos2.conf'
channel not found
reading channels from file './channels_amos2.conf'
channel not found
VLC media player 0.8.6e Janus
diver@diver-desktop:~/IPTV/working04$ scan
initial tuning data files:

 

 

Share this post


Link to post
Share on other sites

а у меня собственно вопрос, почему using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' ?

когда на втором адаптере должен быть 1, а не 0

 

не плохо бы увидеть скрипт ./startvlc_amos2.sh

Edited by desperate

Share this post


Link to post
Share on other sites
а у меня собственно вопрос, почему using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' ?

когда на втором адаптере должен быть 1, а не 0

 

не плохо бы увидеть скрипт ./startvlc_amos2.sh

Вот скрипт который запускаем:

#!/bin/sh

adapter="1"
fr=`cat Amos2.txt | awk '{print $2;}'`
sr=`cat Amos2.txt | awk '{print $4;}'`

scan -a $adapter Amos2.txt > channels_amos2.conf

for chnl in 1 2 3 4 5 6 7 8;do
        szap -c ./channels_amos2.conf -n $chnl -x
done

vlc --ttl 12 --ts-es-id-pid --dvb-adapter=$adapter \
--programs=2,3,4,5,6,7,8 dvb: --dvb-frequency=$fr --dvb-srate=$sr \
--dvb-voltage=18 -d \
--sout '#duplicate{ dst="standard{access=udp,mux=ts,url=225.1.1.1:1234}",select="program=2", dst="standard{access=udp,mux=ts,url=225.1.1.2:1234}",select="program=3", dst="standard{access=udp,mux=ts,url=225.1.1.3:1234}",select="program=4", dst="standard{access=udp,mux=ts,url=225.1.1.4:1234}",select="program=5", dst="standard{access=udp,mux=ts,url=225.1.1.5:1234}",select="program=6", dst="standard{access=udp,mux=ts,url=225.1.1.6:1234}",select="program=7", dst="standard{access=udp,mux=ts,url=225.1.1.7:1234}",select="program=8" }'

 

В нем везде указан адаптер 1, а вот почему он szap делает на adapter 0.

Edited by telephonist

Share this post


Link to post
Share on other sites

Вариант "забыть про vlc и почитать соседнюю тему про getstream" не рассматривался?

Share this post


Link to post
Share on other sites
Вариант "забыть про vlc и почитать соседнюю тему про getstream" не рассматривался?

С getstreamа начинали, но возникла проблема, про которую писал в указанной ветке и никто не помог с решением

Стоит Убунту 8.0.4, поставил все по рекомендациям, сделел конфиг:

http {
port 8000;
};

adapter 0 {
budget-mode 0;
packet-buffer 50;
stat-interval 120;

dvb-s {
lnb {
lof1 9750000;
lof2 10600000;
slof 11700000;
};

transponder {
frequency 10722000;
polarisation h;
symbol-rate 27500000;
};
};
stream {
name "OTV";
input {pnr 2;};
output-udp {
remote-address 225.1.1.1;
remote-port 1234;
};
};
stream {
name "1PLUS1";
input {pnr 3;};
output-udp {
remote-address 225.1.1.2;
remote-port 1234;
};
};
stream {
name "TV KYIV";
input {pnr 4;};
output-udp {
remote-address 225.1.1.3;
remote-port 1234;
};
};
stream {
name "TVI";
input {pnr 6;};
output-udp {
remote-address 225.1.1.4;
remote-port 1234;
};
};
};


Запускаю: getstream -c /home/diver/IPTV/test.conf -d
и получаю: Unknown config option packet-buffer in line 7

Share this post


Link to post
Share on other sites

Я так полагаю он у вас по умолчанию просто хавает первый. Справка рулит :)

usage: szap -q
     -a number : use given adapter (default 0)
     -f number : use given frontend (default 0)

 

в этом ваша и ошибка

пробуйте так

#!/bin/bash

adapter="1"
fr=`cat Amos2.txt | awk '{print $2;}'`
sr=`cat Amos2.txt | awk '{print $4;}'`

scan -a $adapter Amos2.txt > channels_amos2.conf

for chnl in 1 2 3 4 5 6 7 8;do
        szap -a $adapter -c ./channels_amos2.conf -n $chnl -x
done

vlc --ttl 12 --ts-es-id-pid --dvb-adapter=$adapter \
--programs=2,3,4,5,6,7,8 dvb: --dvb-frequency=$fr --dvb-srate=$sr \
--dvb-voltage=18 -d \
--sout '#duplicate{ dst="standard{access=udp,mux=ts,url=225.1.1.1:1234}",select="program=2", dst="standard{access=udp,mux=ts,url=225.1.1.2:1234}",select="program=3", dst="standard{access=udp,mux=ts,url=225.1.1.3:1234}",select="program=4", dst="standard{access=udp,mux=ts,url=225.1.1.4:1234}",select="program=5", dst="standard{access=udp,mux=ts,url=225.1.1.5:1234}",select="program=6", dst="standard{access=udp,mux=ts,url=225.1.1.6:1234}",select="program=7", dst="standard{access=udp,mux=ts,url=225.1.1.7:1234}",select="program=8" }'

Edited by desperate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this