I use vlc on my laptop and I can connect to my lynux Media Center box using open network stream with (
http://ip: port/extern;DSL256/200) where extern is a code that will transcode the video and will reduce the bitrate to send it through a 256kbps connection in this example and the 200 is the channel that i want to watch. With all android vlc versions that i've tried they don't allow me to include the bitrate and the channel in the address they only let me put the ip and the port. Any help will be appreciated
Extern Code:
# CONFIG START
STREAMQUALITY="WLAN11" # COPY, DSL128, DSL256, DSL384, DSL512, DSL768, LAN, WLAN{11,54}, PPC, EVDO, UMTS
RECDIR=/captive/media/video/common/videofiles{0,1,2,3,4}
TMP=/tmp/ExternMuxOut-$1-${RANDOM:-$$}
# CONFIG END
mkdir -p $TMP
mkfifo $TMP/ExternMuxOut.mp4
(trap "rm -rf $TMP" EXIT HUP INT TERM ABRT; cat $TMP/ExternMuxOut.mp4) &
case ${1:0:1} in
[A-Z]) IFS=: CMD=($1) IFS=
;;
*) IFS=: CMD=("$STREAMQUALITY" $1) IFS=
;;
esac
case ${CMD[1]} in
d*) RECORDING="cdrom://${CMD[2]}"
;;
r*) REC=$(eval find $RECDIR -name 20*.rec | grep -m 1 -i "${CMD[2]}")
if [ -d "$REC" ] ; then RECORDING="$REC/[0-9][0-9][0-9].vdr"
fi
;;
f*) REC=$(eval find $RECDIR | grep -m 1 -i "${CMD[2]}")
if [ -f "$REC" ] ; then RECORDING="$REC"
fi
;;
esac
case $CMD in
DSL56)
# DSL 128/64 Kb
exec mencoder $RECORDING -ofps 30000/1001 -af lavcresample=24000 -vf harddup -of lavf \
-oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \
-lavfopts format=psp \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
DSL64)
# DSL 128/64 Kb
exec mencoder $RECORDING -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=70 \
-o output.mp4 -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
-lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
mp4)
# DSL 128/64 Kb
exec mencoder $RECORDING -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=70 \
-o output.mp4 -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
-lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
PSP)
# DSL 512/128 Kb
exec mencoder $RECORDING -ofps 30000/1001 -af lavcresample=24000 -vf harddup -of lavf \
-oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \
-lavfopts format=psp \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
DSL128)
# DSL 512/128 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=100 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=160:104 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
DSL256)
# DSL 768/256 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=128 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=232:192 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
DSL384)
# DSL 1024/384 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=250 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=320:208 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
DSL512)
# DSL 2000/512 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=288 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=320:208 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
DSL768)
# DSL 3000/768 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=350 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=320:208 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
LAN)
# Wired LAN 10 Mb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=4096 \
-oac mp3lame -lameopts preset=standard \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
WLAN11)
# Wireless LAN 11 Mb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=1024 \
-oac mp3lame -lameopts preset=standard -vf scale=640:416 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
WLAN54)
# Wireless LAN 54 Mb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=2048 \
-oac mp3lame -lameopts preset=standard \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
PPC)
# Wireless PocketPC WM5*6 512 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=320 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=320:208 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
EVDO)
# EVDO Rev.A 288 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=112 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=232:192 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
UMTS)
# UMTS Networks 320 Kb
exec mencoder $RECORDING -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:vbitrate=128 \
-oac mp3lame -lameopts preset=15:mode=3 -vf scale=232:192 \
-o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
COPY)
# Copy VDR File
exec mencoder $RECORDING -of mpeg -ovc copy -oac copy -mpegopts format=mpe -o $TMP/ExternMuxOut.mp4 -- - &>$TMP/ExternMuxLOG.log ;;
*)
# * File Process
touch $TMP/ExternMuxOut.mp4 $TMP/ExternMuxLOG.log ;;
esac
rm -f $TMP/ExternMuxOut.mp4 $TMP/ExternMuxLOG.log