I have a Mac Mini under the TV running EyeTV to record the DVB signal. Normally, it just sits there recording stuff, which I then copy off and put on DVD. But sometimes I want to stream the live signal to other computers in my house.
First, you need to set the program you want to stream recording. Then, run this script which will stream the current recording using VLC (you need to have VLC installed, of course)
#! /bin/bash
# change this to the location of where VLC is installed
vlc=/Applications/VLC.app/Contents/MacOS/clivlc# change this to the location of your EyeTV archive
cd “/Users/rhughes/Movies/EyeTV Archive”eyetvr=`osascript -e ‘tell application “EyeTV”‘ -e “repeat with r in recordings”
-e “if busy of r then set a to path of r” -e “end repeat” -e “end tell” -e “PO
SIX path of a”`
mpg=${eyetvr%*.eyetvr}.mpgecho Streaming $mpg
$vlc “$mpg” –sout “#standard{access=http,mux=ps,dst=}” –intf=http –http-host 192.168.0.91:8081 vlc:quit # &
You should also change 192.168.0.91 to the address of the machine running EyeTV.
To view the stream, use VLC (or other compatible player) on a remote machine and point it to http://192.168.0.91:8080 (changing it to your EyeTV machine’s IP address).
The script also starts the VLC web interface on http://192.168.0.91:8081 – you can connect to this from a web browser and control the playback.
It all works OK, but I have to admit I got fed up with the complexity of it all, and bought a Slingbox. More on that another time
]]>