A example for grabing camera video with h264 encoder

There were lots of bugs to be fixed.