Force hardware acceleration on VLC playing from webcam
To force hardware-acceleration, which makes use of GPU, while playing or streaming from webcam, we need to add chroma= option to the input device. For example, if I want to force GPU for H264 codec on /dev/video0 device.
$ vlc v4l2:///dev/video0:chroma=h264
The value of chroma option is the codec, or pixelformat, supported by the webcam. So you need to check what output format supported by camera beforehand.
For more tutorials, please visit: http://blog.petehouston.com/