I use the shaka packager to create a .mpd file from the live stream. For that, I used the following command to packaging stream.
packager \\ \'in=udp://127.0.0.1:40000,st