To generate the trace file :
    sensevid hall_qcif.avi -f 1 -g 18 -p 128

To perform the simulation in the simulation folder (to be created) : 
    Castalia -c General,TMAC

To generate the receiver trace file according to the SenseVid format, use :

   awk -v init_trx_time=10 'BEGIN{IFS="\t";OFS = "\t"}FNR==NR{seq[$2]=$2;t[$2]=$1;next}{ if ($2==seq[$2]) printf("%.2f\t%d\t%d\t%d\t%s\t%d\t%d %d\n", t[$2]-init_trx_time,$2,$3,$4,$5,$6,$7,$8);}' rt hall_qcif-sim/st-packet > rt-packet

To rebuild the received video :

   sensevid -r rt-packet hall_qcif.avi
   