Jump to content

Recommended Posts

Posted

Стоял сервер с Linux Fedora 9 и VLC 0.8.6i гнал в сетку по http вещание каналов с PVR (PCI карточек) которые брали сигнал с уже обычных тюнеров. Поставили новый сервер, воткнули Fedora 11 и VLC 1.0.3.

 

На старом вещние запускалось с команднй строки:

vlc -vvv --daemon --color pvr:/dev/video0:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000 --cr-average 1000 --sout '#transcode{vcodec=mp2v,acodec=mpga,vb=2048,ab=128,deinterlace}:standard{acce

ss=http,mux=ts,dst=192.168.0.253:12303}'

 

 

На новом сервере, так как из под root теперь запуск VLC не возможен, запускаю так:

sudo -u subuser cvlc -vvv --daemon --ttl 12 --color pvr:/dev/video0:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000 --cr-average 1000 --sout '#transcode{vcodec=mp2v,acodec=mpga,vb=2048,ab=128,deinterlace}:standard{acce

ss=http,mux=ts,dst=192.168.0.253:12303}'

 

 

Видно, что запустился в задачах висит, но ничего не вещает, от клиента не приконектиться, данных клиент естественно не получает. Запросы ACK приходят но сервер не отвечает. Не идёт даже с отключённым iptables.

 

Перед тем как запускать VLC делаю:

v4l2-ctl --set-input=1 --device=/dev/video0

v4l2-ctl --set-input=1 --device=/dev/video1

 

Video input set to 1 (S-Video 1)

Video input set to 1 (S-Video 1)

 

Также перед запуском делаю:

chmod 777 /dev/video0

chmod 777 /dev/video1

 

 

В системе карточки видяться нормально:

[root@tv ~]# lspci

...

04:01.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

04:05.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

 

 

[root@tv ~]# lsmod

Module Size Used by

xt_multiport 2584 293

cpufreq_ondemand 6344 4

acpi_cpufreq 8864 0

dm_multipath 14044 0

uinput 6684 0

stv0299 8852 2

tuner_xc2028 17620 2

b2c2_flexcop_pci 5892 0

wm8739 4224 2

b2c2_flexcop 23684 1 b2c2_flexcop_pci

dvb_core 72564 2 stv0299,b2c2_flexcop

tuner 18220 2

cx24123 12072 1 b2c2_flexcop

cx25840 22220 2

iTCO_wdt 10368 0

iTCO_vendor_support 2760 1 iTCO_wdt

sky2 40152 0

ivtv 121452 0

cx2341x 10220 1 ivtv

v4l2_common 12312 5 wm8739,tuner,cx25840,ivtv,cx2341x

videodev 29620 5 wm8739,tuner,cx25840,ivtv,v4l2_common

cx24113 6868 1 b2c2_flexcop

v4l1_compat 12056 1 videodev

s5h1420 10072 1 b2c2_flexcop

tveeprom 10732 1 ivtv

i2c_i801 10212 0

pcspkr 2176 0

asus_atk0110 10468 0

hwmon 2576 1 asus_atk0110

nouveau 435152 0

drm 168328 1 nouveau

i2c_algo_bit 4812 2 ivtv,nouveau

i2c_core 24992 16stv0299,tuner_xc2028,wm8739,b2c2_flexcop,tuner,cx24123,cx25840,ivtv,v4l2_commo

n,cx24113,s5h1420,tveeprom,i2c_i801,nouveau,drm,i2c_algo_bit

 

 

Ноничего не помогает. Что я мог упустить?

Posted

Там была проблема с DVB картами, тутже иная ситуация. Аналогичное решение проблемы из той темы, не даёт результатов.

Posted

sudo -u subuser cvlc -vvvv --ttl 12 --color pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000 --cr-average 1000 --sout '#transcode{vcodec=mp2v,acodec=mpga,vb=2048,ab=128,deinterlace}:standard{access=http,mux=ts,dst=192.168.0.253:12304}'

