Depend on your cam. U can keep this. But first, try to stream something for test, eventually using udp on localhost. Personally I have problems with video and audio sync because v4l2 implementation, and finally i gave up using ffmpeg for linux with v4l2 as video source. No problems on windows.