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

DVB NetUp, VLC, Debian

Добрый день.

 

Возникла необходимость сделать вещание со спутника.

 

Имеем:

 

NetUP Dual DVB-S2-CI 1штука

Debian 2.6.34

Драйвера на карточку.

Антену настроенную на Триколор

 

После всей беготни в итоге получаеться так:

szap -c 123 -n 001

 

zapping to 1 '▒▒▒▒▒▒▒▒² ':
sat 0, frequency = 12072 MHz H, symbolrate 27500000, vpid = 0x010f, apid = 0x0110 sid = 0x6978
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 1e | signal ffff | snr d680 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
status 1e | signal ffff | snr d680 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
status 1e | signal ffff | snr d680 | ber 00000000 | unc 00000000 | FE_HAS_LOCK

 

То есть как я понял канал поймал и залочил.

 

Потом запускаю vlc

 

vlc -vvv -vvv --color --ttl 12 --ts-es-id-pid --dvb-adapter=0 --programs=59 dvb:// --dvb-frequency=12072000 --dvb-srate=27000000 --dvb-lnb-lof1=10750000 --dvb-lnb-lof2=10750000 --dvb-lnb-slof=0 --sout '#transcode{vcodec=mp4v,venc=ffmpeg,acodec=mpga,width=320,height=240,vb=512,a
b=16}:duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8081,name="3tv"},select="program=001"}'

 

получаем вот такой вот лог:

 

debian:/home/dvb# ./run
VLC media player 0.8.6h Janus
starting VLC root wrapper... using UID 0 (root)
***************************************
* Running VLC as root is discouraged. *
***************************************

