This should work:
ffmpeg -i udp://localhost:1234 -vcodec copy output.mp4
Or try:
ffmpeg -i rtp://localhost:1234 -vcodec copy output.mp4
Replace 1234 with a port. I assume the input is already in H.264, if not, delete the copy of -vcodec.
source share