sample video input code using Libav, looks promising