It is potentially dangerous, and might not even work properly.
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: module bank initialized, found 204 modules
[00000001] main private warning: Unable to get HAL device properties
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 1 candidate
[00000001] main private debug: using memcpy module "memcpy"
[00000267] main playlist debug: waiting for thread completion
[00000267] main playlist debug: thread 3064564624 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000268] main private debug: waiting for thread completion
[00000268] main private debug: thread 3056171920 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000269] main interface debug: looking for interface module: 1 candidate
[00000269] main interface debug: using interface module "hotkeys"
[00000269] main interface debug: thread 3047754640 (interface) created at priority 0 (interface/interface.c:231)
[00000271] main interface debug: looking for interface module: 1 candidate
[00000271] main interface debug: using interface module "screensaver"
[00000271] main interface debug: thread 3037723536 (interface) created at priority 0 (interface/interface.c:231)
[00000267] main playlist debug: adding playlist item `dvb://' ( dvb:// )
[00000273] main interface debug: looking for interface module: 2 candidates
Remote control interface initialized. Type `help' for help.
[00000273] main interface debug: using interface module "rc"
[00000273] main interface debug: thread 3029330832 (manager) created at priority 0 (interface/interface.c:216)
[00000267] main playlist debug: creating new input thread
[00000275] main input debug: waiting for thread completion
[00000275] main input debug: thread 3020938128 (input) created at priority 0 (input/input.c:265)
[00000275] main input debug: creating statistics handler
[00000277] main stream output debug: stream=`transcode'
[00000278] main private debug: looking for sout stream module: 1 candidate
[00000277] main stream output debug: stream=`duplicate'
[00000281] main private debug: looking for sout stream module: 1 candidate
[00000281] stream_out_duplicate private debug: creating 'duplicate'
[00000281] stream_out_duplicate private debug:  * adding `std{access=http,mux=ts,dst=10.172.134.254:8081,name="3tv"}'
[00000277] main stream output debug: stream=`std'
[00000283] main private debug: looking for sout stream module: 1 candidate
[00000283] main private debug: set sout option: sout-standard-access to http
[00000283] main private debug: set sout option: sout-standard-mux to ts
[00000283] main private debug: set sout option: sout-standard-dst to 10.172.134.254:8081
[00000283] main private debug: set sout option: sout-standard-name to 3tv
[00000283] stream_out_standard private debug: creating `http/ts://10.172.134.254:8081'
[00000283] stream_out_standard private debug: extension is 254:8081
[00000283] stream_out_standard private debug: extension -> mux=(null)
[00000283] stream_out_standard private debug: using `http/ts://10.172.134.254:8081'
[00000285] main private debug: looking for sout access module: 1 candidate
[00000285] main private: creating httpd
[00000285] main private debug: net: listening to 10.172.134.254 port 8081
[00000288] main http server debug: thread 3012545424 (httpd host thread) created at priority 0 (network/httpd.c:1078)
[00000285] main private debug: using sout access module "access_output_http"
[00000283] stream_out_standard private debug: access opened
[00000289] main private debug: looking for sout mux module: 1 candidate
[00000289] mux_ts private debug: shaping=200000 pcr=70000 dts_delay=400000
[00000289] main private debug: using sout mux module "mux_ts"
[00000277] main stream output debug: muxer support adding stream at any time
[00000283] stream_out_standard private debug: mux opened
[00000283] main private debug: using sout stream module "stream_out_standard"
[00000281] stream_out_duplicate private debug:  * apply selection program=001
[00000281] main private debug: using sout stream module "stream_out_duplicate"
[00000278] main private debug: set sout option: sout-transcode-vcodec to mp4v
[00000278] main private debug: set sout option: sout-transcode-venc to ffmpeg
[00000278] main private debug: set sout option: sout-transcode-acodec to mpga
[00000278] main private debug: set sout option: sout-transcode-width to 320
[00000278] main private debug: set sout option: sout-transcode-height to 240
[00000278] main private debug: set sout option: sout-transcode-vb to 512
[00000278] main private debug: set sout option: sout-transcode-ab to 16
[00000278] stream_out_transcode private debug: codec audio=mpga 0Hz 0 channels 16Kb/s
[00000278] stream_out_transcode private debug: codec video=mp4v 320x240 scaling: 1.000000 512kb/s
[00000278] main private debug: using sout stream module "stream_out_transcode"
[00000275] main input debug: `dvb://' gives access `dvb' demux `' path `'
[00000275] main input debug: creating demux: access='dvb' demux='' path=''
[00000290] main demuxer debug: looking for access_demux module: 0 candidates
[00000290] main demuxer warning: no access_demux module matched "dvb"
[00000275] main input debug: creating access 'dvb' path=''
[00000291] main access debug: looking for access2 module: 6 candidates
[00000291] dvb access debug: Opening device /dev/dvb/adapter0/frontend0
[00000291] dvb access debug: Frontend Info:
[00000291] dvb access debug:   name = STV0900 frontend
[00000291] dvb access debug:   type = QPSK (DVB-S)
[00000291] dvb access debug:   frequency_min = 950000 (kHz)
[00000291] dvb access debug:   frequency_max = 2150000 (kHz)
[00000291] dvb access debug:   frequency_stepsize = 125
[00000291] dvb access debug:   frequency_tolerance = 0
[00000291] dvb access debug:   symbol_rate_min = 1000000 (kHz)
[00000291] dvb access debug:   symbol_rate_max = 45000000 (kHz)
[00000291] dvb access debug:   symbol_rate_tolerance (ppm) = 500
[00000291] dvb access debug:   notifier_delay (ms) = 0
[00000291] dvb access debug: Frontend Info capability list:
[00000291] dvb access debug:   inversion auto
[00000291] dvb access debug:   forward error correction 1/2
[00000291] dvb access debug:   forward error correction 2/3
[00000291] dvb access debug:   forward error correction 3/4
[00000291] dvb access debug:   forward error correction 5/6
[00000291] dvb access debug:   forward error correction 7/8
[00000291] dvb access debug:   forward error correction auto
[00000291] dvb access debug:   card can do QPSK
[00000291] dvb access debug: End of capability list
[00000291] dvb access debug: trying to tune the frontend...
[00000291] dvb access debug: using inversion=2
[00000291] dvb access debug: using fec=9
[00000291] dvb access debug: using voltage=13
[00000291] dvb access debug: using tone=1
status change: ( new input: dvb:// )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000291] dvb access debug: Opening device /dev/dvb/adapter0/dvr0
[00000291] dvb access debug: setting filter on PAT
[00000291] dvb access debug: Opening device /dev/dvb/adapter0/demux0
[00000291] dvb access debug: DMXSetFilter: DMX_PES_OTHER for PID 0
[00000291] dvb access debug: Opening device /dev/dvb/adapter0/ca0
[00000291] dvb access warning: CAMInit: opening CAM device failed (No such file or directory)
[00000291] main access debug: using access2 module "dvb"
[00000293] main private debug: pre buffering
[00000291] dvb access debug: frontend has acquired carrier
[00000291] dvb access debug: frontend has acquired stable FEC
[00000291] dvb access debug: frontend has acquired sync
[00000291] dvb access debug: frontend has acquired lock
[00000291] dvb access debug: - Bit error rate: 10000000
[00000291] dvb access debug: - Signal strength: 10027007
[00000291] dvb access debug: - SNR: 9961472
[00000288] main http server debug: Connection from 10.172.128.253
^Csignal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )
[00000001] main private debug: removing all interfaces
[00000273] main interface debug: thread 3029330832 joined (interface/interface.c:258)
[00000273] main interface debug: removing module "rc"
[00000271] main interface debug: thread 3037723536 joined (interface/interface.c:258)
[00000271] main interface debug: removing module "screensaver"
[00000269] main interface debug: thread 3047754640 joined (interface/interface.c:258)
[00000269] main interface debug: removing module "hotkeys"
[00000001] main private debug: removing playlist handler
[00000268] main private debug: thread 3056171920 joined (playlist/playlist.c:247)
[00000293] main private debug: prebuffering done 0 bytes in 20s - 0 kbytes/s
[00000293] main private error: cannot pre fill buffer
[00000275] main input warning: cannot create a stream_t from access
[00000291] dvb access debug: DMXUnsetFilter: closing demux 7
[00000291] main access debug: removing module "dvb"
[00000278] main private debug: destroying chain... (name=transcode)
[00000281] main private debug: destroying chain... (name=duplicate)
[00000281] stream_out_duplicate private debug: closing a duplication
[00000283] main private debug: destroying chain... (name=std)
[00000289] main private debug: removing module "mux_ts"
[00000288] main http server debug: thread 3012545424 joined (network/httpd.c:1134)
[00000288] main http server debug: HTTP host removed
[00000287] main http server debug: no host left, stopping httpd
[00000285] access_output_http private debug: Close
[00000285] main private debug: removing module "access_output_http"
[00000283] main private debug: removing module "stream_out_standard"
[00000283] main private debug: destroying chain done
[00000281] main private debug: removing module "stream_out_duplicate"
[00000281] main private debug: destroying chain done
[00000278] main private debug: removing module "stream_out_transcode"
[00000278] main private debug: destroying chain done
[00000275] main input debug: thread 3020938128 joined (input/input.c:412)
[00000267] main playlist debug: thread 3064564624 joined (playlist/playlist.c:248)
[00000267] main playlist: stopping playback
[00000267] main playlist debug: deleting playlist item `dvb://'
[00000001] main private debug: removing all video outputs
[00000001] main private debug: removing all audio outputs
[00000001] main private debug: removing module "memcpy"
[00000001] main private debug: saving plugins cache file /root/.vlc/cache/plugins-04041e.dat

 

