Rpl-udp with simple energest contiki - contiki

I want to monitor energy for the rpl udp example in contiki using simple-energest. What do i have to write in the makefile in order for that to happen? i have tried numerous commands like
MODULES+=os/services/simpe-energest but they don't seem to work...

To use the energest module, simply add to the Makefile:
MODULES+=os/services/simple-energest
Then rebuild the application; remember to make clean first. Energest will be printing the stats periodically:
13:00.382 ID:1 [INFO: Energest ] --- Period summary #12 (60 seconds)
13:00.382 ID:1 [INFO: Energest ] Total time : 60000000
13:00.382 ID:1 [INFO: Energest ] CPU : 60000000/ 60000000 (69 permil)
13:00.382 ID:1 [INFO: Energest ] LPM : 0/ 60000000 (0 permil)
13:00.382 ID:1 [INFO: Energest ] Deep LPM : 0/ 60000000 (0 permil)
13:00.382 ID:1 [INFO: Energest ] Radio Tx : 0/ 60000000 (0 permil)
13:00.382 ID:1 [INFO: Energest ] Radio Rx : 0/ 60000000 (0 permil)
13:00.382 ID:1 [INFO: Energest ] Radio total : 0/ 60000000 (0 permil)
See the Energest documentation for details.

Related

Prevent ffmpeg from changing the intensity of colors while downscaling the resolution of the video

