Hi,
I'm sure there are better examples of how to transcode out there, but here is how I do it.
Dreambox on 192.168.0.34
Debian Linux server on 192.168.0.1
I port forward 80 of the dreambox and select the channel (or radio station) I want, from the web interface. Then I run my little script:
#!/bin/bash
/usr/bin/vlc `/usr/bin/links -dump http://root:dreambox@192.168.0.34/video.m3u` :sout='#transcode{acodec=MP3,vcodec=DIV3,ab=32,vb=128,width=320,height=240,deinterlace,fps=15,channels=2}:std{access=mmsh,mux=asfh,url=:8154}' vlc:quit
This uses links (a text web browser) to download the video.pls file and passes it into vlc as the first item on its play list to transcode. The second item (for when the dreambox stops streaming tells vlc to quit).
VLC then transcodes it to MPEG4 (aka divx) video and mp3 sound in port 8154 of the linux server, which you also need to have open on your router/firewall.
Then you start either VLC (mmsh://your-ip:8154/) or Windows Media Player (mms://your-ip:8154) on your client and enjoy the benefits of TV at work ;)
The above script is set for 128kbs video and 32kbs sound, so should work for most uk adsl upload speeds! The 15 frames per second, is so my anemic broken fanned 450MHz P2 can keep up! I suspect a faster processer won't need to be limited this way. However its quite watchable.
As soon as you want to change channel, just select a different channel on the dreambox web interface and restart the script. I hope others have as much fun with this complete hack as I have.
I'm using Gemini 2.4 but I can't see why it shouldn't work for any other image.
If you use the default vlc debian package you won't get sound, because they don't compile in the mp3 encoder - so you'll need to compile it from scratch. No reason at all why this shouldn't work on a different linux distro, just change the paths to vlc and links.
Rupert
P.S. The VLC command is all one line and shouldn't have any spaces, but I can't work out how to stop the forum putting in extra spaces.