То есть вроде все ок, все запустилось сервак слушает порт 8081 по хттп....

 

цепляюсь VLC, но в ответ тишина...

 

уже неделю практический пинаю этот вопрос.. чего-то я не догоняю или не вижу. Подскажите плиз.

Share this post


Link to post
Share on other sites

У Вас не правильно в строке запуска vlc:

--programs=59

program=001

 

Они должны быть одинаковыми.

Edited by schadel

Share this post


Link to post
Share on other sites

Поправил, толку ноль. Заметил следующие:

 

1) Если перед запуском VLC не запускать szap то VLC в лог говорить что канал не залочен и типа не настроен.

 

dvb access warning: no lock, tuning again

[00000291] dvb access debug: using inversion=2

[00000291] dvb access debug: using fec=9

[00000291] dvb access debug: using voltage=13

[00000291] dvb access debug: using tone=1

[00000291] dvb access debug: frontend has acquired signal

 

Если же запускаю szap, то в лог приведен в первом сообщение.

 

2) Еще один момент попытался цепануться AIMP плеером.. когда цепляюсь, он мне пишет статус HTTP/1.0 200 Ok.

 

Поэтому закралось подозрение что вещание не идет, потому что не чего вещать (ну то есть ни какой сигнал ВЛС со спутника не снимает).

 

Есть какие нить идее как проверить можно что сам ВЛС вообще что нить принимает и ловит?

 

Share this post


Link to post
Share on other sites

попробуйте без транскодинга и других зачастую лишних опций:

 

vlc -vvv --color --ttl 12 --ts-es-id-pid --dvb-adapter=0 --programs=59 dvb:// --dvb-frequency=12072000 --dvb-srate=27000000  --sout '#duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:8081,name="3tv"},select="program=59"}'

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