Dreambox Hacking

Dreambox 7025

I have a Dreambox 7025 DVB-S decoder for use with TV-Vlaanderen. I use the following script to convert avi files (no restriction on the format really that I have found) to convert to MPEG2 that the dreambox understands.

It tries to figure out if there is a matching subtitle file (srt) and embeds the subtitle stream in the output.
[marc@scorpius omen]$ cat ~/bin/avi2db.sh
#!/bin/sh

MOVIE_IN=$1
MOVIE_OUT=$(basename "$MOVIE_IN" .avi)_db2.mpg
SUB=$(basename "$MOVIE_IN" .avi).srt

if [ -f $SUB ]
then
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:acodec=mp2:abitrate=256:aspect=16/9 -ofps 25 -sub $SUB -subcp latin5 -font /var/lib/defoma/fontconfig.d/A/Arial-Regular.ttf -subfont-text-scale 4 -o $MOVIE_OUT $MOVIE_IN
else
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:acodec=mp2:abitrate=256:aspect=16/9 -ofps 25 -o $MOVIE_OUT $MOVIE_IN
fi

Just copy the files to your /media/hdd/movies on the dreambox and add them in the play list. One thing though: it seems pausing/resuming is a bit of a problem: the dreambox does not start playback after pausing.


[Home]

Last update:

Valid HTML 4.01!