Notizie flash
streamdev server e client - compilazione streamdev Stampa
Valutazione attuale: / 0
ScarsoOttimo 
Scritto da Administrator   
Venerdì 19 Febbraio 2010 17:58
Indice
streamdev server e client
compilazione streamdev
Externalremux, cosa fa' e come si usa
Tutte le pagine

 

Compilazione stremdev

ricordatevi, siccome joomla tenta di evitare lo spam sulle caselle email e il comando cvs include un' email, dei tre pezzi in cui viene separata la riga, dovete copiare il primo ed il terzo, e scrivere a manina l' indirizzo mail, avendo cura di eliminare gli spazi prima e dopo l' indirizzo mail.

cvs -d:pserver:
  Questo indirizzo e-mail è protetto dallo spam bot. Abilita Javascript per vederlo.
 :/var/cvsroot login
cvs -d:pserver: Questo indirizzo e-mail è protetto dallo spam bot. Abilita Javascript per vederlo. :/var/cvsroot co streamdev
mv streamdev/ ./vdr/PLUGINS/src/streamdev/

nella dir /video creare le sottodirectory

mkdir /video/plugins

mkdir /video/plugins/streamdev

e dentro a quest' ultima creare un file col nome externremux.sh e renderlo eseguibile

touch /video/plugins/streamdev/externremux.sh

chmod ugo+x /video/plugins/streamdev/externremux.sh

nano /video/plugins/streamdev/externremux.sh

e dentro mettergli il codice

#!/bin/bash                                                                
TMP=/tmp/externremux-${RANDOM:-$$}                                         
CMDLAVC="mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate"
CMDx264="mencoder -ovc x264 -x264encopts bitrate"                   
CPY="mencoder -of mpeg -ovc copy -oac copy -mpegopts format=mpeg"          
SNDmx264=":subq=4:bframes=2:b_pyramid:weight_b -oac mp3lame -lameopts preset=15:mode=3" # sound minimal 15kb/s mono 
SNDmLAVC="-oac mp3lame -lameopts preset=15:mode=3" # sound minimal 15kb/s mono
SNDs="-oac mp3lame -lameopts preset=standard" # sound standard             
RES="-vf scale -zoom -xy"                                                  
OUT="-o $TMP/out.avi"                                                      
LOG="$TMP/out.log"                                                         
VD=600                                                                     
RS=640                                                                     

if [ "$1" != "" ];then
STREAMQUALITY=`echo $1 | tr [:lowerFreude [:upperFreude `
else                                                    
STREAMQUALITY=xSL3000                                      
fi                                                      

echo $STREAMQUALITY | grep -q "^VARI_"

if [ $? -eq 0 ]; then
RS=`echo $STREAMQUALITY | cut -d_ -f2`
VD=`echo $STREAMQUALITY | cut -d_ -f3`
STREAMQUALITY=VARI                   

if [ "$VD" == "" ]; then # video bandwidth
VD=600
fi

if [ "$RS" == "" ]; then # resolution
RS=640
fi
fi

killall -9 mencoder

mkdir -p $TMP
mkfifo $TMP/out.avi
(trap "rm -rf $TMP" EXIT HUP INT TERM ABRT; cat $TMP/out.avi) &

case "$STREAMQUALITY" in
"DSL500") exec $CMD=50 $SNDm $RES 160 $OUT -- - &>$LOG ;;
"xSL1000") exec $CMDx264=100$SNDmx264 $RES 160 $OUT -- - &>$LOG ;;
"DSL1000") exec $CMD=100 $SNDm $RES 160 $OUT -- - &>$LOG ;;
"DSL2000") exec $CMD=128 $SNDm $RES 160 $OUT -- - &>$LOG ;;
"DSL3000") exec $CMDLAVC=250 $SNDmLAVC $RES 320 $OUT -- - &>$LOG ;;
"xSL3000") exec $CMDx264=250$SNDmx264 $RES 320 $OUT -- - &>$LOG ;;
"DSL3500") exec $CMD=300 $SNDm $RES 320 $OUT -- - &>$LOG ;;
"DSL6000") exec $CMD=350 $SNDm $RES 320 $OUT -- - &>$LOG ;;
"DSL16000") exec $CMD=500 $SNDm $RES 480 $OUT -- - &>$LOG ;;
"VARI") exec $CMD=$VD $SNDm $RES $RS $OUT -- - &>$LOG ;;
"QVGA") exec $CMD=500 $SNDm $RES 320 $OUT -- - &>$LOG ;;
"WLAN11") exec $CMD=768 $SNDs $RES 640 $OUT -- - &>$LOG ;;
"WLAN54") exec $CMD=2048 $SNDs $OUT -- - &>$LOG ;;
"LAN10") exec $CMD=4096 $SNDs $OUT -- - &>$LOG ;;
"COPY") exec $CPY $OUT -- - &>$LOG ;;
*) touch $TMP/out.avi ;;
esac

infine installare mencoder

 

apt-get install mencoder

 

siccome quasi sicuramente le cose non vanno mai per il verso che vogliamo noi, dovremo fare un po' di debug, specie se ci stiamo interessando alla transcodifica del flusso tramite externalremux.sh

quindi sara' meglio capire piu' approfonditamente cosa fa' il file externalremux.sh

 

 



Ultimo aggiornamento Domenica 22 Agosto 2010 19:16
 
Make Text Bigger Make Text Smaller Reset Text Size
Home Informatica Vdr plugin streamdev server e client - compilazione streamdev

JoomlaWatch Visitors



Nazione di provenienza

88.8%ITALY ITALY
2.7%UNITED STATES UNITED STATES
1.4%GERMANY GERMANY
1%JAPAN JAPAN
0.8%UNITED KINGDOM UNITED KINGDOM

Numero di visitatori

Oggi: 8
Ieri: 27
Scorsa settimana: 239
Questo mese: 159
Scorso mese: 915
Totale: 3930


JoomlaWatch Stats 1.2.9 by Matej Koval
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counteroggi20
mod_vvisit_counterieri45
mod_vvisit_counterquesta settimana364
mod_vvisit_counterQuesto mese222
mod_vvisit_counterdal 08/08/200913757
Visitors Counter 1.0.3
davidea.it