News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

0.3.1 force subtitles & audio

Started by svalavuo, August 10, 2009, 12:54:27

Previous topic - Next topic

svalavuo

Hi,

Is there a way to "force" DVB (and maybe teletext) subtitles to certain language?

My kids use our MVP and it would be nice to have desired language as default.
They know how to change audio, but it would be nice to be able to make a default (as with VDR).
Setting could be done through config -file in server or with MVP itself.

Thanks for the great piece of software. It works like a charm! :)
Samuli
vdr 2.0.3-3 + vompserver 0.4.0 + MediaMVP H4 + Raspberry Pi with vompclient

rdoac

I wrote a quick script to change channels.conf and stick your desired language as the first audio track before vomp could change audio.  However, you'd need to change VDR to not update pids, channels or transponders. As you can see I'm not a good programmer.

You use it by specifying the desired language on the command line

channelhack eng </etc/vdr/channels.conf >/tmp/channels.conf

channelhack
DESLANG=$1
while read line
do
        # split line into array
        arr=($line)
        # if the length of the array is greater than 1
        if [ ` echo "$line" | awk  -F : '{printf $7}' | grep "$DESLANG" ` ]; then
LANG=` echo $line | awk  -F : '{printf $7}' `
if [ `echo "$LANG" | grep ","` ]; then
LANG1=` echo $LANG | awk  -F ","  '{printf $1}' `
LANG2=` echo $LANG | awk  -F "," '{printf $2}' `

LANG3=` echo $LANG | awk  -F ","  '{printf $1}' `
LANG4=""
if [ ` echo $LANG1 | grep ";" ` ]; then
LANG3=` echo $LANG1 | awk  -F ";" '{printf $1}' `
LANG4=";"` echo $LANG1 | awk  -F ";" '{printf $2}' `

fi


LANG5=` echo $LANG | awk  -F "," '{printf $2}' `
LANG6=""
if [ ` echo $LANG2 | grep ";" ` ]; then
LANG5=` echo $LANG2 | awk  -F ";" '{printf $1}' `
LANG6=";"` echo $LANG2 | awk  -F ";" '{printf $2}' `
fi

                if [[ ` echo $LANG2 | grep $DESLANG ` ]]; then

name=` echo $line | awk  -F : '{printf $1}'; `
freq=` echo $line | awk  -F : '{printf $2}'; `
pol=` echo $line | awk  -F : '{printf $3}'; `
sat=` echo $line | awk  -F : '{printf $4}'; `
fec=` echo $line | awk  -F : '{printf $5}'; `
vid=` echo $line | awk  -F : '{printf $6}'; `
sub=` echo $line | awk  -F : '{printf $8}'; `
ca=` echo $line | awk  -F : '{printf $9}'; `
sid=` echo $line | awk  -F : '{printf $10}'; `
nid=` echo $line | awk  -F : '{printf $11}'; `
tid=` echo $line | awk  -F : '{printf $12}'; `
rid=` echo $line | awk  -F : '{printf $13}'; `
xmltv=` echo $line | awk -F : '{printf $14}'; `
if [ $xmltv ]; then
echo "$name:$freq:$pol:$sat:$fec:$vid:$LANG5$LANG6,$LANG3$LANG4:$sub:$ca:$sid:$nid:$tid:$rid:$xmltv"

else
echo "$name:$freq:$pol:$sat:$fec:$vid:$LANG5$LANG6,$LANG3$LANG4:$sub:$ca:$sid:$nid:$tid:$rid"

fi


else
echo $line
fi
else
echo $line
fi
else
echo $line
fi
done