Zanonimizowana wersja forum tylko do odczytu

Weeb w VLC - Skrypt K-S-V - opis by jarek

Forum poświęcone serwisowi www.weeb.tv.
Post Reply
anonim
Weteran
Posts: 826
Joined: 2013-05-04, 15:44

Post by anonim »

Proszę jednak pamiętać że i tak nie jest to zgodne z polskim prawem.

anonim
Posts: 8
Joined: 2014-09-28, 18:58

Post by anonim »

Pany jak sie jakość zmieniało w skrypcie php, chodzi mi o to jak mam stream w HD a chce go ogladac w SD.

anonim
Początkujący
Posts: 48
Joined: 2014-01-10, 22:15
Location: Łódź

Post by anonim »

W pliku weebtv.xml pozostaw quality puste.

anonim
Początkujący
Posts: 24
Joined: 2014-09-30, 14:48

Post by anonim »

A mi za każdym razem wyskakuje błąd i obojętne co bym nie pozamieniał (jak w 1 poście i po drodze do tego postu)

Enter Channel Number : 18
Retrieving info....
RTMP Url: rtmp://37.48.65.8/channel/1409
Playpath: live
Token : 2636084
Premium : Yes
Command : rtmpdump -r "rtmp://37.48.65.8/channel/1409/live" -W "http://static.weeb.tv/player.swf" --weeb "2636084;ffff3@interia.pl;fffff" --live | "vlc" --meta-title "Boks Adamek-Szpilka" -
VLC media player 1.1.3 The Luggage (revision exported)
sh: rtmpdump: command not found
Warning: call to srand(1415445032)
Warning: call to rand()
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0xa0c31b4] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0xa0c31b4] main interface error: no suitable interface module
[0xa0dd0bc] main interface error: no suitable interface module
[0xa0360d4] main libvlc error: interface "globalhotkeys,none" initialization failed
[0xa0360d4] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xa0dd0bc] qt4 interface error: Could not connect to X server
[0xa0dd0bc] skins2 interface error: Cannot open display
[0xa0dd0bc] skins2 interface error: cannot initialize OSFactory
[0xa0e84bc] main stream error: cannot pre fill buffer

I tak tam podobne okno w wyborem się pokazuje ale po wpisaniu numeru bład ehh

anonim
Początkujący
Posts: 107
Joined: 2013-12-30, 19:27

Post by anonim »

Brakuje rtmpdumpa, musiałeś go pominąć, albo źle zainstalować

anonim
Początkujący
Posts: 24
Joined: 2014-09-30, 14:48

Post by anonim »

hmm robiłem all jak w 1 poście na czystej maszynie

anonim
Początkujący
Posts: 107
Joined: 2013-12-30, 19:27

Post by anonim »

Code: Select all

rtmpdump: command not found 


Oznacza, że nie ma rtmpdumpa zainstalowanego, jak go pobrałeś gitem, to potem go skompilowałeś? Może jednak pominąłeś coś.

Wejdź jeszcze raz do katalogu z rtmpdumpem, wrzuć tam patcha i wykonaj te komendy:

Code: Select all

patch -p0 -i Patch.diff
make
sudo make install prefix=/usr

anonim
Początkujący
Posts: 24
Joined: 2014-09-30, 14:48

Post by anonim »

Kolega który też ma VPS w tej samej firmie co ja i u niego działa robił u mnie na czystej maszynie i nie działa teraz np: coś takiego

