Στις 20-07-2009, ημέρα Δευ, και ώρα 11:49 -0700, ο/η Charles Paul έγραψε: > I wrestled with the problem this morning, and here is the script I came > up with for notify-send on Debian 5 LTSP: > ... > Hope this is of use to other people!
Thank you Paul, this was enlightening! :)
I constructed a similar script with a different purpose: to let a
teacher automatically broadcast any video he watches to all students!
Idea: if someone runs "gstreamer-properties", and in the [Video] tab he
puts a custom video output pipeline with something like the following:
'tee name=t ! queue ! ffmpegcolorspace ! xvimagesink display=
10.160.31.132:7.0 t. ! queue ! ffmpegcolorspace ! xvimagesink t.'
then any video that he plays with totem will also be broadcasted to all
the other displays defined in the video output pipeline.
Of course, some .Xauthority merging is needed to gain access to the
students displays.
Both the pipeline and the .Xauthority merging is (hopefully) done
automatically by the script.
I've only tried this with a single TC and it worked, but I don't have
more TCs to test with, so the script may have bugs.
Benefits:
* Synchronized playback, controlled by the teacher (pause etc)
* Much lower CPU & disk usage (decoding only happens once)
* With this script the sound only comes out of the teacher's speakers.
Other pipelines can be constructed if someone wishes to also send the
sound over the network.
Usage:
gst-broadcast action [playback-method]
Valid actions are:
start Merge all user .Xauthority files to the callee user's
.Xauthority, and modify gstreamer default video output
device so that *any* video that is played with e.g. totem
is broadcasted to all the LTSP displays.
stop Restore the default output device to 'autovideosink'.
Valid playback-methods are:
ximagesink, xvimagesink, sdlvideosink...
Thanks again Paul.
gst-broadcast
Description: application/shellscript
------------------------------------------------------------------------------
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
