I have a live video feed from a webcam on linux (v4l2). The video has the occasional missed frame or some noise at the bottom of some frames. I suspect this is due to a USB cable that is slightly longer than it should be. This is not really an issue for the application at hand and the video shows up more or less fine on the screen when viewed with vlc.
But due to the errors in the video stream, I cannot transcode the video. This is an issue because I would like to view the video on a different computer. I can stream the raw video without problems. However this is ideal for low bandwidth connections, which is why I'd prefer to transcode it. But any transcoder I tried eventually stops working after a few frames because of the ill-formatted input stream. Is there any way I can get vlc to sanitize the stream before transcoding it. I don't mind missed frames or other artefacts.