annuncio

Comprimi
Ancora nessun annuncio.

Streaming con VLC + ffserver

Comprimi
X
Comprimi
Currently Active Users Viewing This Thread: 0 (0 members and 0 guests)
 
  • Filtro
  • Ora
  • Visualizza
Elimina tutto
nuovi messaggi

  • Streaming con VLC + ffserver

    2. Streaming con VLC + ffserver


    in

    Indice [nascondi]



    1. Prerequisiti

    C'è una macchina Windows (streamer) con indirizzo IP dinamico che può trasmettere
    • IP TV e radio - ci sono molti canali disponibili, ma solo uno dovrebbero essere trasmessi alla volta.
    • Webcam
    • Calchi schermo

    Un altro RHEL 5 macchina (Server) è a disposizione del pubblico, ha indirizzo IP statico e dovrebbe fornire compatibile con SWF in streaming delle risorse di cui sopra, così come server HTTP per un facile accesso. Gli utenti dovrebbero essere in grado di utilizzare l'interfaccia web di:
    • scegliere attivi TV / canale radio IP
    • accendere i flussi o disattivare

    2. Configurazione DNS

    Creare i seguenti nomi host virtuali in /var/named/ourdom.com.db
    Video in Server CNAME
    Video-iptv server CNAME
    video webcam server CNAME
    video a tutto schermo in Server CNAME2.1. Installare Windows Software

    Scarica VLC 1.0.1 liberazione dal sito FTP VLC. Installare nella posizione standard sotto C: \ Programmi \ VideoLAN \ VLC.
    Scarica FFmpeg r16537 statica per Windows da FFmpeg sito finestre ed estrarre ffmpeg binario in C: \ Programmi \ VideoLAN \ VLC.
    Aggiungere C: \ Programmi \ VideoLAN \ VLC \ nel percorso di sistema tramite "Risorse del computer >> proprietà >> avanzata >> >> Variabili d'ambiente Variabili di sistema >> Percorso."
    Installare Cygwin: pacchetto di download da cygwin.com o ottenere preconfezionati cygwin-1.5.25.tgz tarball da specchio . Eseguire setup.exe e verificare almeno i seguenti pacchetti:
    • nella Admin parte - arresto
    • nella Rete Sezione - OpenSSH

    Aprire la finestra di shell Cygwin e creare un link simbolico
    ln -s "/ cygdrive / c / Programmi / VideoLAN / VLC" / vlc3. Installazione di Windows Feeder

    3.1. VLC Comandi di alimentazione

    Comando IPTV VLC:
    vlc.exe stream-tv.m3u --no-RTSP-tcp --rtsp-caching = 5000
    --language = it --ttl = 12 --intf http --http-host: 8811
    --sout = "# riuniscono: transcodifica {vcodec = h264, v = 256}: std {mux = ts, accesso = http, dst = localhost: 8812}"Utilizzare stream-tv.m3u per la TV broadcasting e stream-radio.m3u per la radio.
    Comando WebCam VLC:
    vlc.exe dshow: // --dshow-size = 352x288 --dshow-vdev = "Logitech QuickCam Pro 9000"
    --no-sout-audio --language = it --ttl = 12 --intf http --http-host: 8813
    --sout = "# {transcodificare vcodec = h264, v = 256}: std {mux = ts, accesso = http, dst = localhost: 8814}"Comando screen VLC:
    schermo vlc.exe: // --screen-width = 352 height = --screen-288 --screen-follow-topo
    --no-sout-audio --language = it --ttl = 12 --intf http --http-host: 8815
    --sout = "# {transcodificare vcodec = h264, v = 256}: std {mux = ts, accesso = http, dst = localhost: 8816}" Per abilitare l'accesso HTTP a VLC, modificare C: \ Programmi \ VideoLAN \ VLC \ http \ .hosts
    127.0.0.1
    10.20.0.0/16
    192.168.1.0/24
    # 0.0.0.0 / 0Se VLC e servizio FFM apertura automatica all'avvio di Windows, ma non si vuole abilitare lo streaming automaticamente, fare VLC inviare dati di test per 10 secondi e poi fermarsi fino a quando i comandi utente a process.For questo, aggiungere all'inizio della riga di comando VLC :
    falso: //: finto-file = fake.jpg: finto-duration = 10000: finto-width = 352: finto-height = 288
    vlc: // pausa: 99999993.2. FFM Comandi di alimentazione

    I comandi FFM sembrano (vedi guida dettagliata):
    ffmpeg.exe -r -s 5 352x288 http -i: // localhost: PORT http://video.ourdom.com:8081/ STREAM .ffm
    PORTA STREAM
    8812 iptv
    8814 webcam
    8816 schermo
    3.3. Eseguito come demone con Cygwin

    Creare script demone Cygwin per VLC (/vlc/run-iptv-vlc.sh, /vlc/run-webcam-vlc.sh, /vlc/run-screen-vlc.sh) e per FFmpeg (/ vlc / run-iptv -ffm.sh, /vlc/run-webcam-ffm.sh, /vlc/run-screen-ffm.sh). Utilizzare il seguente modello di script di shell:
    #! / bin / bash
    cd / vlc
    while true; fare
    COMANDO> / dev / null 2> & 1
    sleep 10
    fattoCreare servizi
    cygrunsrv --install VideoIptvVlc --path /vlc/run-iptv-vlc.sh --type auto
    cygrunsrv --install VideoIptvFfm --path /vlc/run-iptv-ffm.sh --type autocygrunsrv --install VideoWebcamVlc --path /vlc/run-webcam-vlc.sh --type auto
    cygrunsrv --install VideoWebcamFfm --path /vlc/run-webcam-ffm.sh --type autocygrunsrv --install VideoScreenVlc --path /vlc/run-screen-vlc.sh --type auto
    cygrunsrv --install VideoScreenFfm --path /vlc/run-screen-ffm.sh --type autoAvviare i servizi
    cygrunsrv --start VideoIptvVlc
    cygrunsrv --start VideoIptvFfm
    cygrunsrv --start VideoWebcamVlc
    cygrunsrv --start VideoWebcamFfm
    cygrunsrv --start VideoScreenVlc
    cygrunsrv --start VideoScreenFfm4. Configurazione RHEL Streaming Server

    Abilitare la porta 8081 in / etc / sysconfig / iptables:
    -A MY_IN -m stato --state NUOVO tcp -m -p tcp --dport 8081 -j ACCEPT
    -A MY_IN -m UDP -p udp --dport 8081 -j ACCEPTInstallare il ffmpeg giri da vitki.net:
    rpm -ivh EPEL-release-5-4.noarch.rpm
    rpm -ivh RPMForge-release-0.5.1-1.el5.rf.i386.rpm
    rpm -ivh vitki-net-release-5-3.el5.noarch .rpmyum --enable-repo vitki-net installare ffmpegCreare ffserver file di configurazione /etc/ffserver.conf:
    Port 8081
    BindAddress 0.0.0.0
    MaxClients 1000
    MaxBandwidth 100000
    CustomLog /var/log/ffservser.log
    iptv .ffm>
    File / tmp / ffserver- iptv .ffm
    FileMaxSize 10M

    iptv .flv>
    Alimentazione iptv .ffm
    Formato FLV
    Videocodec flv
    VideoFrameRate 5
    VideoSize 352x288
    VideoBitRate 200
    VideoBufferSize 80000
    VideoQMin 4
    VideoQMax 30
    #VideoIntraOnly
    PREROLL 0
    In modo simile aggiungere descrizione per webcam flusso:
    VideoQMin 2
    VideoQMax 20e una descrizione per schermo flusso:
    VideoQMin 2
    VideoQMax 8Per avviare e interrompere ffserver, creare lo script /etc/init.d/ffserver.
    5. Configurazione del server Web

    In un modo simile a sopra creare /etc/httpd/vhosts/video.conf
    Creare il / / var www / video directory.
    Estrarre jwplayer.tar.gz in / var / www / video / jwplayer.
    Simile alla precedente, creare /var/www/video/index.html.
    Crea /var/www/video/iptv.html.
    In modo simile, creare /var/www/video/webcam.html e /var/www/video/screen.html

    Allegati

    Video-etc-initd-ffserver.sh_.txt
    Video-etc-initd-ffserver.sh_.txt 1.07 KB

    ffmpeg-iptv.html
    ffmpeg-iptv.html 2.93 KB

    ourdom-jwplayer.tar.gz
    ourdom-jwplayer.tar.gz 65.36 KB

    stream-radio.m3u
    stream-radio.m3u 3.62 KB

    stream-tv.m3u
    stream-tv.m3u 1.15 KB

    cygwin-1.5.25.tgz
    cygwin-1.5.25.tgz 30.79 MB






Sto operando...
X