I am encountering a strange problem, which I don't know why happens.
I have a cheap IP camera and I am recording the stream to a file on my computer like this:
cvlc rtsp://ip/onvif1 --sout file/ts:video.mp4
When I run multiple processes like this to the same camera but different target files, the latest processes create HUGE file, like 1GB per second. After killing the bugged process, the video is corrupted and can't be opened.
This happened several times after killing current
cvlc process and starting another one.
But the most strange thing is that once I run only 1 fresh VLC recording process and it created again such huge file.
Has anyone faced such glitches? Does anyone have an idea what might be the problem(cheap IP camera, Ubuntu 16.04)?