As far as I know, the use of the Framerate option should be used only on an input files (like sequence of images or perhaps a video file that don't have a defined PTS).
However, if I run the command below on my web-cam, the video still streams fine (at least for a few hours from what I've checked till now). Why is that still works? Should I expect that something will get wrong? (maybe later, after a few hours or days of streaming)
ffmpeg -framerate 30 -f v4l2 -copyts -i /dev/video0 -c:v libx264 -r 30 -f mpegts udp://192.168.10.199:1234
EDIT:
After running some more tests, it seems that when I'm running the command like this, the steam get stuck after a few hours:
ffmpeg -framerate 30 -f v4l2 -copyts -i /dev/video0 -c:v libx264 -r 30 -f mpegts udp://192.168.10.199:1234
However, if I run the command like this, it runs for days:
ffmpeg -r 30 -f v4l2 -copyts -i /dev/video0 -c:v libx264 -r 30 -f mpegts udp://192.168.10.199:1234
But I don't understand why...