VLC media player 1.0.3 Goldeneye
[0x963ede0] main libvlc debug: VLC media player - version 1.0.3 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x963ede0] main libvlc debug: libvlc was configured with ./configure  '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--enable-release' '--with-binary-version=1.0.3-1.fc11' '--with-tuning=no' '--enable-switcher' '--enable-lua' '--enable-live555' '--enable-dv' '--enable-opencv' '--enable-pvr' '--enable-gnomevfs' '--enable-cddax' '--enable-wma-fixed' '--enable-shine' '--enable-faad' '--disable-faac' '--enable-twolame' '--enable-real' '--enable-realrtsp' '--enable-flac' '--enable-tremor' '--enable-speex' '--enable-tarkin' '--enable-theora' '--enable-dirac' '--enable-libass' '--enable-shout' '--enable-xcb' '--enable-svg' '--enable-snapshot' '--enable-svgalib' '--enable-xvmc' '--enable-directfb' '--enable-aa' '--enable-caca' '--enable-jack' '--enable-portaudio' '--enable-pulse' '--enable-ncurses' '--enable-xosd' '--enable-fbosd' '--enable-galaktos' '--enable-lirc' '--enable-loader' '--enable-mozilla' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig'
[0x963ede0] main libvlc debug: translation test: code is "C"
[0x963ede0] main libvlc debug: checking plugin modules
[0x963ede0] main libvlc debug: loading plugins cache file /root/.cache/vlc/plugins-04041e.dat
[0x963ede0] main libvlc debug: recursively browsing `/usr/lib/vlc'
[0x963ede0] main libvlc debug: module bank initialized (408 modules)
[0x963ede0] main libvlc debug: opening config file (/root/.config/vlc/vlcrc)
[0x963ede0] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU 
[0x963ede0] main libvlc debug: looking for memcpy module: 3 candidates
[0x963ede0] main libvlc debug: using memcpy module "memcpymmxext"
[0x96e01c0] main playlist debug: Activated
[0x96e01c0] main playlist debug: rebuilding array of current - root Playlist
[0x96e01c0] main playlist debug: rebuild done - 0 items, index -1
[0x96e4b58] main interface debug: looking for interface module: 1 candidate
[0x96e4b58] main interface debug: using interface module "hotkeys"
[0x96e4b58] main interface debug: TIMER module_need() : 0.352 ms - Total 0.352 ms / 1 intvls (Avg 0.352 ms)
[0x96e4b58] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x96e4b58] main interface debug: thread started
[0x96e5780] main interface debug: looking for interface module: 1 candidate
[0x96e5780] inhibit interface error: Failed to connect to the D-Bus session daemon: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

[0x96e5780] main interface warning: no interface module matching "inhibit,none" could be loaded
[0x96e5780] main interface debug: TIMER module_need() : 1.457 ms - Total 1.457 ms / 1 intvls (Avg 1.457 ms)
[0x96e5780] main interface error: no suitable interface module
[0x963ede0] main libvlc error: interface "inhibit,none" initialization failed
[0x96e5780] main interface debug: looking for interface module: 1 candidate
[0x96e5780] main interface debug: using interface module "screensaver"
[0x96e5780] main interface debug: TIMER module_need() : 0.163 ms - Total 0.163 ms / 1 intvls (Avg 0.163 ms)
[0x96e5780] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x96e01c0] main playlist debug: adding item `pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000' ( pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000 )
[0x96e5780] main interface debug: thread started
[0x963f220] main interface debug: looking for interface module: 1 candidate
[0x963f220] main interface debug: using interface module "signals"
[0x963f220] main interface debug: TIMER module_need() : 0.206 ms - Total 0.206 ms / 1 intvls (Avg 0.206 ms)
[0x963f220] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x963f220] main interface debug: thread started
[0x963f220] main interface debug: thread ended
[0x96e8798] main interface debug: looking for interface module: 1 candidate
[0x96e8798] main interface warning: no interface module matching "globalhotkeys,none" could be loaded
[0x96e8798] main interface debug: TIMER module_need() : 0.480 ms - Total 0.480 ms / 1 intvls (Avg 0.480 ms)
[0x96e8798] main interface error: no suitable interface module
[0x963ede0] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x96e8798] main interface debug: looking for interface module: 1 candidate
[0x96e8798] dummy interface: using the dummy interface module...
[0x96e8798] main interface debug: using interface module "dummy"
[0x96e8798] main interface debug: TIMER module_need() : 0.213 ms - Total 0.213 ms / 1 intvls (Avg 0.213 ms)
[0x96e8798] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x96e8798] main interface debug: thread started
[0x96e8798] main interface debug: thread ended
[0x96e01c0] main playlist debug: processing request item null node Playlist skip 0
[0x96e5780] screensaver interface warning: failed to connect to the D-BUS daemon: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