Enter Channel Number : 18
Retrieving info....
RTMP Url: rtmp://37.48.65.9/channel/1409
Playpath: liveHI
Token : 2705525
Premium : Yes
Command : rtmpdump -r "rtmp://37.48.65.9/channel/1409/liveHI" -W "http://static.weeb.tv/player.swf" --weeb "2705525;zzzz@interia.pl;zzzzzz" --live | cvlc - -vvv --sout='#http{mux=ffmpeg{mux=flv},dst=:8080/}'
sh: rtmpdump: command not found
VLC media player 1.1.3 The Luggage (revision exported)
[0x90230d4] main libvlc debug: VLC media player - 1.1.3 The Luggage
[0x90230d4] main libvlc debug: Copyright © 1996-2010 the VideoLAN team
[0x90230d4] main libvlc debug: revision exported
[0x90230d4] main libvlc debug: configured with ./configure '--build=i486-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--sysconfdir=/etc' '--with-binary-version=1squeeze6' '--enable-a52' '--enable-aa' '--enable-bonjour' '--enable-caca' '--enable-dca' '--enable-dirac' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-ggi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/' '--with-mozilla-pkg=libxul' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-libva' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--disable-x264' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-pvr' '--enable-udev' '--enable-v4l' '--enable-v4l2' '--enable-svgalib' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'
[0x90230d4] main libvlc debug: translation test: code is "C"
[0x90230d4] main libvlc debug: checking plugin modules
[0x90230d4] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04041e-28.dat
[0x90230d4] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x90230d4] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04041e-28.dat
[0x90230d4] main libvlc debug: module bank initialized (390 modules)
[0x90230d4] main libvlc debug: opening config file (/home/vlc/.config/vlc/vlcrc)
[0x90230d4] main libvlc debug: CPU has capabilities MMX MMXEXT FPU
[0x90230d4] main libvlc debug: looking for memcpy module: 3 candidates
[0x90230d4] main libvlc debug: using memcpy module "memcpymmxext"
[0x90cab7c] main input debug: Creating an input for 'Media Library'
[0x90cab7c] main input debug: Input is a meta file: disabling unneeded options
[0x90cab7c] main input debug: using timeshift granularity of 50 MiB
[0x90cab7c] main input debug: using timeshift path '/tmp'
[0x90cab7c] main input debug: `file/xspf-open:///home/vlc/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/vlc/.local/share/vlc/ml.xspf'
[0x90cab7c] main input debug: creating demux: access='file' demux='xspf-open' path='/home/vlc/.local/share/vlc/ml.xspf'
[0x90b03c4] main demux debug: looking for access_demux module: 2 candidates
[0x90b03c4] main demux debug: no access_demux module matching "file" could be loaded
[0x90b03c4] main demux debug: TIMER module_need() : 0.326 ms - Total 0.326 ms / 1 intvls (Avg 0.326 ms)
[0x90cab7c] main input debug: creating access 'file' path='/home/vlc/.local/share/vlc/ml.xspf'
[0x90b20b4] main access debug: looking for access module: 2 candidates
[0x90b20b4] filesystem access debug: opening file `/home/vlc/.local/share/vlc/ml.xspf'
[0x90b20b4] main access debug: using access module "filesystem"
[0x90b20b4] main access debug: TIMER module_need() : 0.175 ms - Total 0.175 ms / 1 intvls (Avg 0.175 ms)
[0x90b1614] main stream debug: Using AStream*Stream
[0x90b1614] main stream debug: pre buffering
[0x90b1614] main stream debug: received first data after 0 ms
[0x90b1614] main stream debug: pre-buffering done 296 bytes in 0s - 28906 KiB/s
[0x90b13d4] main stream debug: looking for stream_filter module: 5 candidates
[0x90b13d4] main stream debug: no stream_filter module matching "any" could be loaded
[0x90b13d4] main stream debug: TIMER module_need() : 0.256 ms - Total 0.256 ms / 1 intvls (Avg 0.256 ms)
[0x90b13d4] main stream debug: looking for stream_filter module: 1 candidate
[0x90b13d4] main stream debug: using stream_filter module "stream_filter_record"
[0x90b13d4] main stream debug: TIMER module_need() : 0.084 ms - Total 0.084 ms / 1 intvls (Avg 0.084 ms)
[0x90cab7c] main input debug: creating demux: access='file' demux='xspf-open' path='/home/vlc/.local/share/vlc/ml.xspf'
[0x90b413c] main demux debug: looking for demux module: 1 candidate
[0x90b413c] playlist demux debug: using XSPF playlist reader
[0x90b413c] main demux debug: using demux module "playlist"
[0x90b413c] main demux debug: TIMER module_need() : 0.137 ms - Total 0.137 ms / 1 intvls (Avg 0.137 ms)
[0x90b53dc] main demux meta debug: looking for meta reader module: 2 candidates
[0x90b53dc] lua demux meta debug: Trying Lua scripts in /home/vlc/.local/share/vlc/lua/meta/reader
[0x90b53dc] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x90b53dc] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x90b53dc] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x90b53dc] main demux meta debug: no meta reader module matching "any" could be loaded
[0x90b53dc] main demux meta debug: TIMER module_need() : 2.472 ms - Total 2.472 ms / 1 intvls (Avg 2.472 ms)
[0x90cab7c] main input debug: `file/xspf-open:///home/vlc/.local/share/vlc/ml.xspf' successfully opened
[0x90b53dc] main xml debug: looking for xml module: 2 candidates
[0x90b53dc] main xml debug: using xml module "xml"
[0x90b53dc] main xml debug: TIMER module_need() : 0.363 ms - Total 0.363 ms / 1 intvls (Avg 0.363 ms)
Warning: call to srand(1415447781)
Warning: call to rand()
[0x90b413c] playlist demux debug: parsed 0 tracks successfully
[0x90b53dc] main xml debug: removing module "xml"
[0x90cab7c] main input debug: EOF reached
[0x90b413c] main demux debug: removing module "playlist"
[0x90b13d4] main stream debug: removing module "stream_filter_record"
[0x90b20b4] main access debug: removing module "filesystem"
[0x90cab7c] main input debug: TIMER input launching for 'Media Library' : 3.755 ms - Total 3.755 ms / 1 intvls (Avg 3.755 ms)
[0x90b13d4] main interface debug: looking for interface module: 1 candidate
[0x90b13d4] main interface debug: using interface module "hotkeys"
[0x90b13d4] main interface debug: TIMER module_need() : 0.114 ms - Total 0.114 ms / 1 intvls (Avg 0.114 ms)
[0x90b53dc] main interface debug: looking for interface module: 1 candidate
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x90b53dc] inhibit interface error: Failed to connect to the D-Bus session daemon: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

[0x90b53dc] main interface debug: no interface module matching "inhibit,none" could be loaded
[0x90b53dc] main interface debug: TIMER module_need() : 1.604 ms - Total 1.604 ms / 1 intvls (Avg 1.604 ms)
[0x90b53dc] main interface error: no suitable interface module
[0x90c8aec] main playlist debug: Activated
[0x90c8aec] main playlist debug: adding item `0' ( fd://0 )
[0x90cb324] main interface debug: looking for interface module: 1 candidate
[0x90cb324] main interface debug: using interface module "signals"
[0x90cb324] main interface debug: TIMER module_need() : 0.246 ms - Total 0.246 ms / 1 intvls (Avg 0.246 ms)
[0x90cbf3c] main interface debug: looking for interface module: 1 candidate
[0x90cbf3c] main interface debug: no interface module matching "globalhotkeys,none" could be loaded
[0x90cbf3c] main interface debug: TIMER module_need() : 0.291 ms - Total 0.291 ms / 1 intvls (Avg 0.291 ms)
[0x90cbf3c] main interface error: no suitable interface module
[0x90230d4] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x90cbc14] main input debug: Creating an input for '0'
[0x90cbf3c] main interface debug: looking for interface module: 1 candidate
[0x90c8aec] main playlist debug: no fetch required for (null) (art currently (null))
[0x90cbf3c] dummy interface: using the dummy interface module...
[0x90cbf3c] main interface debug: using interface module "dummy"
[0x90cbf3c] main interface debug: TIMER module_need() : 0.148 ms - Total 0.148 ms / 1 intvls (Avg 0.148 ms)
[0x90c8aec] main playlist debug: rebuilding array of current - root Playlist
[0x90c8aec] main playlist debug: rebuild done - 1 items, index -1
[0x90c8aec] main playlist debug: processing request item null node Playlist skip 0
[0x90c8aec] main playlist debug: starting new item
[0x90c8aec] main playlist debug: creating new input thread
[0x90cbc7c] main input debug: Creating an input for '0'
[0x90cbc7c] main input debug: thread (input) created at priority 10 (input/input.c:214)
[0x90cbc7c] main input debug: thread started
[0x90bb6d4] main stream output debug: using sout chain=`http{mux=ffmpeg{mux=flv},dst=:8080/}'
[0x90bb6d4] main stream output debug: stream=`http'
[0x90bb92c] main stream out debug: looking for sout stream module: 1 candidate
[0x90bb92c] main stream out debug: set config option: sout-standard-mux to ffmpeg{mux=flv}
[0x90bb92c] main stream out debug: set config option: sout-standard-dst to :8080/
[0x90bb92c] stream_out_standard stream out debug: creating `http/ffmpeg{mux=flv}://:8080/'
[0x90bb92c] stream_out_standard stream out debug: using `http/ffmpeg{mux=flv}://:8080/'
[0x90bcf14] main access out debug: looking for sout access module: 1 candidate
[0x90bcf14] main access out: creating httpd
[0x90bcf14] main access out debug: net: listening to port 8080
[0x90bcf14] main access out debug: using sout access module "access_output_http"
[0x90bcf14] main access out debug: TIMER module_need() : 0.294 ms - Total 0.294 ms / 1 intvls (Avg 0.294 ms)
[0x90bb92c] stream_out_standard stream out debug: access opened
[0x90ccafc] main mux debug: looking for sout mux module: 1 candidate
[0x90ccafc] main mux debug: set config option: ffmpeg-mux to flv
[0x90ccafc] main mux debug: using sout mux module "avformat"
[0x90ccafc] main mux debug: TIMER module_need() : 6.858 ms - Total 6.858 ms / 1 intvls (Avg 6.858 ms)
[0x90bb92c] stream_out_standard stream out debug: mux opened
[0x90bb92c] main stream out debug: using sout stream module "stream_out_standard"
[0x90bb92c] main stream out debug: TIMER module_need() : 7.455 ms - Total 7.455 ms / 1 intvls (Avg 7.455 ms)
[0x90cbc7c] main input debug: using timeshift granularity of 50 MiB
[0x90cbc7c] main input debug: using timeshift path '/tmp'
[0x90cbc7c] main input debug: `fd://0' gives access `fd' demux `' path `0'
[0x90cbc7c] main input debug: creating demux: access='fd' demux='' path='0'
[0x90e1fb4] main demux debug: looking for access_demux module: 0 candidates
[0x90e1fb4] main demux debug: no access_demux module matched "fd"
[0x90e1fb4] main demux debug: TIMER module_need() : 0.109 ms - Total 0.109 ms / 1 intvls (Avg 0.109 ms)
[0x90cbc7c] main input debug: creating access 'fd' path='0'
[0x90e1f94] main access debug: looking for access module: 1 candidate
[0x90e1f94] main access debug: using access module "filesystem"
[0x90e1f94] main access debug: TIMER module_need() : 0.079 ms - Total 0.079 ms / 1 intvls (Avg 0.079 ms)
[0x90e21dc] main stream debug: Using AStream*Stream
[0x90e21dc] main stream debug: pre buffering
[0x90e21dc] main stream error: cannot pre fill buffer
[0x90cbc7c] main input warning: cannot create a stream_t from access
[0x90e1f94] main access debug: removing module "filesystem"
[0x90e1f94] main access debug: waitpipe: object killed
[0x90c8aec] main playlist debug: finished input
[0x90c8aec] main playlist debug: dead input
[0x90cbc7c] main input debug: thread ended
[0x90bb6d4] main stream output debug: destroying useless sout
[0x90bb92c] main stream out debug: destroying chain... (name=http)
[0x90ccafc] main mux debug: removing module "avformat"
[0x90cc824] main http server debug: waitpipe: object killed
[0x90cc824] main http server debug: HTTP host removed
[0x90cc784] main http server debug: no hosts left, stopping httpd
[0x90bcf14] access_output_http access out debug: Close
[0x90bcf14] main access out debug: removing module "access_output_http"
[0x90bb92c] main stream out debug: removing module "stream_out_standard"
[0x90bb92c] main stream out debug: destroying chain done
[0x90cbc7c] main input debug: TIMER input launching for '0' : 8.181 ms - Total 8.181 ms / 1 intvls (Avg 8.181 ms)
[0x90c8aec] main playlist debug: changing item without a request (current 0/1)
[0x90c8aec] main playlist debug: nothing to play

anonim
Początkujący
Posts: 107
Joined: 2013-12-30, 19:27

Post by anonim »

Nadal nie ma rtpmdumpa, no i reszta błędów dotyczy raczej tego, że nie zedytowałeś pliku php pod streaming, zamiast tego próbujesz odpalić w vlc, stąd błędy.

Przeczytaj 1szy post do końca, zacytuję:

Zamiast korzystać z vlc można też bezpośrednio użyć ffmpeg, w WeebTV.php linijkę opisaną powyżej zmieniamy na:

Code: Select all

$command = $basecmd . " | ffmpeg -i - -acodec copy -vcodec copy -f flv rtmp://wychodzące-z-jakies-strony";

anonim
Posts: 3
Joined: 2014-10-29, 12:29

Post by anonim »

lebel4 wrote:W pliku weebtv.xml pozostaw quality puste.


A jesli chcialbym ustawic jakosc HD to mam wpisac HD?

anonim
Początkujący
Posts: 105
Joined: 2013-07-22, 22:55

Post by anonim »

maras wrote:
lebel4 wrote:W pliku weebtv.xml pozostaw quality puste.


A jesli chcialbym ustawic jakosc HD to mam wpisac HD?


tak

anonim
Początkujący
Posts: 24
Joined: 2014-09-30, 14:48

Post by anonim »

Postawiłem czysty nowy serwer VPS raz na debian 6 a drugi raz na Ubuntu 14.04 na obu jest dokładnie to samo.

po zalogowaniu się na root robię:

1. apt-get update
2. apt-get upgrade.
3. apt-get install git

teraz to co w 1 poście

4. apt-get install php5 php5-curl vlc libssl-dev
5. adduser nazwausera

wylogowałem się z putty z root na nazweusera

6. git clone git://git.ffmpeg.org/rtmpdump
7. cd /home/nazwausera/rtmpdump
8. wget http://www54.zippyshare.com/d/70588153/18/Patch.diff
9. patch -p0 -i Patch.diff
10. make
11. sudo make install prefix=/usr

kopiuje te dwa pliki WeebTV .php i .xml do katalogu /home/nazwausera/rtmpdump w xml wpisuje nazwę konta weeb

12. php WeebTV.php

po wpisaniu numeru kanału wywala bład

Cały sęk może być w tym że po wpisaniu sudo make install prefix=/usr wyświetla się

Image

anonim
Początkujący
Posts: 107
Joined: 2013-12-30, 19:27

Post by anonim »

Boże... przecież napisałem ci w poprzednim poście: Przeczytaj pierwszy post do końca.

Zedytuj plik WeebTV.php:

W pliku WeebTV.php odnajdujemy linijkę 435;

Code: Select all

$command = $basecmd . " | \"$vlc\" --meta-title \"$filename\" -";


zmieniamy na:

Code: Select all

$command = $basecmd . " | ffmpeg -i - -acodec copy -vcodec copy -f flv rtmp://wychodzące-z-jakies-strony";


Przecież, żeby nadawać musisz określić, gdzie chcesz nadawać.
Last edited by anonim on 2014-11-08, 14:36, edited 1 time in total.

anonim
Początkujący
Posts: 24
Joined: 2014-09-30, 14:48

Post by anonim »

Czytałem i używałem tego

$command = $basecmd . " | ffmpeg -i - -acodec copy -vcodec copy -f flv rtmp://wychodzące-z-jakies-strony";

I tak dalej błąd może trochę inny ale dalej to samo

anonim
Początkujący
Posts: 107
Joined: 2013-12-30, 19:27

Post by anonim »

Co do błędu powyżej:
Wywołaj komendę

Code: Select all

sudo adduser stream sudo


a potem jeszcze raz

Code: Select all

sudo make install prefix=/usr

Post Reply