Changes between Version 10 and Version 11 of GENIEducation/SampleAssignments/VLCDashTutorial/Execute
- Timestamp:
- 03/27/14 22:35:15 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIEducation/SampleAssignments/VLCDashTutorial/Execute
v10 v11 92 92 === 2.4.1 OML Script === 93 93 {{{ 94 defApplication(' test:app:vlc', 'vlc') do |app|95 96 app. path = "/usr/local/bin/vlc"94 defApplication('vlc') do |app| 95 96 app.binary_path = "/usr/local/bin/vlc" 97 97 # app.path = "/home/cong/work/vlc-2.1.0-git/bin/vlc-static" 98 app.version(2, 1, 0)99 app.shortDescription = "VLC"98 #app.version(2, 1, 0) 99 #app.shortDescription = "VLC" 100 100 app.description = "VLC multimedia player and streamer" 101 101 102 app.defProperty("input", "Stream input (e.g. file or network address)", nil,102 app.defProperty("input", "Stream input (e.g. file or network address)", "", 103 103 {:type => :string, :dynamic => false}) 104 104 # app.defProperty("sout", "Stream output", "--sout", … … 131 131 end 132 132 133 defProperty('theOne',' Node0','ID ofsender node')133 defProperty('theOne','inside-vlctest','ID sender node') 134 134 135 135 #defProperty('packetsize', 128, "Packet size (byte) from the sender node") 136 136 #defProperty('bitrate', 2048, "Bitrate (bit/s) from the sender node") 137 137 #defProperty('runtime', 40, "Time in second for the experiment is to run") 138 defProperty('graph', true, "Display graph or not")139 138 defProperty('duration', 100, "Duration of experiment") 140 139 141 140 defGroup('Sender',property.theOne) do |node| 142 node.addApplication(" test:app:vlc") do |app|141 node.addApplication("vlc") do |app| 143 142 # app.setProperty('quiet', true) 144 143 # app.setProperty('play-and-exit', false) 145 app.setProperty('intf', 'dummy')144 #app.setProperty('intf', 'dummy') 146 145 # app.setProperty('extraintf', 'omlstats') 147 app.setProperty('input', 'http://1 92.168.2.53/DASH_BuckBunny/www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/BigBuckBunny/bunny_2s_480p_only/bunny_Desktop.mpd')146 app.setProperty('input', 'http://10.10.10.1/www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/BigBuckBunny/bunny_2s_480p_only/bunny_Desktop.mpd') 148 147 # app.setProperty('mtu', '1200') 149 148 app.measure('dashDlSession', :samples =>1) … … 155 154 onEvent(:ALL_UP_AND_INSTALLED) do |event| 156 155 info "starting" 157 wait 5156 after 2 do 158 157 allGroups.startApplications 159 info "All applications started..." 160 wait property.duration161 wait 5158 info "All applications started..." 159 end 160 after 100 do 162 161 allGroups.stopApplications 163 162 info "All applications stopped." 164 163 Experiment.done 165 end 166 167 defGraph 'DashRate1' do |g| 168 g.ms('dashRateAdaptation').select (:oml_seq, :decisionRate_bps) 169 g.caption "Dash Rate Adaptation." 170 g.type 'line_chart3' 171 g.mapping :x_axis => :oml_seq, :y_axis => :decisionRate_bps 172 g.xaxis :legend => 'time [s]' 173 g.yaxis :legend => 'Decision Rate', :ticks => {:format => 's'} 174 end 164 end 165 end 166 167 #defGraph 'DashRate1' do |g| 168 # g.ms('dashRateAdaptation').select {[:oml_seq, :decisionRate_bps]} 169 #g.caption "Dash Rate Adaptation." 170 # g.type 'line_chart3' 171 # g.mapping :x_axis => :oml_seq, :y_axis => :decisionRate_bps 172 # g.xaxis :legend => 'time [s]' 173 # g.yaxis :legend => 'Decision Rate', :ticks => {:format => 's'} 174 #end 175 175 176 176 defGraph 'DashRate2' do |g| 177 g.ms('dashRateAdaptation').select (:oml_seq, :buffer_percent)177 g.ms('dashRateAdaptation').select {[:oml_seq, :empiricalRate_bps]} 178 178 g.caption "VLC Buffer Percentage." 179 179 g.type 'line_chart3' 180 g.mapping :x_axis => :oml_seq, :y_axis => : buffer_percent180 g.mapping :x_axis => :oml_seq, :y_axis => :empiricalRate_bps 181 181 g.xaxis :legend => 'time [s]' 182 g.yaxis :legend => ' Buffer Percentage', :ticks => {:format => 's'}182 g.yaxis :legend => 'Empirical Rate', :ticks => {:format => 's'} 183 183 end 184 184 185 185 #defGraph 'DashRate3' do |g| 186 # g.ms('dashDlSession').select (:oml_seq, :timeChunk_s) 187 #g.caption "read Chunk."188 #g.type 'line_chart3'189 #g.mapping :x_axis => :oml_seq, :y_axis => :timeChunk_s190 #g.xaxis :legend => 'time [s]'191 #g.yaxis :legend => 'read session [bps] ', :ticks => {:format => 's'}186 # g.ms('dashDlSession').select {[:oml_seq, :timeChunk_s]} 187 # g.caption "read Chunk." 188 # g.type 'line_chart3' 189 # g.mapping :x_axis => :oml_seq, :y_axis => :timeChunk_s 190 # g.xaxis :legend => 'time [s]' 191 # g.yaxis :legend => 'read session [bps] ', :ticks => {:format => 's'} 192 192 #end 193 193