X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=examples%2Flinux%2Fvlc_streaming.py;h=49e2e7e054d580b2e2e47f1106c2adac30fafb81;hb=e7eb6ef8873e1e197b3db8842f67a483c004a77a;hp=6d01a9b6225a339299d1b47e079987f922015aac;hpb=19e3969ca3da5eb9da00d2a0cc256eee2eb70533;p=nepi.git diff --git a/examples/linux/vlc_streaming.py b/examples/linux/vlc_streaming.py index 6d01a9b6..49e2e7e0 100644 --- a/examples/linux/vlc_streaming.py +++ b/examples/linux/vlc_streaming.py @@ -17,11 +17,10 @@ # # Author: Alina Quereilhac # -# Example of how to run this experiment (replace with your credentials): +# Example of how to run this experiment (replace with your information): # # $ cd -# $ PYTHONPATH=$PYTHONPATH:~/repos/nepi/src python examples/linux/vlc_streaming.py -u inria_nepi -i ~/.ssh/id_rsa_planetlab -a planetlab1.u-strasbg.fr -b planetlab1.utt.fr | vlc - - +# python examples/linux/vlc_streaming.py -a -b -u -i from nepi.execution.ec import ExperimentController from nepi.execution.resource import ResourceState, ResourceAction @@ -115,8 +114,12 @@ ec.deploy() # Wait until the ccncat is finished ec.wait_finished([server]) -print ec.trace(client, "VIDEO") +video = ec.trace(client, "VIDEO") +f = open("video.ts", "w") +f.write(video) +f.close() ec.shutdown() +print "Streamed VIDEO stored localy at video.ts"