Monday, June 10, 2013

Code completion for Python in Vim

sudo pip install jedi

mkdir ~/.vim/autoload ~/.vim/bundle

curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim

Add to .vimrc:
execute pathogen#infect()

cd ~/.vim/bundle
git clone https://github.com/davidhalter/jedi-vim.git

Monday, June 3, 2013

Timestamping the recorded files

#!/bin/bash
now=$(date +"%Y%m%d)
cvlc --run-time=xxxSecs http://uid:pwd@ip.addr/videostream.cgi :sout"#std{access=file,mux=avi,dst=${now}_filename}" vlc://quit;

Setting duration of recording using VLC

cvlc --run-time=xxxSecs http://uid:pwd@ip.addr/videostream.cgi :sout="#std{access=file, mux=avi, dst=filename}" vlc://quit;

Saturday, June 1, 2013

Transcode date time text to video stream

cvlc http://Uid:pwd@ip.add/videostream.cgi :sout='#transcode{soverlay, sfilter=marq{marquee="%T$_%D", position=5, size=14, opacity=255}, vb=64, vcodec=h264, venc=x264}:std{access=file, mux=asf, dst=testfile}'