[0x96e01c0] main playlist debug: rebuilding array of current - root Playlist
[0x96e01c0] main playlist debug: rebuild done - 1 items, index -1
[0x96e01c0] main playlist debug: starting new item
[0x96e01c0] main playlist debug: creating new input thread
[0xb7300618] main input debug: Creating an input for 'pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000'
[0xb7300618] main input debug: thread (input) created at priority 10 (input/input.c:230)
[0xb7300618] main input debug: thread started
[0xb6d00bf8] main stream output debug: stream=`transcode'
[0xb6d01350] main stream out debug: looking for sout stream module: 1 candidate
[0xb6d00bf8] main stream output debug: stream=`standard'
[0xb6d01fd8] main stream out debug: looking for sout stream module: 1 candidate
[0xb6d01fd8] main stream out debug: set config option: sout-standard-access to http
[0xb6d01fd8] main stream out debug: set config option: sout-standard-mux to ts
[0xb6d01fd8] main stream out debug: set config option: sout-standard-dst to 192.168.0.253:12304
[0xb6d01fd8] stream_out_standard stream out debug: creating `http/ts://192.168.0.253:12304'
[0xb6d01fd8] stream_out_standard stream out debug: extension is 253:12304
[0xb6d01fd8] stream_out_standard stream out debug: extension -> mux=(null)
[0xb6d01fd8] stream_out_standard stream out debug: using `http/ts://192.168.0.253:12304'
[0xb6d050b0] main access out debug: looking for sout access module: 1 candidate
[0xb6d050b0] main access out: creating httpd
[0xb6d050b0] main access out debug: net: listening to 192.168.0.253 port 12304
[0xb6d050b0] main access out debug: using sout access module "access_output_http"
[0xb6d050b0] main access out debug: TIMER module_need() : 2.120 ms - Total 2.120 ms / 1 intvls (Avg 2.120 ms)
[0xb6d01fd8] stream_out_standard stream out debug: access opened
[0xb6d05e20] main mux debug: looking for sout mux module: 1 candidate
[0xb6d05e20] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000
[0xb6d05e20] main mux debug: using sout mux module "mux_ts"
[0xb6d05e20] main mux debug: TIMER module_need() : 4.679 ms - Total 4.679 ms / 1 intvls (Avg 4.679 ms)
[0xb6d00bf8] main stream output debug: muxer support adding stream at any time
[0xb6d00bf8] main stream output debug: muxer prefers to wait for all ES before starting to mux
[0xb6d01fd8] stream_out_standard stream out debug: mux opened
[0xb6d01fd8] main stream out debug: using sout stream module "stream_out_standard"
[0xb6d01fd8] main stream out debug: TIMER module_need() : 10.138 ms - Total 10.138 ms / 1 intvls (Avg 10.138 ms)
[0xb6d01350] main stream out debug: set config option: sout-transcode-vcodec to mp2v
[0xb6d01350] main stream out debug: set config option: sout-transcode-acodec to mpga
[0xb6d01350] main stream out debug: set config option: sout-transcode-vb to 2048
[0xb6d01350] main stream out debug: set config option: sout-transcode-ab to 128
[0xb6d01350] main stream out debug: set config option: sout-transcode-deinterlace to (null)
[0xb6d01350] stream_out_transcode stream out debug: codec audio=mpga 0Hz 0 channels 128Kb/s
[0xb6d01350] stream_out_transcode stream out debug: codec video=mp2v 0x0 scaling: 1.000000 2048kb/s
[0xb6d01350] main stream out debug: using sout stream module "stream_out_transcode"
[0xb6d01350] main stream out debug: TIMER module_need() : 30.228 ms - Total 30.228 ms / 1 intvls (Avg 30.228 ms)
[0xb7300618] main input debug: using timeshift granularity of 50 MBytes
[0xb7300618] main input debug: using timeshift path '/tmp'
[0xb7300618] main input debug: `pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000' gives access `pvr' demux `' path `/dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000'
[0xb7300618] main input debug: creating demux: access='pvr' demux='' path='/dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000'
[0xb6d06370] main demux debug: looking for access_demux module: 0 candidates
[0xb6d06370] main demux debug: no access_demux module matched "pvr"
[0xb6d06370] main demux debug: TIMER module_need() : 0.120 ms - Total 0.120 ms / 1 intvls (Avg 0.120 ms)
[0xb7300618] main input debug: creating access 'pvr' path='/dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000'
[0xb6d06370] main access debug: looking for access module: 1 candidate
[0xb6d06370] pvr access error: Cannot open device /dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000 (No such file or directory).
[0xb6d06370] main access warning: no access module matching "pvr" could be loaded
[0xb6d06370] main access debug: TIMER module_need() : 7.323 ms - Total 7.323 ms / 1 intvls (Avg 7.323 ms)
[0xb7300618] main input error: open of `pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000' failed: (null)
[0xb7300618] main input error: Your input can't be opened
[0xb7300618] main input error: VLC is unable to open the MRL 'pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000'. Check the log for details.
[0xb7300618] main input debug: thread ended
[0x96e01c0] main playlist debug: dead input
[0xb6d00bf8] main stream output debug: destroying useless sout
[0xb6d01350] main stream out debug: destroying chain... (name=transcode)
[0xb6d01fd8] main stream out debug: destroying chain... (name=standard)
[0xb6d05e20] main mux debug: removing module "mux_ts"
[0xb6d078f0] main http server debug: waitpipe: object killed
[0xb6d078f0] main http server debug: HTTP host removed
[0xb6d07238] main http server debug: no hosts left, stopping httpd
[0xb6d050b0] access_output_http access out debug: Close
[0xb6d050b0] main access out debug: removing module "access_output_http"
[0xb6d01fd8] main stream out debug: removing module "stream_out_standard"
[0xb6d01fd8] main stream out debug: destroying chain done
[0xb6d01350] main stream out debug: removing module "stream_out_transcode"
[0xb6d01350] main stream out debug: destroying chain done
[0xb7300618] main input debug: TIMER input launching for 'pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000' : 44.907 ms - Total 44.907 ms / 1 intvls (Avg 44.907 ms)
[0x96e01c0] main playlist debug: changing item without a request (current 0/1)
[0x96e01c0] main playlist debug: nothing to play

 

