Video Streaming Server With Multi-Protocol,Robust And Rich API
Location:Index Page  >  Document  >  UDP Push

Ti Top Streamer support the protocol "MPEG—TS Over UDP", The MPEG—TS packaget can be pushed to Ti Top Steamer through UDP. In this aritle, Ti Top Streamer is the streaming receiver.

There are many learning materials about MPEG TS available online, you can search for them yourself.

Here are the steps for push mpeg-ts streaming to Ti Top Streamer:

Step 1: Create an application with an source type of MPEG-TS Over UDP. As shown in the following figure:



Step 2: Add a UDP Source live stream under the app you just created. As shown in the following figure:



Note 1: For the IP address shown in the above figure, if the server has multiple network cards, it is recommended to use 0.0.0.0. If you want to use a specific IP address, be sure to note that some servers have issues with internal and external IP mapping. (That is to say, the server is listening to an internal network address, However, in reality, public IP may be used for external streaming).

Note 2:If there are multiple tracks in your UDP stream, you can use?audio_pid=xxx in the source stream URL of the above dialog box to select one of the tracks. e.g. udp://0.0.0.0.0:1004?audio_pid=120. Here, "120" is the PID of the track you set, which is a decimal number. If you are not sure what the value of "audio_pid" is, please check the settings on the UDP encoder side and consult relevant guys.

After successful addition, you can see this stream in the live stream list, and its current status is "wait", as shown in the following figure:



Of course, if you have already started streaming, the status will immediately change to "streaming", as shown in the following figure:



So, what devices can be used to push MPEG-TS UDP streams to Ti Top Streamer?

As the receiver, Ti Top Streamer has no restrictions on the pusher, as long as it supports the MPEG-TS Over UDP protocol. Most hardware encoders in the broadcasting and television industry support it. To set up and stream on these encoders, you need to consult the equipment manufacturer or consult relevant equipment manuals.

Next, We introduce you how to push MPEG-TS stream by FFMPEG. The command of FFMPEG was shown as below:

ffmpeg -re -i sample.mp4 -vcodec copy -acodec copy -f mpegts udp://38.101.42.116:10004?pkt_size=1316
		
You can directly copy the udp streaming address above, and then replace the IP address and port in the URL with your server's IP address and port number, without changing other parts.