Mpeg2 .TS segment

#!/bin/sh
rm -rf /abc/*
/Applications/VLC.app/Contents/MacOS/VLC rtsp://tributary2.rave.ac.uk/floor0.sdp --intf dummy --sout-transcode-audio-sync --sout='#transcode{vcodec=h264,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,nocabac},acodec=mp4a,ab=56,deinterlace}:duplicate{dst=std{access=file,mux=ts,dst=-}}' | mediastreamsegmenter -O -b http://127.0.0.1/abc/ -f /abc/ -t 10 -s 4 -D