Вот такое выдайт кода пытаюсь с PVR сигнал гнать в сеть.

 

Заметил есть ошибки

 

[0xb7300618] main input error: open of `pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000' failed: (null)
[0xb7300618] main input error: Your input can't be opened
[0xb7300618] main input error: VLC is unable to open the MRL 'pvr:///dev/video1:norm=pal:size=800x600:channel=2:bitrate=5000000:maxbitrate=7000000'. Check the log for details.

 

 

Почему не знаю.

 

Права 777 на/dev/video0 и /dev/video1 ставлю. Стоит 2 карты так как вещаю 2 канала.

Posted

Так, удалось запустить, вещание получаю, строка следующая.

 

sudo -u subuser cvlc -vvvv --ttl 12 --color pvr:// --pvr-device=/dev/video0 --pvr-caching=1000 --pvr-norm=255 --pvr-width=800 --pvr-height=600 --pvr-channel=2 --pvr-bitrate-mode=0 --pvr-bitrate=5000000 --pvr-bitrate-peak=8000000 --cr-average 1000 --sout '#transcode{vcodec=mp2v,acodec=mpga,vb=4096,ab=128,deinterlace}:standard{access=http,mux=ts,dst=80.66.247.247:12303}'

 

 

Но гоняться такие ошибки:

 

[0xb5700868] main decoder warning: backward_pts != dts (-11644)
[0xb5700868] main decoder warning: backward_pts != current_pts (-11644)
[0xb5700868] main decoder warning: decoder synchro warning: pts != current_date (11644)
[0xb5700868] main decoder warning: decoder synchro warning: pts != current_date (-26987)
[0xb5700868] main decoder warning: backward_pts != dts (26987)
[0xb5700868] main decoder warning: backward_pts != current_pts (26987)
[0xb5700868] main decoder warning: decoder synchro warning: pts != current_date (-26987)
[0xb5700868] main decoder warning: backward_pts != dts (19311)
[0xb5700868] main decoder warning: decoder synchro warning: pts != current_date (-19311)
[0xb5700868] main decoder warning: backward_pts != dts (-33911)
[0xb5700868] main decoder warning: decoder synchro warning: pts != current_date (33911)
[0xb5700868] main decoder warning: backward_pts != dts (31753)
[0xb5700868] main decoder warning: decoder synchro warning: pts != current_date (-31753)
[0xb5700868] main decoder warning: backward_pts != dts (28764)
[0xb5700868] main decoder warning: decoder synchro warning: pts != current_date (-28764)
[0xb5700868] main decoder warning: backward_pts != dts (14839)

 

 

Лагает картинка, идёт переодически квадратами, типа выпадание кадра.

 

Погуглил, понял что такое у многих, но как от этого избавиться?

Posted

Разобрался с глюками.

 

To Yurkou

 

Сделал следующий файл запуска. Вроде всё запускается. Если будут замечания или дополнения, то напиши, что не так и почему стоит сделать иначе?

 

#!/bin/bash

cd /

su -l subuser --session-command="

cvlc --daemon --ttl 12 --programs=1708 dvb:// --dvb-adapter=0 --dvb-frequency=11034000 --dvb-srate=27500000 --dvb-voltage=13 --sout
'#transcode{vcodec=mp2v,acodec=mpga,vb=4096,ab=128,deinterlace}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.253:12302},select
="program=1708"}'

cvlc --daemon --ttl 12 --programs=400 dvb:// --dvb-adapter=1 --dvb-frequency=12303000 --dvb-srate=27500000 --dvb-voltage=18 --sout '
#transcode{vcodec=mp2v,acodec=mpga,vb=4096,ab=128,deinterlace}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.253:12309},select=
"program=400"}'

cvlc --daemon --ttl 12 pvr:// --pvr-device=/dev/video0 --pvr-caching=300 --pvr-norm=255 --pvr-width=800 --pvr-height=600 --pvr-chann
el=2 --pvr-bitrate-mode=1 --pvr-bitrate=5000000 --pvr-bitrate-peak=8000000 --sout '#transcode{vcodec=mp2v,acodec=mpga,vb=4096,ab=128
,deinterlace}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.253:12303}}'

cvlc --daemon --ttl 12 pvr:// --pvr-device=/dev/video1 --pvr-caching=300 --pvr-norm=255 --pvr-width=800 --pvr-height=600 --pvr-chann
el=2 --pvr-bitrate-mode=1 --pvr-bitrate=5000000 --pvr-bitrate-peak=8000000 --sout '#transcode{vcodec=mp2v,acodec=mpga,vb=4096,ab=128
,deinterlace}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.253:12304}}'

cvlc /home/subuser/_video/playlist.m3u --daemon --loop --no-play-and-stop --ttl 12 --sout '#transcode{vcodec=mp2v,acodec=mpga,vb=204
8,ab=128,deinterlace}:duplicate{dst=std{access=http,mux=ts,dst=192.168.0.253:12310}}'
"&

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.