I have a use case where I need to downscale a 716x1280 mp4 video to 358x640 (half of the original). Command that I used is
ffmpeg -i ./input.mp4 -vf "scale=640:640:force_original_aspect_ratio=decrease,pad=ceil(iw/2)*2:ceil(ih/2)*2" ./output.mp4
Out of 10 sample videos, 2 of the them suffered impact on colors. Below I have attached a comparison from the one which was impacted the most.
NOTE: The one on the right is a frame from the original video and the frame on the left is the one from the processed (down scaled) video. Notice the colors red and green in the image (even the skin color and hair color were changed).
What I am looking for is
Is there any way I can prevent changes like these happening? Probably some flag on saturation, brightness, contrast or any other parameter.
I am assuming that ffmpeg uses some default settings while downscaling a video. What made ffmpeg change colors only for these two videos? If it made similar changes for the rest of the videos as well, how to predict this behaviour before hand?
EDIT:
What I already have Tried?
-crf with values 0 and 18.
-preset veryslow as mentioned here
None helped
Mediainfo input V/S output
param
input
output
color range
Limited
NA (attribute not in description)
color primaries
BT.2020
NA (attribute not in description)
transfer characteristics
HLG
NA (attribute not in description)
matrix coefficients
BT.2020 non-constant
NA (attribute not in description)
bit deapth
8
8
Logs of the ffmpeg command
ffmpeg -i ./input.mp4 -vf "scale=640:640:force_original_aspect_ratio=decrease,pad=ceil(iw/2)*2:ceil(ih/2)*2" -movflags +faststart ./output.mp4
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 12.0.0 (clang-1200.0.32.28)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_9 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './input.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Duration: 00:00:30.05, start: 0.000000, bitrate: 10366 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt2020nc/bt2020/arib-std-b67), 716x1280, 10116 kb/s, 30 fps, 30 tbr, 19200 tbn, 38400 tbc (default)
Metadata:
handler_name : Core Media Video
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 245 kb/s (default)
Metadata:
handler_name : Core Media Audio
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 # 0x7faab4808800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 # 0x7faab4808800] profile High, level 3.0, 4:2:0, 8-bit
[libx264 # 0x7faab4808800] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to './output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 358x640, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
handler_name : Core Media Video
encoder : Lavc58.91.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : Core Media Audio
encoder : Lavc58.91.100 aac
[mp4 # 0x7faab5808800] Starting second pass: moving the moov atom to the beginning of the file
frame= 901 fps=210 q=-1.0 Lsize= 3438kB time=00:00:30.02 bitrate= 938.0kbits/s speed=7.01x
video:2933kB audio:472kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.974633%
[libx264 # 0x7faab4808800] frame I:6 Avg QP:22.60 size: 20769
[libx264 # 0x7faab4808800] frame P:228 Avg QP:24.84 size: 7657
[libx264 # 0x7faab4808800] frame B:667 Avg QP:27.59 size: 1697
[libx264 # 0x7faab4808800] consecutive B-frames: 0.9% 0.9% 1.0% 97.2%
[libx264 # 0x7faab4808800] mb I I16..4: 9.5% 64.6% 26.0%
[libx264 # 0x7faab4808800] mb P I16..4: 2.5% 12.2% 2.5% P16..4: 37.2% 20.6% 11.2% 0.0% 0.0% skip:13.7%
[libx264 # 0x7faab4808800] mb B I16..4: 0.4% 2.1% 0.2% B16..8: 42.2% 7.1% 1.2% direct: 1.8% skip:44.9% L0:39.4% L1:52.8% BI: 7.8%
[libx264 # 0x7faab4808800] 8x8 transform intra:72.2% inter:74.2%
[libx264 # 0x7faab4808800] coded y,uvDC,uvAC intra: 61.8% 67.2% 20.2% inter: 16.7% 13.9% 1.3%
[libx264 # 0x7faab4808800] i16 v,h,dc,p: 24% 19% 7% 50%
[libx264 # 0x7faab4808800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 16% 15% 6% 9% 11% 7% 10% 6%
[libx264 # 0x7faab4808800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 16% 13% 7% 9% 10% 7% 9% 4%
[libx264 # 0x7faab4808800] i8c dc,h,v,p: 53% 16% 26% 5%
[libx264 # 0x7faab4808800] Weighted P-Frames: Y:3.9% UV:1.8%
[libx264 # 0x7faab4808800] ref P L0: 57.8% 19.5% 14.8% 7.8% 0.1%
[libx264 # 0x7faab4808800] ref B L0: 90.7% 7.2% 2.1%
[libx264 # 0x7faab4808800] ref B L1: 95.3% 4.7%
[libx264 # 0x7faab4808800] kb/s:799.80
[aac # 0x7faab2036a00] Qavg: 189.523
We may use Bit Stream Video Filter for setting h264 metadata.
When a video player plays a video file, it looks for metadata that attached to the video stream (h264 metadata for example).
The H.264 metadata parameters that affects the colors and brightness are: video_full_range_flag, colour_primaries, transfer_characteris and matrix_coefficients.
If the parameters are not set, there are defaults.
The defaults for low resolution video are "Limited Range" BT.601 (in most player - I am not sure about MAC OS).
The default gamma curve (affects the brightness) is sRGB gamma curve.
The player converts the pixels from YUV color space to RGB (for displaying the video). The conversion formula is done according to the metadata.
Your input video file input.mp4 has H.264 metadata parameters that are far from the default.
We can assume that scale video filter does not change the color characteristics (the filter applies the YUV elements without converting to RGB).
The characteristics of input.mp4 applies BT.2020, and HLG gamma curve, but converted as if they were default (BT.601 and sRGB gamma), so the colors and brightness are very different from what they should have been.
When FFmpeg encodes a video stream, it does not copy the metadata parameters from the input to the output - we need to set the parameters explicitly.
The solution is using a Bit Stream Video Filter for setting the metadata parameters.
Try using the following command:
ffmpeg -i ./input.mp4 -vf "scale=640:640:force_original_aspect_ratio=decrease,pad=ceil(iw/2)*2:ceil(ih/2)*2" -vcodec libx264 -crf 17 -pix_fmt yuv420p -bsf:v h264_metadata=video_full_range_flag=0:colour_primaries=9:transfer_characteristics=18:matrix_coefficients=9 ./output.mp4
video_full_range_flag=0 applies "limited color range".
colour_primaries=9 applies BT.2020 colour primaries.
transfer_characteristics=18 applies HLG gamma (see
ITU-T Rec. Series H)
matrix_coefficients=9 applies BT.2020 matrix coefficients.
Most of the parameters are documented in ITU-T Rec. H.264 (section E.2.1).
Checking the parameters of output.mp4 using MediaInfo tool:
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : HLG
Matrix coefficients : BT.2020 non-constant

How remove gross errors from time series?

I have a long time series of 5min water level data from wells. The series contain measurement errors that are easily viewed in time-series plots.
water level time series plot
head(data)
# A tibble: 229,120 x 4
date temp P_comp_m alt_m
<dttm> <dbl> <dbl> <dbl>
1 2016-06-10 11:50:00 21.8 1.09 1008.
2 2016-06-10 11:55:00 21.2 1.07 1008.
3 2016-06-10 12:00:00 21.1 1.06 1008.
4 2016-06-10 12:05:00 21.1 1.05 1008.
5 2016-06-10 12:10:00 21.9 1.05 1008.
6 2016-06-10 12:15:00 21.8 1.04 1008.
7 2016-06-10 12:20:00 21.7 1.03 1008.
8 2016-06-10 12:25:00 21.6 1.03 1008.
9 2016-06-10 12:30:00 21.5 1.02 1008.
10 2016-06-10 12:35:00 21.5 1.01 1008.
# ... with 229,110 more rows
Due to the volume of data I wish to automate the data cleaning process. Currently, I am removing spurious data manually with R tidyverse tools.
data[between(data$date,
as_datetime("2016-11-27 17:00:00"),
as_datetime("2016-11-29 01:50:00")),] <- data %>%
filter(between(date, as_datetime("2016-11-27 17:00:00"),
as_datetime("2016-11-29 01:50:00"))) %>%
mutate(temp = NA, # temperature column
P_comp_m = NA, # pressure
alt_m = NA) # altitude
Can anyone provide suggestions to automate the task?
You can automate the task if you can articulate/express the criteria for "spurious" data. Or you can automate a part of it: e.g. pick the manually choose/pick the times you considered the data is spurious, put them into a vector/list and set a process to automatically remove these datapoints from the data (based on manually created list).

MIPS32 - Load a half-word using only load word and store word instructions

For educational purposes, I need to figure out how to load a half-word from a memory address to a register using only the lw and sw instructions in MIPS.
I am aware you can use lh, sh, lb, and sb but I want to know how to do it with only lw and sw.
For example, load the two bytes "AB" into register $t0:
Mem: [ A ] [ B ] [ C ] [ D ]
100 200 300 400
$t0: [ 0 ] [ 0 ] [ A ] [ B ]
My solution so far:
lw $t0, 100($zero)
srl $t0, t0, 16
Is there a way to do the same operation using only sw and lw instructions and no other operations?

WEKA Regression Model

I'm trying to build a test a regression model in WEKA. Problem is I don't know enough about WEKA to accomplish what I'm trying to do. The data set I'm using is a sample set from a WEKA repository. Here is the first few lines of my .arff
#relation autompg
#attribute MPG numeric
#attribute Cynlinders numeric
#attribute Displacement numeric
#attribute Horsepower numeric
#attribute Weight numeric
#attribute Acceleration numeric
#attribute Year numeric
#attribute Origin numeric
#attribute me {'chevrolet chevelle malibu','buick skylark 320','plymouth satellite','amc rebel sst','ford torino','ford galaxie 500','chevrolet impala','plymouth fury iii','pontiac catali','amc ambassador dpl','citroen ds-21 pallas','chevrolet chevelle concours (sw)','ford torino (sw)','plymouth satellite (sw)','amc rebel sst (sw)','dodge challenger se','plymouth cuda 340','ford mustang boss 302','chevrolet monte carlo','buick estate wagon (sw)','toyota coro mark ii','plymouth duster','amc hornet','ford maverick','datsun pl510','volkswagen 1131 deluxe sedan','peugeot 504','audi 100 ls','saab 99e','bmw 2002','amc gremlin','ford f250','chevy c20','dodge d200','hi 1200d','chevrolet vega 2300','toyota coro','ford pinto','volkswagen super beetle 117','plymouth satellite custom','ford torino 500','amc matador','pontiac catali brougham','dodge moco (sw)','ford country squire (sw)','pontiac safari (sw)','amc hornet sportabout (sw)','chevrolet vega (sw)','pontiac firebird','ford mustang','mercury capri 2000','opel 1900','peugeot 304','fiat 124b','toyota corolla 1200','datsun 1200','volkswagen model 111','plymouth cricket','toyota coro hardtop','dodge colt hardtop','volkswagen type 3','chevrolet vega','ford pinto rubout','amc ambassador sst','mercury marquis','buick lesabre custom','oldsmobile delta 88 royale','chrysler newport royal','mazda rx2 coupe','amc matador (sw)','ford gran torino (sw)','plymouth satellite custom (sw)','volvo 145e (sw)','volkswagen 411 (sw)','peugeot 504 (sw)','reult 12 (sw)','ford pinto (sw)','datsun 510 (sw)','toyouta coro mark ii (sw)','dodge colt (sw)','toyota corolla 1600 (sw)','buick century 350','chevrolet malibu','ford gran torino','dodge coronet custom','mercury marquis brougham','chevrolet caprice classic','ford ltd','plymouth fury gran sedan','chrysler new yorker brougham','buick electra 225 custom','amc ambassador brougham','plymouth valiant','chevrolet nova custom','volkswagen super beetle','ford country','plymouth custom suburb','oldsmobile vista cruiser','toyota cari','datsun 610','maxda rx3','mercury capri v6','fiat 124 sport coupe','chevrolet monte carlo s','pontiac grand prix','fiat 128','opel manta','audi 100ls','volvo 144ea','dodge dart custom','saab 99le','toyota mark ii','oldsmobile omega','chevrolet nova','datsun b210','chevrolet chevelle malibu classic','plymouth satellite sebring','buick century luxus (sw)','dodge coronet custom (sw)','audi fox','volkswagen dasher','datsun 710','dodge colt','fiat 124 tc','honda civic',subaru,'fiat x1.9','plymouth valiant custom','mercury morch','chevrolet bel air','plymouth grand fury','buick century','chevroelt chevelle malibu','plymouth fury','buick skyhawk','chevrolet monza 2+2','ford mustang ii','toyota corolla','pontiac astro','volkswagen rabbit','amc pacer','volvo 244dl','honda civic cvcc','fiat 131','capri ii','reult 12tl','dodge coronet brougham','chevrolet chevette','chevrolet woody','vw rabbit','dodge aspen se','ford grada ghia','pontiac ventura sj','amc pacer d/l','datsun b-210','volvo 245','plymouth volare premier v8','mercedes-benz 280s','cadillac seville','chevy c10','ford f108','dodge d100','honda accord cvcc','buick opel isuzu deluxe','reult 5 gtl','plymouth arrow gs','datsun f-10 hatchback','oldsmobile cutlass supreme','dodge moco brougham','mercury cougar brougham','chevrolet concours','buick skylark','plymouth volare custom','ford grada','pontiac grand prix lj','chevrolet monte carlo landau','chrysler cordoba','ford thunderbird','volkswagen rabbit custom','pontiac sunbird coupe','toyota corolla liftback','ford mustang ii 2+2','dodge colt m/m','subaru dl','datsun 810','bmw 320i','mazda rx-4','volkswagen rabbit custom diesel','ford fiesta','mazda glc deluxe','datsun b210 gx','oldsmobile cutlass salon brougham','dodge diplomat','mercury morch ghia','pontiac phoenix lj','ford fairmont (auto)','ford fairmont (man)','plymouth volare','amc concord','buick century special','mercury zephyr','dodge aspen','amc concord d/l','buick regal sport coupe (turbo)','ford futura','dodge magnum xe','datsun 510','dodge omni','toyota celica gt liftback','plymouth sapporo','oldsmobile starfire sx','datsun 200-sx','audi 5000','volvo 264gl','saab 99gle','peugeot 604sl','volkswagen scirocco','honda accord lx','pontiac lemans v6','mercury zephyr 6','ford fairmont 4','amc concord dl 6','dodge aspen 6','ford ltd landau','mercury grand marquis','dodge st. regis','chevrolet malibu classic (sw)','chrysler lebaron town # country (sw)','vw rabbit custom','maxda glc deluxe','dodge colt hatchback custom','amc spirit dl','mercedes benz 300d','cadillac eldorado','plymouth horizon','plymouth horizon tc3','datsun 210','fiat strada custom','buick skylark limited','chevrolet citation','oldsmobile omega brougham','pontiac phoenix','toyota corolla tercel','datsun 310','ford fairmont','audi 4000','toyota coro liftback','mazda 626','datsun 510 hatchback','mazda glc','vw rabbit c (diesel)','vw dasher (diesel)','audi 5000s (diesel)','mercedes-benz 240d','honda civic 1500 gl','reult lecar deluxe','vokswagen rabbit','datsun 280-zx','mazda rx-7 gs','triumph tr7 coupe','ford mustang cobra','honda accord','plymouth reliant','dodge aries wagon (sw)','toyota starlet','plymouth champ','honda civic 1300','datsun 210 mpg','toyota tercel','mazda glc 4','plymouth horizon 4','ford escort 4w','ford escort 2h','volkswagen jetta','reult 18i','honda prelude','datsun 200sx','peugeot 505s turbo diesel','saab 900s','volvo diesel','toyota cressida','datsun 810 maxima','oldsmobile cutlass ls','ford grada gl','chrysler lebaron salon','chevrolet cavalier','chevrolet cavalier wagon','chevrolet cavalier 2-door','pontiac j2000 se hatchback','dodge aries se','ford fairmont futura','amc concord dl','volkswagen rabbit l','mazda glc custom l','mazda glc custom','plymouth horizon miser','mercury lynx l','nissan stanza xe','honda civic (auto)','datsun 310 gx','buick century limited','oldsmobile cutlass ciera (diesel)','chrysler lebaron medallion','ford grada l','toyota celica gt','dodge charger 2.2','chevrolet camaro','ford mustang gl','vw pickup','dodge rampage','ford ranger','chevy s-10'}
#data
18,8,307,130,3504,12,70,1,'chevrolet chevelle malibu'
15,8,350,165,3693,11.5,70,1,'buick skylark 320'
18,8,318,150,3436,11,70,1,'plymouth satellite'
My question is this, when I run a test set with the following data:
#relation autompg
#attribute MPG numeric
#attribute Cynlinders numeric
#attribute Displacement numeric
#attribute Horsepower numeric
#attribute Weight numeric
#attribute Acceleration numeric
#attribute Year numeric
#attribute Origin numeric
#attribute me {'chevrolet chevelle malibu','buick skylark 320','plymouth satellite','amc rebel sst','ford torino','ford galaxie 500','chevrolet impala','plymouth fury iii','pontiac catali','amc ambassador dpl','citroen ds-21 pallas','chevrolet chevelle concours (sw)','ford torino (sw)','plymouth satellite (sw)','amc rebel sst (sw)','dodge challenger se','plymouth cuda 340','ford mustang boss 302','chevrolet monte carlo','buick estate wagon (sw)','toyota coro mark ii','plymouth duster','amc hornet','ford maverick','datsun pl510','volkswagen 1131 deluxe sedan','peugeot 504','audi 100 ls','saab 99e','bmw 2002','amc gremlin','ford f250','chevy c20','dodge d200','hi 1200d','chevrolet vega 2300','toyota coro','ford pinto','volkswagen super beetle 117','plymouth satellite custom','ford torino 500','amc matador','pontiac catali brougham','dodge moco (sw)','ford country squire (sw)','pontiac safari (sw)','amc hornet sportabout (sw)','chevrolet vega (sw)','pontiac firebird','ford mustang','mercury capri 2000','opel 1900','peugeot 304','fiat 124b','toyota corolla 1200','datsun 1200','volkswagen model 111','plymouth cricket','toyota coro hardtop','dodge colt hardtop','volkswagen type 3','chevrolet vega','ford pinto rubout','amc ambassador sst','mercury marquis','buick lesabre custom','oldsmobile delta 88 royale','chrysler newport royal','mazda rx2 coupe','amc matador (sw)','ford gran torino (sw)','plymouth satellite custom (sw)','volvo 145e (sw)','volkswagen 411 (sw)','peugeot 504 (sw)','reult 12 (sw)','ford pinto (sw)','datsun 510 (sw)','toyouta coro mark ii (sw)','dodge colt (sw)','toyota corolla 1600 (sw)','buick century 350','chevrolet malibu','ford gran torino','dodge coronet custom','mercury marquis brougham','chevrolet caprice classic','ford ltd','plymouth fury gran sedan','chrysler new yorker brougham','buick electra 225 custom','amc ambassador brougham','plymouth valiant','chevrolet nova custom','volkswagen super beetle','ford country','plymouth custom suburb','oldsmobile vista cruiser','toyota cari','datsun 610','maxda rx3','mercury capri v6','fiat 124 sport coupe','chevrolet monte carlo s','pontiac grand prix','fiat 128','opel manta','audi 100ls','volvo 144ea','dodge dart custom','saab 99le','toyota mark ii','oldsmobile omega','chevrolet nova','datsun b210','chevrolet chevelle malibu classic','plymouth satellite sebring','buick century luxus (sw)','dodge coronet custom (sw)','audi fox','volkswagen dasher','datsun 710','dodge colt','fiat 124 tc','honda civic',subaru,'fiat x1.9','plymouth valiant custom','mercury morch','chevrolet bel air','plymouth grand fury','buick century','chevroelt chevelle malibu','plymouth fury','buick skyhawk','chevrolet monza 2+2','ford mustang ii','toyota corolla','pontiac astro','volkswagen rabbit','amc pacer','volvo 244dl','honda civic cvcc','fiat 131','capri ii','reult 12tl','dodge coronet brougham','chevrolet chevette','chevrolet woody','vw rabbit','dodge aspen se','ford grada ghia','pontiac ventura sj','amc pacer d/l','datsun b-210','volvo 245','plymouth volare premier v8','mercedes-benz 280s','cadillac seville','chevy c10','ford f108','dodge d100','honda accord cvcc','buick opel isuzu deluxe','reult 5 gtl','plymouth arrow gs','datsun f-10 hatchback','oldsmobile cutlass supreme','dodge moco brougham','mercury cougar brougham','chevrolet concours','buick skylark','plymouth volare custom','ford grada','pontiac grand prix lj','chevrolet monte carlo landau','chrysler cordoba','ford thunderbird','volkswagen rabbit custom','pontiac sunbird coupe','toyota corolla liftback','ford mustang ii 2+2','dodge colt m/m','subaru dl','datsun 810','bmw 320i','mazda rx-4','volkswagen rabbit custom diesel','ford fiesta','mazda glc deluxe','datsun b210 gx','oldsmobile cutlass salon brougham','dodge diplomat','mercury morch ghia','pontiac phoenix lj','ford fairmont (auto)','ford fairmont (man)','plymouth volare','amc concord','buick century special','mercury zephyr','dodge aspen','amc concord d/l','buick regal sport coupe (turbo)','ford futura','dodge magnum xe','datsun 510','dodge omni','toyota celica gt liftback','plymouth sapporo','oldsmobile starfire sx','datsun 200-sx','audi 5000','volvo 264gl','saab 99gle','peugeot 604sl','volkswagen scirocco','honda accord lx','pontiac lemans v6','mercury zephyr 6','ford fairmont 4','amc concord dl 6','dodge aspen 6','ford ltd landau','mercury grand marquis','dodge st. regis','chevrolet malibu classic (sw)','chrysler lebaron town # country (sw)','vw rabbit custom','maxda glc deluxe','dodge colt hatchback custom','amc spirit dl','mercedes benz 300d','cadillac eldorado','plymouth horizon','plymouth horizon tc3','datsun 210','fiat strada custom','buick skylark limited','chevrolet citation','oldsmobile omega brougham','pontiac phoenix','toyota corolla tercel','datsun 310','ford fairmont','audi 4000','toyota coro liftback','mazda 626','datsun 510 hatchback','mazda glc','vw rabbit c (diesel)','vw dasher (diesel)','audi 5000s (diesel)','mercedes-benz 240d','honda civic 1500 gl','reult lecar deluxe','vokswagen rabbit','datsun 280-zx','mazda rx-7 gs','triumph tr7 coupe','ford mustang cobra','honda accord','plymouth reliant','dodge aries wagon (sw)','toyota starlet','plymouth champ','honda civic 1300','datsun 210 mpg','toyota tercel','mazda glc 4','plymouth horizon 4','ford escort 4w','ford escort 2h','volkswagen jetta','reult 18i','honda prelude','datsun 200sx','peugeot 505s turbo diesel','saab 900s','volvo diesel','toyota cressida','datsun 810 maxima','oldsmobile cutlass ls','ford grada gl','chrysler lebaron salon','chevrolet cavalier','chevrolet cavalier wagon','chevrolet cavalier 2-door','pontiac j2000 se hatchback','dodge aries se','ford fairmont futura','amc concord dl','volkswagen rabbit l','mazda glc custom l','mazda glc custom','plymouth horizon miser','mercury lynx l','nissan stanza xe','honda civic (auto)','datsun 310 gx','buick century limited','oldsmobile cutlass ciera (diesel)','chrysler lebaron medallion','ford grada l','toyota celica gt','dodge charger 2.2','chevrolet camaro','ford mustang gl','vw pickup','dodge rampage','ford ranger','chevy s-10'}
#data
14,8,455,225,4425,10,70,1,'pontiac catali'
15,8,390,190,3850,8.5,70,1,'amc ambassador dpl'
My question is this... no matter what is in my data. When I choose me test set, the # instances is always ?. And the output never evaluates the data. Other than the long forumla that the filter creates this is my output
Time taken to build model: 3.98 seconds
=== Evaluation on test set ===
=== Summary ===
Correlation coefficient 0.9917
Mean absolute error 0.5322
Root mean squared error 0.971
Relative absolute error 7.7403 %
Root relative squared error 11.6685 %
Total Number of Instances 223
Click on 'More Options..' in the Classify tab and select 'Output Predictions' to show the predictions on the test set.

Capture video on ios using PJSIP

i am not able to render or capture video on ios.
After successful SDP negtiation i tried to add video call for existing audio call, in on_call_media_state callback i observed that the media is not active for video.
When i hung up the call i get the following log which shows #1 video H263-1998, inactive, peer=10.11.201.147:50858.
According to Siphon some are able to get the video stream on ios devices.
Any help would be appreciated
3-11-15 14:59:39.075 ipjsua[220:6007] 14:59:39.075 pjsua_app.c .....Call 1 is DISCONNECTED [reason=200 (Normal call clearing)]
2013-11-15 14:59:39.093 ipjsua[220:6007] 14:59:39.093 pjsua_app.c .....
2013-11-15 14:59:39.097 ipjsua[220:6007] [DISCONNCTD] To: "102" <sip:102#10.11.201.147>;tag=bf76b652
Call time: 00h:04m:04s, 1st res in 121 ms, conn in 674ms
#0 audio speex #16kHz, sendrecv, peer=10.11.201.147:22268
SRTP status: Not active Crypto-suite: (null)
RX pt=100, last update:00h:00m:00.627s ago
total 12.1Kpkt 1.29MB (1.78MB +IP hdr) #avg=42.2Kbps/58.2Kbps
pkt loss=4 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
(msec) min avg max last dev
loss period: 20.000 20.000 20.000 20.000 0.000
jitter : 0.000 6.258 32.187 14.500 3.978
TX pt=100, ptime=20, last update:00h:00m:02.013s ago
total 8.3Kpkt 249.0KB (581.7KB +IP hdr) #avg=8.1Kbps/19.0Kbps
pkt loss=152 (1.8%), dup=0 (0.0%), reorder=0 (0.0%)
(msec) min avg max last dev
loss period: 20.000 49.836 140.000 120.000 25.816
jitter : 5.500 20.248 75.750 33.250 14.885
RTT msec : 5.966 50.438 146.325 131.000 33.555
#1 video H263-1998, inactive, peer=10.11.201.147:50858
SRTP status: Not active Crypto-suite: (null)
RX last update:00h:01m:30.404s ago
total 12pkt 48B (528B +IP hdr) #avg=2bps/22bps
pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : -0.001 0.000 0.000 0.000 0.000
TX last update:00h:01m:03.332s ago
total 0pkt 0B (0B +IP hdr) #avg=0bps/0bps
pkt loss=1 (100.0%), dup=0 (0.0%), reorder=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
RTT msec : 0.000 0.000 0.000 0.000 0.000
#2 video H263-1998, inactive, peer=10.11.201.147:22264
SRTP status: Not active Crypto-suite: (null)
RX last update:00h:01m:39.059s ago
total 15pkt 60B (660B +IP hdr) #avg=2bps/27bps
pkt loss=0 (0.0%), discrd=2 (13.3%), dup=2 (13.3%), reord=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : -0.001 0.000 0.000 0.000 0.000
TX last update:00h:01m:08.467s ago
total 0pkt 0B (0B +IP hdr) #avg=0bps/0bps
pkt loss=1 (100.0%), dup=0 (0.0%), reorder=0 (0.0%)
(msec) min avg max last dev
loss period: 0.000 0.000 0.000 0.000 0.000
jitter : 0.000 0.000 0.000 0.000 0.000
RTT msec : 0.000 0.000 0.000 0.000 0.000
2013-11-15 14:59:39.214 ipjsua[220:6007] 14:59:39.214 pjsua_media.c .....Call 1: deinitializing media..
2013-11-15 14:59:39.231 ipjsua[220:6007] 14:59:39.231 pjsua_media.c .......Media stream call01:0 is destroyed
2013-11-15 14:59:39.253 ipjsua[220:6007] 14:59:39.253 pjsua_vid.c .......Stopping video stream..
2013-11-15 14:59:39.259 ipjsua[220:6007] 14:59:39.259 pjsua_media.c .......Media stream call01:1 is destroyed
2013-11-15 14:59:39.264 ipjsua[220:6007] 14:59:39.264 pjsua_vid.c .......Stopping video stream..
2013-11-15 14:59:39.276 ipjsua[220:6007] 14:59:39.276 pjsua_media.c .......Media stream call01:2 is destroyed
2013-11-15 14:59:40.232 ipjsua[220:6007] 14:59:40.231 pjsua_aud.c Closing sound device after idle for 1 second(s)
2013-11-15 14:59:40.234 ipjsua[220:6007] 14:59:40.234 pjsua_app.c .Turning sound device OFF
2013-11-15 14:59:40.253 ipjsua[220:6007] 14:59:40.252 pjsua_aud.c .Closing iPhone IO device sound playback device and iPhone IO device sound capture device
2013-11-15 14:59:40.415 ipjsua[220:6007] 14:59:40.415 coreaudio_dev. .core audio stream stopped
2013-11-15 15:00:33.609 ipjsua[220:6007] 15:00:33.608 pjsua_core.c .RX 719 bytes Request msg SUBSCRIBE/cseq=52 (rdata0xa41a14) from UDP 10.11.201.147:5060:
SUBSCRIBE sip:101#10.11.208.114:5060;ob SIP/2.0
2013-11-15 15:19:54.347 ipjsua[220:6007] 15:19:54.347 pjsua_app.c .....Call 2 is DISCONNECTED [reason=200 (Normal call clearing)]
PJSIP on iOS does not currently implement Video Media.
The data sheet states which OSs video is implemented for:
Video Media
Platforms:
Windows,
Linux,
Mac
Codecs:
H.263-1998 (ffmpeg),
H.264 (ffmpeg and x264)
Capture devices:
colorbar (all platforms)
DirectShow (Windows)
Video4Linux2 (Linux)
QuickTime (Mac OS X)
Rendering devices:
SDL (Windows, Linux, and Mac OS X)
DirectShow (Windows)
http://trac.pjsip.org/repos/wiki/PJSIP-Datasheet
Further, the video user guide states that mobile OSs are not yet supported:
Video is available on PJSIP version 2.0 and later. Only desktop platforms are supported, mobile devices such as iOS are not yet supported.
http://trac.pjsip.org/repos/wiki/Video_Users_Guide

Resources